STM32L443xx HAL User Manual
|
Defines | |
#define | __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) |
Reset COMP handle state. | |
#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"). | |
#define | __HAL_COMP_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_EN) |
Enable the specified comparator. | |
#define | __HAL_COMP_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_EN) |
Disable the specified comparator. | |
#define | __HAL_COMP_LOCK(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_LOCK) |
Lock the specified comparator configuration. | |
#define | __HAL_COMP_IS_LOCKED(__HANDLE__) (READ_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_LOCK) == COMP_CSR_LOCK) |
Check whether the specified comparator is locked. |
#define __HAL_COMP_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_EN) |
Disable the specified comparator.
__HANDLE__ | COMP handle |
None |
Definition at line 325 of file stm32l4xx_hal_comp.h.
#define __HAL_COMP_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_EN) |
Enable the specified comparator.
__HANDLE__ | COMP handle |
None |
Definition at line 318 of file stm32l4xx_hal_comp.h.
#define __HAL_COMP_IS_LOCKED | ( | __HANDLE__ | ) | (READ_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_LOCK) == COMP_CSR_LOCK) |
Check whether the specified comparator is locked.
__HANDLE__ | COMP handle |
Value | 0 if COMP instance is not locked, value 1 if COMP instance is locked |
Definition at line 343 of file stm32l4xx_hal_comp.h.
Referenced by HAL_COMP_DeInit(), HAL_COMP_Init(), HAL_COMP_Lock(), HAL_COMP_Start(), and HAL_COMP_Stop().
#define __HAL_COMP_LOCK | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CSR, COMP_CSR_LOCK) |
Lock the specified comparator configuration.
__HANDLE__ | COMP handle |
None |
Definition at line 336 of file stm32l4xx_hal_comp.h.
Referenced by HAL_COMP_Lock().
#define __HAL_COMP_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
do{ \ (__HANDLE__)->State = HAL_COMP_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0)
Reset COMP handle state.
__HANDLE__ | COMP handle |
None |
Definition at line 297 of file stm32l4xx_hal_comp.h.
#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 |
Definition at line 311 of file stm32l4xx_hal_comp.h.
Referenced by HAL_COMP_Init().