STM32H735xx HAL User Manual
Data Structures | Typedefs | Enumerations
CEC Exported Types
CEC

Data Structures

struct  CEC_InitTypeDef
 CEC Init Structure definition. More...
struct  __CEC_HandleTypeDef
 CEC handle Structure definition. More...

Typedefs

typedef uint32_t HAL_CEC_StateTypeDef
 HAL CEC State definition.
typedef struct __CEC_HandleTypeDef CEC_HandleTypeDef
 CEC handle Structure definition.
typedef void(* pCEC_CallbackTypeDef )(CEC_HandleTypeDef *hcec)
 HAL CEC Callback pointer definition.
typedef void(* pCEC_RxCallbackTypeDef )(CEC_HandleTypeDef *hcec, uint32_t RxFrameSize)

Enumerations

enum  HAL_CEC_CallbackIDTypeDef {
  HAL_CEC_TX_CPLT_CB_ID = 0x00U, HAL_CEC_RX_CPLT_CB_ID = 0x01U, HAL_CEC_ERROR_CB_ID = 0x02U, HAL_CEC_MSPINIT_CB_ID = 0x03U,
  HAL_CEC_MSPDEINIT_CB_ID = 0x04U
}
 HAL CEC Callback ID enumeration definition. More...

Typedef Documentation

CEC handle Structure definition.

typedef uint32_t HAL_CEC_StateTypeDef

HAL CEC State definition.

Note:
HAL CEC State value is a combination of 2 different substates: gState and RxState (see CEC State Code Definition).
  • gState contains CEC state information related to global Handle management and also information related to Tx operations. gState value coding follow below described bitmap : b7 (not used) x : Should be set to 0 b6 Error information 0 : No Error 1 : Error b5 CEC peripheral initialization status 0 : Reset (peripheral not initialized) 1 : Init done (peripheral initialized. HAL CEC Init function already called) b4-b3 (not used) xx : Should be set to 00 b2 Intrinsic process state 0 : Ready 1 : Busy (peripheral busy with some configuration or internal operations) b1 (not used) x : Should be set to 0 b0 Tx state 0 : Ready (no Tx operation ongoing) 1 : Busy (Tx operation ongoing)
  • RxState contains information related to Rx operations. RxState value coding follow below described bitmap : b7-b6 (not used) xx : Should be set to 00 b5 CEC peripheral initialization status 0 : Reset (peripheral not initialized) 1 : Init done (peripheral initialized) b4-b2 (not used) xxx : Should be set to 000 b1 Rx state 0 : Ready (no Rx operation ongoing) 1 : Busy (Rx operation ongoing) b0 (not used) x : Should be set to 0.

Definition at line 151 of file stm32h7xx_hal_cec.h.

typedef void(* pCEC_CallbackTypeDef)(CEC_HandleTypeDef *hcec)

HAL CEC Callback pointer definition.

pointer to an CEC callback function

Definition at line 213 of file stm32h7xx_hal_cec.h.

typedef void(* pCEC_RxCallbackTypeDef)(CEC_HandleTypeDef *hcec, uint32_t RxFrameSize)

pointer to an Rx Transfer completed callback function

Definition at line 214 of file stm32h7xx_hal_cec.h.


Enumeration Type Documentation

HAL CEC Callback ID enumeration definition.

Enumerator:
HAL_CEC_TX_CPLT_CB_ID 

CEC Tx Transfer completed callback ID

HAL_CEC_RX_CPLT_CB_ID 

CEC Rx Transfer completed callback ID

HAL_CEC_ERROR_CB_ID 

CEC error callback ID

HAL_CEC_MSPINIT_CB_ID 

CEC Msp Init callback ID

HAL_CEC_MSPDEINIT_CB_ID 

CEC Msp DeInit callback ID

Definition at line 201 of file stm32h7xx_hal_cec.h.