STM32H735xx HAL User Manual
|
Initialization and Configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_CEC_Init (CEC_HandleTypeDef *hcec) |
Initializes the CEC mode according to the specified parameters in the CEC_InitTypeDef and creates the associated handle . | |
HAL_StatusTypeDef | HAL_CEC_DeInit (CEC_HandleTypeDef *hcec) |
DeInitializes the CEC peripheral. | |
HAL_StatusTypeDef | HAL_CEC_SetDeviceAddress (CEC_HandleTypeDef *hcec, uint16_t CEC_OwnAddress) |
Initializes the Own Address of the CEC device. | |
__weak void | HAL_CEC_MspInit (CEC_HandleTypeDef *hcec) |
CEC MSP Init. | |
__weak void | HAL_CEC_MspDeInit (CEC_HandleTypeDef *hcec) |
CEC MSP DeInit. | |
HAL_StatusTypeDef | HAL_CEC_RegisterCallback (CEC_HandleTypeDef *hcec, HAL_CEC_CallbackIDTypeDef CallbackID, pCEC_CallbackTypeDef pCallback) |
Register a User CEC Callback To be used instead of the weak predefined callback. | |
HAL_StatusTypeDef | HAL_CEC_UnRegisterCallback (CEC_HandleTypeDef *hcec, HAL_CEC_CallbackIDTypeDef CallbackID) |
Unregister an CEC Callback CEC callabck is redirected to the weak predefined callback. | |
HAL_StatusTypeDef | HAL_CEC_RegisterRxCpltCallback (CEC_HandleTypeDef *hcec, pCEC_RxCallbackTypeDef pCallback) |
Register CEC RX complete Callback To be used instead of the weak HAL_CEC_RxCpltCallback() predefined callback. | |
HAL_StatusTypeDef | HAL_CEC_UnRegisterRxCpltCallback (CEC_HandleTypeDef *hcec) |
UnRegister CEC RX complete Callback CEC RX complete Callback is redirected to the weak HAL_CEC_RxCpltCallback() predefined callback. |
Initialization and Configuration functions.
=============================================================================== ##### Initialization and Configuration functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to initialize the CEC (+) The following parameters need to be configured: (++) SignalFreeTime (++) Tolerance (++) BRERxStop (RX stopped or not upon Bit Rising Error) (++) BREErrorBitGen (Error-Bit generation in case of Bit Rising Error) (++) LBPEErrorBitGen (Error-Bit generation in case of Long Bit Period Error) (++) BroadcastMsgNoErrorBitGen (Error-bit generation in case of broadcast message error) (++) SignalFreeTimeOption (SFT Timer start definition) (++) OwnAddress (CEC device address) (++) ListenMode
HAL_StatusTypeDef HAL_CEC_DeInit | ( | CEC_HandleTypeDef * | hcec | ) |
DeInitializes the CEC peripheral.
hcec | CEC handle |
HAL | status |
Definition at line 273 of file stm32h7xx_hal_cec.c.
References __HAL_CEC_CLEAR_FLAG, __HAL_CEC_DISABLE, __HAL_CEC_DISABLE_IT, assert_param, CEC_FLAG_RXBR, CEC_FLAG_RXEND, CEC_FLAG_TXBR, CEC_FLAG_TXEND, CEC_IER_RX_ALL_ERR, CEC_IER_TX_ALL_ERR, CEC_ISR_ALL_ERROR, CEC_IT_RXBR, CEC_IT_RXEND, CEC_IT_TXBR, CEC_IT_TXEND, __CEC_HandleTypeDef::ErrorCode, __CEC_HandleTypeDef::gState, HAL_CEC_ERROR_NONE, HAL_CEC_MspDeInit(), HAL_CEC_STATE_BUSY, HAL_CEC_STATE_RESET, __CEC_HandleTypeDef::Instance, __CEC_HandleTypeDef::MspDeInitCallback, and __CEC_HandleTypeDef::RxState.
HAL_StatusTypeDef HAL_CEC_Init | ( | CEC_HandleTypeDef * | hcec | ) |
Initializes the CEC mode according to the specified parameters in the CEC_InitTypeDef and creates the associated handle .
hcec | CEC handle |
HAL | status |
Definition at line 181 of file stm32h7xx_hal_cec.c.
References __HAL_CEC_DISABLE, __HAL_CEC_ENABLE, __HAL_CEC_ENABLE_IT, assert_param, CEC_InitTypeDef::BREErrorBitGen, CEC_InitTypeDef::BRERxStop, CEC_InitTypeDef::BroadcastMsgNoErrorBitGen, CEC_IER_RX_ALL_ERR, CEC_IER_TX_ALL_ERR, CEC_IT_RXBR, CEC_IT_RXEND, CEC_IT_TXBR, CEC_IT_TXEND, __CEC_HandleTypeDef::ErrorCallback, __CEC_HandleTypeDef::ErrorCode, __CEC_HandleTypeDef::gState, HAL_CEC_ERROR_NONE, HAL_CEC_ErrorCallback(), HAL_CEC_MspInit(), HAL_CEC_RxCpltCallback(), HAL_CEC_STATE_BUSY, HAL_CEC_STATE_READY, HAL_CEC_STATE_RESET, HAL_CEC_TxCpltCallback(), __CEC_HandleTypeDef::Init, __CEC_HandleTypeDef::Instance, IS_CEC_BREERRORBITGEN, IS_CEC_BRERXSTOP, IS_CEC_BROADCASTERROR_NO_ERRORBIT_GENERATION, IS_CEC_LBPEERRORBITGEN, IS_CEC_LISTENING_MODE, IS_CEC_OWN_ADDRESS, IS_CEC_SFTOP, IS_CEC_SIGNALFREETIME, IS_CEC_TOLERANCE, CEC_InitTypeDef::LBPEErrorBitGen, CEC_InitTypeDef::ListenMode, __CEC_HandleTypeDef::Lock, __CEC_HandleTypeDef::MspInitCallback, CEC_InitTypeDef::OwnAddress, CEC_InitTypeDef::RxBuffer, __CEC_HandleTypeDef::RxCpltCallback, __CEC_HandleTypeDef::RxState, CEC_InitTypeDef::SignalFreeTime, CEC_InitTypeDef::SignalFreeTimeOption, CEC_InitTypeDef::Tolerance, and __CEC_HandleTypeDef::TxCpltCallback.
void HAL_CEC_MspDeInit | ( | CEC_HandleTypeDef * | hcec | ) |
CEC MSP DeInit.
hcec | CEC handle |
None |
Definition at line 400 of file stm32h7xx_hal_cec.c.
Referenced by HAL_CEC_DeInit(), and HAL_CEC_UnRegisterCallback().
void HAL_CEC_MspInit | ( | CEC_HandleTypeDef * | hcec | ) |
CEC MSP Init.
hcec | CEC handle |
None |
Definition at line 386 of file stm32h7xx_hal_cec.c.
Referenced by HAL_CEC_Init(), and HAL_CEC_UnRegisterCallback().
HAL_StatusTypeDef HAL_CEC_RegisterCallback | ( | CEC_HandleTypeDef * | hcec, |
HAL_CEC_CallbackIDTypeDef | CallbackID, | ||
pCEC_CallbackTypeDef | pCallback | ||
) |
Register a User CEC Callback To be used instead of the weak predefined callback.
hcec | CEC handle |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
HAL | status |
Definition at line 422 of file stm32h7xx_hal_cec.c.
References __CEC_HandleTypeDef::ErrorCallback, __CEC_HandleTypeDef::ErrorCode, __CEC_HandleTypeDef::gState, HAL_CEC_ERROR_CB_ID, HAL_CEC_ERROR_INVALID_CALLBACK, HAL_CEC_MSPDEINIT_CB_ID, HAL_CEC_MSPINIT_CB_ID, HAL_CEC_STATE_READY, HAL_CEC_STATE_RESET, HAL_CEC_TX_CPLT_CB_ID, __CEC_HandleTypeDef::MspDeInitCallback, __CEC_HandleTypeDef::MspInitCallback, and __CEC_HandleTypeDef::TxCpltCallback.
HAL_StatusTypeDef HAL_CEC_RegisterRxCpltCallback | ( | CEC_HandleTypeDef * | hcec, |
pCEC_RxCallbackTypeDef | pCallback | ||
) |
Register CEC RX complete Callback To be used instead of the weak HAL_CEC_RxCpltCallback() predefined callback.
hcec | CEC handle |
pCallback | pointer to the Rx transfer compelete Callback function |
HAL | status |
Definition at line 586 of file stm32h7xx_hal_cec.c.
References __CEC_HandleTypeDef::ErrorCode, HAL_CEC_ERROR_INVALID_CALLBACK, HAL_CEC_STATE_READY, __CEC_HandleTypeDef::RxCpltCallback, and __CEC_HandleTypeDef::RxState.
HAL_StatusTypeDef HAL_CEC_SetDeviceAddress | ( | CEC_HandleTypeDef * | hcec, |
uint16_t | CEC_OwnAddress | ||
) |
Initializes the Own Address of the CEC device.
hcec | CEC handle |
CEC_OwnAddress | The CEC own address. |
HAL | status |
Definition at line 340 of file stm32h7xx_hal_cec.c.
References __HAL_CEC_DISABLE, __HAL_CEC_ENABLE, assert_param, CEC_OWN_ADDRESS_NONE, __CEC_HandleTypeDef::ErrorCode, __CEC_HandleTypeDef::gState, HAL_CEC_ERROR_NONE, HAL_CEC_STATE_BUSY, HAL_CEC_STATE_READY, __CEC_HandleTypeDef::Instance, IS_CEC_OWN_ADDRESS, and __CEC_HandleTypeDef::RxState.
HAL_StatusTypeDef HAL_CEC_UnRegisterCallback | ( | CEC_HandleTypeDef * | hcec, |
HAL_CEC_CallbackIDTypeDef | CallbackID | ||
) |
Unregister an CEC Callback CEC callabck is redirected to the weak predefined callback.
hcec | uart handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
status |
Definition at line 510 of file stm32h7xx_hal_cec.c.
References __CEC_HandleTypeDef::ErrorCallback, __CEC_HandleTypeDef::ErrorCode, __CEC_HandleTypeDef::gState, HAL_CEC_ERROR_CB_ID, HAL_CEC_ERROR_INVALID_CALLBACK, HAL_CEC_ErrorCallback(), HAL_CEC_MspDeInit(), HAL_CEC_MSPDEINIT_CB_ID, HAL_CEC_MspInit(), HAL_CEC_MSPINIT_CB_ID, HAL_CEC_STATE_READY, HAL_CEC_STATE_RESET, HAL_CEC_TX_CPLT_CB_ID, HAL_CEC_TxCpltCallback(), __CEC_HandleTypeDef::MspDeInitCallback, __CEC_HandleTypeDef::MspInitCallback, and __CEC_HandleTypeDef::TxCpltCallback.
HAL_StatusTypeDef HAL_CEC_UnRegisterRxCpltCallback | ( | CEC_HandleTypeDef * | hcec | ) |
UnRegister CEC RX complete Callback CEC RX complete Callback is redirected to the weak HAL_CEC_RxCpltCallback() predefined callback.
hcec | CEC handle |
HAL | status |
Definition at line 622 of file stm32h7xx_hal_cec.c.
References __CEC_HandleTypeDef::ErrorCode, HAL_CEC_ERROR_INVALID_CALLBACK, HAL_CEC_RxCpltCallback(), HAL_CEC_STATE_READY, __CEC_HandleTypeDef::RxCpltCallback, and __CEC_HandleTypeDef::RxState.