IO operation 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_compPointer to a COMP handle which contains the configuration information for the specified COMP module.
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.

◆ hal_comp_stop()

hal_status_t hal_comp_stop ( comp_handle_t p_comp)

Stop the comparator.

Parameters
[in]p_compPointer to a COMP handle which contains the configuration information for the specified COMP module.
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.