Initialization and Configuration functions.
More...
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_CEC_DeInit()
DeInitializes the CEC peripheral.
- Parameters
-
- Return values
-
Definition at line 274 of file stm32f4xx_hal_cec.c.
◆ HAL_CEC_Init()
Initializes the CEC mode according to the specified parameters in the CEC_InitTypeDef and creates the associated handle .
- Parameters
-
- Return values
-
Definition at line 181 of file stm32f4xx_hal_cec.c.
◆ HAL_CEC_MspDeInit()
◆ HAL_CEC_MspInit()
◆ HAL_CEC_RegisterCallback()
Register a User CEC Callback To be used instead of the weak predefined callback.
- Parameters
-
hcec | CEC handle |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
- HAL_CEC_TX_CPLT_CB_ID Tx Complete callback ID
- HAL_CEC_ERROR_CB_ID Error callback ID
- HAL_CEC_MSPINIT_CB_ID MspInit callback ID
- HAL_CEC_MSPDEINIT_CB_ID MspDeInit callback ID
|
pCallback | pointer to the Callback function |
- Return values
-
Definition at line 423 of file stm32f4xx_hal_cec.c.
◆ HAL_CEC_RegisterRxCpltCallback()
Register CEC RX complete Callback To be used instead of the weak HAL_CEC_RxCpltCallback() predefined callback.
- Parameters
-
hcec | CEC handle |
pCallback | pointer to the Rx transfer compelete Callback function |
- Return values
-
Definition at line 587 of file stm32f4xx_hal_cec.c.
◆ HAL_CEC_SetDeviceAddress()
HAL_StatusTypeDef HAL_CEC_SetDeviceAddress |
( |
CEC_HandleTypeDef * |
hcec, |
|
|
uint16_t |
CEC_OwnAddress |
|
) |
| |
Initializes the Own Address of the CEC device.
- Parameters
-
hcec | CEC handle |
CEC_OwnAddress | The CEC own address. |
- Return values
-
Definition at line 341 of file stm32f4xx_hal_cec.c.
◆ HAL_CEC_UnRegisterCallback()
Unregister an CEC Callback CEC callback is redirected to the weak predefined callback.
- Parameters
-
hcec | uart handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
- HAL_CEC_TX_CPLT_CB_ID Tx Complete callback ID
- HAL_CEC_ERROR_CB_ID Error callback ID
- HAL_CEC_MSPINIT_CB_ID MspInit callback ID
- HAL_CEC_MSPDEINIT_CB_ID MspDeInit callback ID
|
- Return values
-
Definition at line 511 of file stm32f4xx_hal_cec.c.
◆ HAL_CEC_UnRegisterRxCpltCallback()