STM32L443xx HAL User Manual
|
Management functions. More...
Functions | |
HAL_StatusTypeDef | HAL_COMP_Lock (COMP_HandleTypeDef *hcomp) |
Lock the selected comparator configuration. | |
uint32_t | HAL_COMP_GetOutputLevel (COMP_HandleTypeDef *hcomp) |
Return the output level (high or low) of the selected comparator. | |
__weak void | HAL_COMP_TriggerCallback (COMP_HandleTypeDef *hcomp) |
Comparator trigger callback. |
Management functions.
=============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the comparators.
uint32_t HAL_COMP_GetOutputLevel | ( | COMP_HandleTypeDef * | hcomp | ) |
Return the output level (high or low) of the selected comparator.
The output level depends on the selected polarity. If the polarity is not inverted:
hcomp | COMP handle |
Returns | the selected comparator output level:
|
Definition at line 953 of file stm32l4xx_hal_comp.c.
References assert_param, COMP_OUTPUT_LEVEL_BITOFFSET_POS, and __COMP_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_COMP_Lock | ( | COMP_HandleTypeDef * | hcomp | ) |
Lock the selected comparator configuration.
hcomp | COMP handle |
HAL | status |
Definition at line 892 of file stm32l4xx_hal_comp.c.
References __HAL_COMP_IS_LOCKED, __HAL_COMP_LOCK, assert_param, HAL_COMP_STATE_BUSY_LOCKED, HAL_COMP_STATE_READY, HAL_COMP_STATE_READY_LOCKED, HAL_COMP_STATE_RESET, HAL_COMP_STATE_RESET_LOCKED, __COMP_HandleTypeDef::Instance, and __COMP_HandleTypeDef::State.
void HAL_COMP_TriggerCallback | ( | COMP_HandleTypeDef * | hcomp | ) |
Comparator trigger callback.
hcomp | COMP handle |
None |
Definition at line 967 of file stm32l4xx_hal_comp.c.
Referenced by HAL_COMP_Init(), HAL_COMP_IRQHandler(), and HAL_COMP_UnRegisterCallback().