STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Initialization and Configuration functions

Initialization and Configuration functions. More...

Functions

void CEC_DeInit (void)
 Deinitializes the CEC peripheral registers to their default reset values. More...
 
void CEC_Init (CEC_InitTypeDef *CEC_InitStruct)
 Initializes the CEC peripheral according to the specified parameters in the CEC_InitStruct. More...
 
void CEC_StructInit (CEC_InitTypeDef *CEC_InitStruct)
 Fills each CEC_InitStruct member with its default value. More...
 
void CEC_Cmd (FunctionalState NewState)
 Enables or disables the CEC peripheral. More...
 
void CEC_ListenModeCmd (FunctionalState NewState)
 Enables or disables the CEC Listen Mode. More...
 
void CEC_OwnAddressConfig (uint8_t CEC_OwnAddress)
 Defines the Own Address of the CEC device. More...
 
void CEC_OwnAddressClear (void)
 Clears the Own Address of the CEC device. More...
 

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
                            ##### Initialization and Configuration functions #####
 ===============================================================================
      [..] This section provides functions allowing to initialize:
            (+) CEC own addresses
            (+) CEC Signal Free Time
            (+) CEC Rx Tolerance
            (+) CEC Stop Reception
            (+) CEC Bit Rising Error
            (+) CEC Long Bit Period Error
      [..] This section provides also a function to configure the CEC peripheral in Listen Mode.
           Messages addressed to different destination can be received when Listen mode is 
           enabled without interfering with CEC bus.

Function Documentation

void CEC_Cmd ( FunctionalState  NewState)

Enables or disables the CEC peripheral.

Parameters
NewState,:new state of the CEC peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
void CEC_DeInit ( void  )

Deinitializes the CEC peripheral registers to their default reset values.

Parameters
None
Return values
None
void CEC_Init ( CEC_InitTypeDef CEC_InitStruct)

Initializes the CEC peripheral according to the specified parameters in the CEC_InitStruct.

Note
The CEC parameters must be configured before enabling the CEC peripheral.
Parameters
CEC_InitStruct,:pointer to an CEC_InitTypeDef structure that contains the configuration information for the specified CEC peripheral.
Return values
None
void CEC_ListenModeCmd ( FunctionalState  NewState)

Enables or disables the CEC Listen Mode.

Parameters
NewState,:new state of the Listen Mode. This parameter can be: ENABLE or DISABLE.
Return values
None
void CEC_OwnAddressClear ( void  )

Clears the Own Address of the CEC device.

Parameters
CEC_OwnAddress,:The CEC own address.
Return values
None
void CEC_OwnAddressConfig ( uint8_t  CEC_OwnAddress)

Defines the Own Address of the CEC device.

Parameters
CEC_OwnAddress,:The CEC own address.
Return values
None
void CEC_StructInit ( CEC_InitTypeDef CEC_InitStruct)

Fills each CEC_InitStruct member with its default value.

Parameters
CEC_InitStruct,:pointer to a CEC_InitTypeDef structure which will be initialized.
Return values
None