STM32F0xx Standard Peripherals Firmware Library: CEC_MultiAddress

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Functions

void CEC_CAN_IRQHandler (void)
 This function handles CEC global interrupt request.
static void CEC_Config (void)
 Configures the CEC peripheral.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSVC exception.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.

Variables

uint8_t ByteNumber = 11
__IO uint8_t CECReceivedFrame
__IO uint8_t CECReceivedFrame = 0
uint16_t CECTransErrorCode = 0
uint8_t HeaderBlockValueToSend = 0
uint8_t MyFollowerAddress1 = 0x0
uint8_t MyFollowerAddress1
uint8_t MyFollowerAddress2 = 0x0
uint8_t MyFollowerAddress2
uint8_t MyLogicalAddress1 = 0x0
uint8_t MyLogicalAddress1
uint8_t MyLogicalAddress2 = 0x0
uint8_t MyLogicalAddress2
__IO uint8_t rcv_inc = 0
uint8_t ReceiveBuffer [10]
uint8_t ReceiverAddress
uint16_t ReceiverAddress = 0
uint16_t RecepErrorCode = 0
__IO uint8_t send_inc = 0
__IO uint8_t TransferStatus = 0
uint8_t TransmitBuffer [10]

Function Documentation

void CEC_CAN_IRQHandler ( void  )

This function handles CEC global interrupt request.

This function handles CAN request.

Parameters:
None
Return values:
None

Definition at line 295 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/stm32f0xx_it.c.

References ByteNumber, CANx, CECReceivedFrame, CECTransErrorCode, KeyNumber, LED_Display(), MESSAGE1, MESSAGE2, rcv_inc, ReceiveBuffer, ReceiverAddress, RecepErrorCode, RxMessage, RxMessage1, send_inc, and TransmitBuffer.

static void CEC_Config ( void  ) [static]

Configures the CEC peripheral.

Parameters:
None
Return values:
None

Definition at line 180 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

References GPIO_InitStructure, MyLogicalAddress1, MyLogicalAddress2, and NVIC_InitStructure.

Referenced by main().

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 79 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/stm32f0xx_it.c.

int main ( void  )

Main program.

Parameters:
None
Return values:
None

< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file

Definition at line 60 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

References CEC_Config(), CECReceivedFrame, DEVICE_ADDRESS_1, DEVICE_ADDRESS_2, DEVICE_ADDRESS_3, MyFollowerAddress1, MyFollowerAddress2, MyLogicalAddress1, MyLogicalAddress2, and ReceiverAddress.

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 70 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/stm32f0xx_it.c.

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 101 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/stm32f0xx_it.c.

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 92 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/stm32f0xx_it.c.

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 110 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/stm32f0xx_it.c.


Variable Documentation

uint8_t MyFollowerAddress1 = 0x0

Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

Referenced by main().

Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

Referenced by main().

uint8_t MyFollowerAddress2 = 0x0

Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

Referenced by main().

Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

Referenced by main().

Definition at line 43 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_DataExchange/main.c.

Referenced by CEC_Config(), and main().

uint8_t MyLogicalAddress2 = 0x0

Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

Referenced by CEC_Config(), and main().

Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/main.c.

Referenced by CEC_Config(), and main().

__IO uint8_t rcv_inc = 0
__IO uint8_t TransferStatus = 0
uint8_t TransmitBuffer[10]
Initial value:
 {0xDF, 0x12, 0xD3, 0x56, 0x97,
                              0xA1, 0xEC, 0x7B, 0x4F, 0x22}

Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_MultiAddress/stm32f0xx_it.c.

STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32