RTEMS 6.3
Loading...
Searching...
No Matches

Macros

#define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__)
 Reset COMP handle state.
#define COMP_CLEAR_ERRORCODE(__HANDLE__)
 Clear COMP error code (set it to no error code "HAL_COMP_ERROR_NONE").
#define __HAL_COMP_ENABLE(__HANDLE__)
 Enable the specified comparator.
#define __HAL_COMP_DISABLE(__HANDLE__)
 Disable the specified comparator.
#define __HAL_COMP_LOCK(__HANDLE__)
 Lock the specified comparator configuration.
#define __HAL_COMP_IS_LOCKED(__HANDLE__)
 Check whether the specified comparator is locked.

Detailed Description

Macro Definition Documentation

◆ __HAL_COMP_DISABLE

#define __HAL_COMP_DISABLE ( __HANDLE__)
Value:
CLEAR_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_EN)
#define COMP_CFGRx_EN
Definition stm32h723xx.h:20853

Disable the specified comparator.

Parameters
__HANDLE__COMP handle
Return values
None

◆ __HAL_COMP_ENABLE

#define __HAL_COMP_ENABLE ( __HANDLE__)
Value:
SET_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_EN)

Enable the specified comparator.

Parameters
__HANDLE__COMP handle
Return values
None

◆ __HAL_COMP_IS_LOCKED

#define __HAL_COMP_IS_LOCKED ( __HANDLE__)
Value:
(READ_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_LOCK) == COMP_CFGRx_LOCK)
#define COMP_CFGRx_LOCK
Definition stm32h723xx.h:20896

Check whether the specified comparator is locked.

Parameters
__HANDLE__COMP handle
Return values
Value0 if COMP instance is not locked, value 1 if COMP instance is locked

◆ __HAL_COMP_LOCK

#define __HAL_COMP_LOCK ( __HANDLE__)
Value:
SET_BIT((__HANDLE__)->Instance->CFGR, COMP_CFGRx_LOCK)

Lock the specified comparator configuration.

Note
Using this macro induce HAL COMP handle state machine being no more in line with COMP instance state. To keep HAL COMP handle state machine updated, it is recommended to use function "HAL_COMP_Lock')".
Parameters
__HANDLE__COMP handle
Return values
None

◆ __HAL_COMP_RESET_HANDLE_STATE

#define __HAL_COMP_RESET_HANDLE_STATE ( __HANDLE__)
Value:
((__HANDLE__)->State = HAL_COMP_STATE_RESET)
@ HAL_COMP_STATE_RESET
Definition stm32h7xx_hal_comp.h:86

Reset COMP handle state.

Parameters
__HANDLE__COMP handle
Return values
None

◆ COMP_CLEAR_ERRORCODE

#define COMP_CLEAR_ERRORCODE ( __HANDLE__)
Value:
((__HANDLE__)->ErrorCode = HAL_COMP_ERROR_NONE)
#define HAL_COMP_ERROR_NONE
Definition stm32h7xx_hal_comp.h:147

Clear COMP error code (set it to no error code "HAL_COMP_ERROR_NONE").

Parameters
__HANDLE__COMP handle
Return values
None