|
STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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. | |
| void | HAL_CEC_MspInit (CEC_HandleTypeDef *hcec) |
| CEC MSP Init. | |
| void | HAL_CEC_MspDeInit (CEC_HandleTypeDef *hcec) |
| CEC MSP DeInit. | |
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_Init | ( | CEC_HandleTypeDef * | hcec | ) |
#include <stm32f4xx_hal_cec.h>
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 stm32f4xx_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::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(), HAL_ERROR, HAL_OK, HAL_UNLOCKED, 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_InitTypeDef::OwnAddress, CEC_InitTypeDef::RxBuffer, CEC_HandleTypeDef::RxState, CEC_InitTypeDef::SignalFreeTime, CEC_InitTypeDef::SignalFreeTimeOption, and CEC_InitTypeDef::Tolerance.
| HAL_StatusTypeDef HAL_CEC_DeInit | ( | CEC_HandleTypeDef * | hcec | ) |
#include <stm32f4xx_hal_cec.h>
DeInitializes the CEC peripheral.
| hcec | CEC handle |
| HAL | status |
Definition at line 274 of file stm32f4xx_hal_cec.c.
References __HAL_CEC_CLEAR_FLAG, __HAL_CEC_DISABLE, __HAL_CEC_DISABLE_IT, __HAL_UNLOCK, 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, HAL_ERROR, HAL_OK, CEC_HandleTypeDef::Instance, and CEC_HandleTypeDef::RxState.
| HAL_StatusTypeDef HAL_CEC_SetDeviceAddress | ( | CEC_HandleTypeDef * | hcec, |
| uint16_t | CEC_OwnAddress ) |
#include <stm32f4xx_hal_cec.h>
Initializes the Own Address of the CEC device.
| hcec | CEC handle |
| CEC_OwnAddress | The CEC own address. |
| HAL | status |
Definition at line 341 of file stm32f4xx_hal_cec.c.
References __HAL_CEC_DISABLE, __HAL_CEC_ENABLE, __HAL_LOCK, __HAL_UNLOCK, assert_param, CEC_OWN_ADDRESS_NONE, CEC_HandleTypeDef::ErrorCode, CEC_HandleTypeDef::gState, HAL_BUSY, HAL_CEC_ERROR_NONE, HAL_CEC_STATE_BUSY, HAL_CEC_STATE_READY, HAL_OK, CEC_HandleTypeDef::Instance, IS_CEC_OWN_ADDRESS, and CEC_HandleTypeDef::RxState.
| __weak void HAL_CEC_MspInit | ( | CEC_HandleTypeDef * | hcec | ) |
#include <stm32f4xx_hal_cec.h>
CEC MSP Init.
| hcec | CEC handle |
| None |
Definition at line 387 of file stm32f4xx_hal_cec.c.
References UNUSED.
Referenced by HAL_CEC_Init().
| __weak void HAL_CEC_MspDeInit | ( | CEC_HandleTypeDef * | hcec | ) |
#include <stm32f4xx_hal_cec.h>
CEC MSP DeInit.
| hcec | CEC handle |
| None |
Definition at line 401 of file stm32f4xx_hal_cec.c.
References UNUSED.
Referenced by HAL_CEC_DeInit().