Initialization and Configuration functions.
More...
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.
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
-
Deinitializes the CEC peripheral registers to their default reset values.
- Parameters
-
- Return values
-
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
-
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
-
void CEC_OwnAddressClear |
( |
void |
| ) |
|
Clears the Own Address of the CEC device.
- Parameters
-
CEC_OwnAddress,: | The CEC own address. |
- Return values
-
void CEC_OwnAddressConfig |
( |
uint8_t |
CEC_OwnAddress | ) |
|
Defines the Own Address of the CEC device.
- Parameters
-
CEC_OwnAddress,: | The CEC own address. |
- Return values
-
Fills each CEC_InitStruct member with its default value.
- Parameters
-
CEC_InitStruct,: | pointer to a CEC_InitTypeDef structure which will be initialized. |
- Return values
-