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... | |
COMP polling and DMA conversion management functions.
hal_status_t hal_comp_start | ( | comp_handle_t * | p_comp | ) |
Start the comparator.
[in] | p_comp | Pointer to a COMP handle which contains the configuration information for the specified COMP module. |
HAL_OK | Operation is OK. |
HAL_ERROR | Parameter error or operation not supported. |
HAL_BUSY | Driver is busy. |
HAL_TIMEOUT | Timeout occurred. |
hal_status_t hal_comp_stop | ( | comp_handle_t * | p_comp | ) |
Stop the comparator.
[in] | p_comp | Pointer to a COMP handle which contains the configuration information for the specified COMP module. |
HAL_OK | Operation is OK. |
HAL_ERROR | Parameter error or operation not supported. |
HAL_BUSY | Driver is busy. |
HAL_TIMEOUT | Timeout occurred. |