STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Initialization and de-initialization functions

Initialization and Configuration functions. More...

Collaboration diagram for Initialization and de-initialization functions:

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.
 

Detailed Description

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

Function Documentation

◆ HAL_CEC_Init()

◆ HAL_CEC_DeInit()

◆ HAL_CEC_SetDeviceAddress()

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.

Parameters
hcecCEC handle
CEC_OwnAddressThe CEC own address.
Return values
HALstatus

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.

◆ HAL_CEC_MspInit()

__weak void HAL_CEC_MspInit ( CEC_HandleTypeDef * hcec)

#include <stm32f4xx_hal_cec.h>

CEC MSP Init.

Parameters
hcecCEC handle
Return values
None

Definition at line 387 of file stm32f4xx_hal_cec.c.

References UNUSED.

Referenced by HAL_CEC_Init().

◆ HAL_CEC_MspDeInit()

__weak void HAL_CEC_MspDeInit ( CEC_HandleTypeDef * hcec)

#include <stm32f4xx_hal_cec.h>

CEC MSP DeInit.

Parameters
hcecCEC handle
Return values
None

Definition at line 401 of file stm32f4xx_hal_cec.c.

References UNUSED.

Referenced by HAL_CEC_DeInit().