Macros | |
#define | __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET) |
Reset COMP handle state. More... | |
#define | COMP_CLEAR_ERRORCODE(__HANDLE__) ((__HANDLE__)->ErrorCode = HAL_COMP_ERROR_NONE) |
Clear COMP error code (set it to no error code "HAL_COMP_ERROR_NONE"). More... | |
#define | __HAL_COMP_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, LPCOMP_CR1_EN) |
Enable the specified comparator. More... | |
#define | __HAL_COMP_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, LPCOMP_CR1_EN) |
Disable the specified comparator. More... | |
#define __HAL_COMP_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR1, LPCOMP_CR1_EN) |
Disable the specified comparator.
__HANDLE__ | COMP handle |
None |
#define __HAL_COMP_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR1, LPCOMP_CR1_EN) |
Enable the specified comparator.
__HANDLE__ | COMP handle |
None |
#define __HAL_COMP_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_COMP_STATE_RESET) |
Reset COMP handle state.
__HANDLE__ | COMP handle |
None |
#define COMP_CLEAR_ERRORCODE | ( | __HANDLE__ | ) | ((__HANDLE__)->ErrorCode = HAL_COMP_ERROR_NONE) |
Clear COMP error code (set it to no error code "HAL_COMP_ERROR_NONE").
__HANDLE__ | COMP handle |
None |