STM32100E_EVAL_CEC_Private_Functions
[STM32100E_EVAL_CEC]

Functions

HDMI_CEC_Error HDMI_CEC_CheckConnectedDevices (void)
 Check the connected CEC devices.
void HDMI_CEC_CommandCallBack (void)
 Handle CEC command receive callback.
HDMI_CEC_Error HDMI_CEC_GetErrorStatus (void)
 Get the ESR register status.
HDMI_CEC_Error HDMI_CEC_Init (void)
 Initializes the HDMI CEC.
void HDMI_CEC_ProcessIRQSrc (void)
 Allows to process all the interrupts that are high.
HDMI_CEC_Error HDMI_CEC_ReportPhysicalAddress (void)
 Report physical address to all other devices thus allowing any device to create a map of the network.
HDMI_CEC_Error HDMI_CEC_TransmitMessage (HDMI_CEC_Message *HDMI_CEC_TX_MessageStructure)
 Transmit message by taking data from typedef struct CEC_Meassage.
static HDMI_CEC_Error LogicalAddressAllocation (void)
 Allocate the logical address.
static HDMI_CEC_Error PhysicalAddressDiscovery (void)
 Physical address discovery.

Function Documentation

HDMI_CEC_Error HDMI_CEC_CheckConnectedDevices ( void   ) 
void HDMI_CEC_CommandCallBack ( void   ) 

Handle CEC command receive callback.

When receiving the STANDBY Opcode commande, the system is entred in Stop mode and when wakeup, the PLL is configured as system clock and the HSI is selected as PLL source.

Parameters:
None 
Return values:
None 

Definition at line 509 of file stm32100e_eval_cec.c.

References AbortReason, DeviceCount, HDMI_CEC_Map::DeviceType, DISABLE, ENABLE, EXTI_ClearITPendingBit(), EXTI_Init(), EXTI_InitTypeDef::EXTI_Line, EXTI_Line8, EXTI_InitTypeDef::EXTI_LineCmd, EXTI_InitTypeDef::EXTI_Mode, EXTI_Mode_Interrupt, EXTI_InitTypeDef::EXTI_Trigger, EXTI_Trigger_Falling, FeatureOpcode, GPIO_EXTILineConfig(), GPIO_PinSource8, GPIO_PortSourceGPIOB, HDMI_CEC_Follower_String, HDMI_CEC_OK, HDMI_CEC_OPCODE_CEC_VERSION, HDMI_CEC_OPCODE_FEATURE_ABORT, HDMI_CEC_OPCODE_GET_CEC_VERSION, HDMI_CEC_OPCODE_GIVE_OSD_NAME, HDMI_CEC_OPCODE_GIVE_PHYSICAL_ADDRESS, HDMI_CEC_OPCODE_REPORT_PHYSICAL_ADDRESS, HDMI_CEC_OPCODE_ROUTING_CHANGE, HDMI_CEC_OPCODE_SET_OSD_NAME, HDMI_CEC_OPCODE_STANDBY, HDMI_CEC_REFUSED, HDMI_CEC_ReportPhysicalAddress(), HDMI_CEC_TransmitMessage(), HDMI_CEC_VERSION, HDMI_CEC_Message::Header, HDMI_CEC_Map::LogicalAddress, MyLogicalAddress, HDMI_CEC_Message::Opcode, HDMI_CEC_Message::Operande, HDMI_CEC_Map::PhysicalAddress_A, HDMI_CEC_Map::PhysicalAddress_B, HDMI_CEC_Map::PhysicalAddress_C, HDMI_CEC_Map::PhysicalAddress_D, PWR_EnterSTOPMode(), PWR_Regulator_ON, PWR_STOPEntry_WFI, RCC_FLAG_PLLRDY, RCC_GetFlagStatus(), RCC_GetSYSCLKSource(), RCC_PLLCmd(), RCC_PLLConfig(), RCC_PLLMul_6, RCC_PLLSource_HSI_Div2, RCC_SYSCLKConfig(), RCC_SYSCLKSource_PLLCLK, RESET, and HDMI_CEC_Message::TxMessageLength.

HDMI_CEC_Error HDMI_CEC_GetErrorStatus ( void   ) 
HDMI_CEC_Error HDMI_CEC_Init ( void   ) 
void HDMI_CEC_ProcessIRQSrc ( void   ) 
HDMI_CEC_Error HDMI_CEC_ReportPhysicalAddress ( void   ) 

Report physical address to all other devices thus allowing any device to create a map of the network.

Parameters:
None 
Return values:
HDMI_CEC_Error,: CEC Error code.

Definition at line 484 of file stm32100e_eval_cec.c.

References DeviceType, HDMI_CEC_OK, HDMI_CEC_OPCODE_REPORT_PHYSICAL_ADDRESS, HDMI_CEC_TransmitMessage(), HDMI_CEC_Message::Header, MyLogicalAddress, MyPhysicalAddress, HDMI_CEC_Message::Opcode, HDMI_CEC_Message::Operande, and HDMI_CEC_Message::TxMessageLength.

HDMI_CEC_Error HDMI_CEC_TransmitMessage ( HDMI_CEC_Message HDMI_CEC_TX_MessageStructure  ) 

Transmit message by taking data from typedef struct CEC_Meassage.

Parameters:
CEC_TX_MessageStructure,: pointer to an CEC_Message structure that contains the message to be sent.
Return values:
HDMI_CEC_Error,: CEC Error code

Definition at line 285 of file stm32100e_eval_cec.c.

References BufferCount, BufferPointer, CEC_ClearFlag(), CEC_FLAG_TBTRF, CEC_FLAG_TERR, CEC_SendDataByte(), CEC_StartOfMessage(), HDMI_CEC_OK, HDMI_CEC_TIMEOUT, HDMI_CEC_TIMEOUT_VALUE, HDMI_CEC_Message::Header, j, HDMI_CEC_Message::Opcode, HDMI_CEC_Message::Operande, SendFrame, SendStatus, TransErrorCode, TxCounter, and HDMI_CEC_Message::TxMessageLength.

static HDMI_CEC_Error LogicalAddressAllocation ( void   )  [static]
static HDMI_CEC_Error PhysicalAddressDiscovery ( void   )  [static]
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32