STM32L486xx HAL User Manual
Data Structures | Defines | Typedefs | Enumerations
COMP Exported Types
COMP

Data Structures

struct  COMP_InitTypeDef
 COMP Init structure definition. More...
struct  __COMP_HandleTypeDef
 COMP Handle Structure definition. More...

Defines

#define COMP_STATE_BITFIELD_LOCK   (0x10U)
 HAL COMP state machine: HAL COMP states definition.

Typedefs

typedef struct __COMP_HandleTypeDef COMP_HandleTypeDef
 COMP Handle Structure definition.
typedef void(* pCOMP_CallbackTypeDef )(COMP_HandleTypeDef *hcomp)
 HAL COMP Callback pointer definition.

Enumerations

enum  HAL_COMP_StateTypeDef {
  HAL_COMP_STATE_RESET = 0x00U, HAL_COMP_STATE_RESET_LOCKED = (HAL_COMP_STATE_RESET | COMP_STATE_BITFIELD_LOCK), HAL_COMP_STATE_READY = 0x01U, HAL_COMP_STATE_READY_LOCKED = (HAL_COMP_STATE_READY | COMP_STATE_BITFIELD_LOCK),
  HAL_COMP_STATE_BUSY = 0x02U, HAL_COMP_STATE_BUSY_LOCKED = (HAL_COMP_STATE_BUSY | COMP_STATE_BITFIELD_LOCK)
}
enum  HAL_COMP_CallbackIDTypeDef { HAL_COMP_TRIGGER_CB_ID = 0x00U, HAL_COMP_MSPINIT_CB_ID = 0x01U, HAL_COMP_MSPDEINIT_CB_ID = 0x02U }
 HAL COMP Callback ID enumeration definition. More...

Define Documentation

#define COMP_STATE_BITFIELD_LOCK   (0x10U)

HAL COMP state machine: HAL COMP states definition.

Definition at line 101 of file stm32l4xx_hal_comp.h.

Referenced by HAL_COMP_Lock().


Typedef Documentation

COMP Handle Structure definition.

typedef void(* pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp)

HAL COMP Callback pointer definition.

pointer to a COMP callback function

Definition at line 143 of file stm32l4xx_hal_comp.h.


Enumeration Type Documentation

HAL COMP Callback ID enumeration definition.

Enumerator:
HAL_COMP_TRIGGER_CB_ID 

COMP trigger callback ID

HAL_COMP_MSPINIT_CB_ID 

COMP Msp Init callback ID

HAL_COMP_MSPDEINIT_CB_ID 

COMP Msp DeInit callback ID

Definition at line 133 of file stm32l4xx_hal_comp.h.

Enumerator:
HAL_COMP_STATE_RESET 

COMP not yet initialized

HAL_COMP_STATE_RESET_LOCKED 

COMP not yet initialized and configuration is locked

HAL_COMP_STATE_READY 

COMP initialized and ready for use

HAL_COMP_STATE_READY_LOCKED 

COMP initialized but configuration is locked

HAL_COMP_STATE_BUSY 

COMP is running

HAL_COMP_STATE_BUSY_LOCKED 

COMP is running and configuration is locked

Definition at line 102 of file stm32l4xx_hal_comp.h.