Functions
IO operation functions
Peripheral Driver » HAL Driver » COMP » Functions

COMP polling and DMA conversion management functions. More...

## Functions
hal_status_t | hal_comp_start (comp_handle_t *p_comp)
| Start the comparator. More...
hal_status_t | hal_comp_stop (comp_handle_t *p_comp)
| Stop the comparator. More...

## Detailed Description

COMP polling and DMA conversion management functions.

## Function Documentation

## ◆ hal_comp_start()

hal_status_t hal_comp_start | ( | comp_handle_t * | p_comp | ) |

Start the comparator.

Parameters

  [in] | p_comp | Pointer to a COMP handle which contains the configuration information for the specified COMP module.

Return values

  HAL_OK | Operation is OK.
  HAL_ERROR | Parameter error or operation not supported.
  HAL_BUSY | Driver is busy.
  HAL_TIMEOUT | Timeout occurred.

## ◆ hal_comp_stop()

hal_status_t hal_comp_stop | ( | comp_handle_t * | p_comp | ) |

Stop the comparator.

Parameters

  [in] | p_comp | Pointer to a COMP handle which contains the configuration information for the specified COMP module.

Return values

  HAL_OK | Operation is OK.
  HAL_ERROR | Parameter error or operation not supported.
  HAL_BUSY | Driver is busy.
  HAL_TIMEOUT | Timeout occurred.