uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CEC_Private_Functions

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_Cmd (FunctionalState NewState)
 Enables or disables the specified CEC peripheral. More...
 
void CEC_ITConfig (FunctionalState NewState)
 Enables or disables the CEC interrupt. More...
 
void CEC_OwnAddressConfig (uint8_t CEC_OwnAddress)
 Defines the Own Address of the CEC device. More...
 
void CEC_SetPrescaler (uint16_t CEC_Prescaler)
 Sets the CEC prescaler value. More...
 
void CEC_SendDataByte (uint8_t Data)
 Transmits single data through the CEC peripheral. More...
 
uint8_t CEC_ReceiveDataByte (void)
 Returns the most recent received data by the CEC peripheral. More...
 
void CEC_StartOfMessage (void)
 Starts a new message. More...
 
void CEC_EndOfMessageCmd (FunctionalState NewState)
 Transmits message with or without an EOM bit. More...
 
FlagStatus CEC_GetFlagStatus (uint32_t CEC_FLAG)
 Gets the CEC flag status. More...
 
void CEC_ClearFlag (uint32_t CEC_FLAG)
 Clears the CEC's pending flags. More...
 
ITStatus CEC_GetITStatus (uint8_t CEC_IT)
 Checks whether the specified CEC interrupt has occurred or not. More...
 
void CEC_ClearITPendingBit (uint16_t CEC_IT)
 Clears the CEC's interrupt pending bits. More...
 

Detailed Description

Function Documentation

void CEC_ClearFlag ( uint32_t  CEC_FLAG)

Clears the CEC's pending flags.

Parameters
CEC_FLAG,:specifies the flag to clear. This parameter can be any combination of the following values:
  • CEC_FLAG_TERR: Tx Error
  • CEC_FLAG_TBTRF: Tx Byte Transfer Request or Block Transfer Finished
  • CEC_FLAG_RSOM: Rx Start Of Message
  • CEC_FLAG_REOM: Rx End Of Message
  • CEC_FLAG_RERR: Rx Error
  • CEC_FLAG_RBTF: Rx Byte/Block Transfer Finished
Return values
None

Definition at line 349 of file stm32f10x_cec.c.

void CEC_ClearITPendingBit ( uint16_t  CEC_IT)

Clears the CEC's interrupt pending bits.

Parameters
CEC_IT,:specifies the CEC interrupt pending bit to clear. This parameter can be any combination of the following values:
  • CEC_IT_TERR: Tx Error
  • CEC_IT_TBTF: Tx Block Transfer Finished
  • CEC_IT_RERR: Rx Error
  • CEC_IT_RBTF: Rx Block Transfer Finished
Return values
None

Definition at line 408 of file stm32f10x_cec.c.

void CEC_Cmd ( FunctionalState  NewState)

Enables or disables the specified CEC peripheral.

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

Definition at line 164 of file stm32f10x_cec.c.

void CEC_DeInit ( void  )

Deinitializes the CEC peripheral registers to their default reset values.

Parameters
None
Return values
None

Definition at line 118 of file stm32f10x_cec.c.

void CEC_EndOfMessageCmd ( FunctionalState  NewState)

Transmits message with or without an EOM bit.

Parameters
NewState,:new state of the CEC Tx End Of Message. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 262 of file stm32f10x_cec.c.

FlagStatus CEC_GetFlagStatus ( uint32_t  CEC_FLAG)

Gets the CEC flag status.

Parameters
CEC_FLAG,:specifies the CEC flag to check. This parameter can be one of the following values:
  • CEC_FLAG_BTE: Bit Timing Error
  • CEC_FLAG_BPE: Bit Period Error
  • CEC_FLAG_RBTFE: Rx Block Transfer Finished Error
  • CEC_FLAG_SBE: Start Bit Error
  • CEC_FLAG_ACKE: Block Acknowledge Error
  • CEC_FLAG_LINE: Line Error
  • CEC_FLAG_TBTFE: Tx Block Transfer Finished Error
  • CEC_FLAG_TEOM: Tx End Of Message
  • CEC_FLAG_TERR: Tx Error
  • CEC_FLAG_TBTRF: Tx Byte Transfer Request or Block Transfer Finished
  • CEC_FLAG_RSOM: Rx Start Of Message
  • CEC_FLAG_REOM: Rx End Of Message
  • CEC_FLAG_RERR: Rx Error
  • CEC_FLAG_RBTF: Rx Byte/Block Transfer Finished
Return values
Thenew state of CEC_FLAG (SET or RESET)

Definition at line 291 of file stm32f10x_cec.c.

ITStatus CEC_GetITStatus ( uint8_t  CEC_IT)

Checks whether the specified CEC interrupt has occurred or not.

Parameters
CEC_IT,:specifies the CEC interrupt source to check. This parameter can be one of the following values:
  • CEC_IT_TERR: Tx Error
  • CEC_IT_TBTF: Tx Block Transfer Finished
  • CEC_IT_RERR: Rx Error
  • CEC_IT_RBTF: Rx Block Transfer Finished
Return values
Thenew state of CEC_IT (SET or RESET).

Definition at line 372 of file stm32f10x_cec.c.

void CEC_Init ( CEC_InitTypeDef CEC_InitStruct)

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

Parameters
CEC_InitStruct,:pointer to an CEC_InitTypeDef structure that contains the configuration information for the specified CEC peripheral.
Return values
None

Definition at line 135 of file stm32f10x_cec.c.

void CEC_ITConfig ( FunctionalState  NewState)

Enables or disables the CEC interrupt.

Parameters
NewState,:new state of the CEC interrupt. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 186 of file stm32f10x_cec.c.

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

Definition at line 199 of file stm32f10x_cec.c.

uint8_t CEC_ReceiveDataByte ( void  )

Returns the most recent received data by the CEC peripheral.

Parameters
None
Return values
Thereceived data.

Definition at line 239 of file stm32f10x_cec.c.

void CEC_SendDataByte ( uint8_t  Data)

Transmits single data through the CEC peripheral.

Parameters
Data,:the data to transmit.
Return values
None

Definition at line 227 of file stm32f10x_cec.c.

void CEC_SetPrescaler ( uint16_t  CEC_Prescaler)

Sets the CEC prescaler value.

Parameters
CEC_Prescaler,:CEC prescaler new value
Return values
None

Definition at line 213 of file stm32f10x_cec.c.

void CEC_StartOfMessage ( void  )

Starts a new message.

Parameters
None
Return values
None

Definition at line 250 of file stm32f10x_cec.c.