Functions | |
| HAL_StatusTypeDef | HAL_COMP_Init (COMP_HandleTypeDef *hcomp) |
| Initialize the COMP according to the specified parameters in the COMP_InitTypeDef and initialize the associated handle. More... | |
| HAL_StatusTypeDef | HAL_COMP_DeInit (COMP_HandleTypeDef *hcomp) |
| DeInitialize the COMP peripheral. More... | |
| void | HAL_COMP_MspInit (COMP_HandleTypeDef *hcomp) |
| Initialize the COMP MSP. More... | |
| HAL_StatusTypeDef | HAL_COMP_Config (COMP_HandleTypeDef *hcomp, COMP_ConfigTypeDef *cfg) |
| select which comparator to work. More... | |
| int | HAL_COMP_PollForComp (COMP_HandleTypeDef *hcomp, uint8_t channel, uint32_t timeout) |
| polling compare result. More... | |
| void | HAL_COMP_MspDeInit (COMP_HandleTypeDef *hcomp) |
| DeInitialize the COMP MSP. More... | |
| HAL_StatusTypeDef HAL_COMP_Config | ( | COMP_HandleTypeDef * | hcomp, |
| COMP_ConfigTypeDef * | cfg | ||
| ) |
select which comparator to work.
| hcomp | COMP handle |
| cfg | configure parameters |
| HAL | status |
| HAL_StatusTypeDef HAL_COMP_DeInit | ( | COMP_HandleTypeDef * | hcomp | ) |
DeInitialize the COMP peripheral.
| hcomp | COMP handle |
| HAL | status |
| HAL_StatusTypeDef HAL_COMP_Init | ( | COMP_HandleTypeDef * | hcomp | ) |
Initialize the COMP according to the specified parameters in the COMP_InitTypeDef and initialize the associated handle.
| hcomp | COMP handle |
| HAL | status |
| void HAL_COMP_MspDeInit | ( | COMP_HandleTypeDef * | hcomp | ) |
DeInitialize the COMP MSP.
| hcomp | COMP handle |
| None |
| void HAL_COMP_MspInit | ( | COMP_HandleTypeDef * | hcomp | ) |
Initialize the COMP MSP.
| hcomp | COMP handle |
| None |
| int HAL_COMP_PollForComp | ( | COMP_HandleTypeDef * | hcomp, |
| uint8_t | channel, | ||
| uint32_t | timeout | ||
| ) |
polling compare result.
| hcomp | COMP handle |
| channel | channel select, 0, 1 valid |
| timeout | timeout in ms |
| compare | result |