STM32F0xx Standard Peripherals Firmware Library: CAN_DualFIFO

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Defines

#define MESSAGE1   " STM32072B-EVAL "
#define MESSAGE1   "FIFO0 : Msg received"
#define MESSAGE2   "TAMPER:Send Frame to FIFO 0"
#define MESSAGE2   "FIFO1 : Msg received"
#define MESSAGE3   "SEL: Send Frame to FIFO 1"

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
static void CAN_Config (void)
 Configures the CAN.
void CEC_CAN_IRQHandler (void)
 This function handles CAN request.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void EXTI0_1_IRQHandler (void)
 This function handles EXTI 10 to 15 request.
void EXTI4_15_IRQHandler (void)
 This function handles EXTI 6 request.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
void LED_Display (uint8_t Ledstatus)
 Turn ON/OFF the dedicated led.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
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.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

uint8_t KeyNumber = 0x0
uint8_t KeyNumber
CanRxMsg RxMessage
CanRxMsg RxMessage1
CanTxMsg TxMessage = {0}
CanTxMsg TxMessage
CanTxMsg TxMessage1 = {0}
CanTxMsg TxMessage1

Define Documentation

#define MESSAGE1   " STM32072B-EVAL "

Definition at line 42 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.

Referenced by main().

#define MESSAGE1   "FIFO0 : Msg received"
#define MESSAGE2   "TAMPER:Send Frame to FIFO 0"

Definition at line 43 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.

Referenced by main().

#define MESSAGE2   "FIFO1 : Msg received"
#define MESSAGE3   "SEL: Send Frame to FIFO 1"

Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.

Referenced by main().


Function Documentation

void BusFault_Handler ( void  )

This function handles Bus Fault exception.

Parameters:
None
Return values:
None

Definition at line 99 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

static void CAN_Config ( void  ) [static]
void CEC_CAN_IRQHandler ( void  )

This function handles CAN request.

Parameters:
None
Return values:
None

Definition at line 164 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void DebugMon_Handler ( void  )

This function handles Debug Monitor exception.

Parameters:
None
Return values:
None

Definition at line 134 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void EXTI0_1_IRQHandler ( void  )

This function handles EXTI 10 to 15 request.

Parameters:
None
Return values:
None

Definition at line 231 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void EXTI4_15_IRQHandler ( void  )

This function handles EXTI 6 request.

This function handles External line 4 to 15 interrupt request.

Parameters:
None
Return values:
None

Definition at line 202 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 73 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void LED_Display ( uint8_t  Ledstatus)

Turn ON/OFF the dedicated led.

Parameters:
Ledstatus,:Led number from 1 to 4.
Return values:
None

Definition at line 236 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.

Referenced by CEC_CAN_IRQHandler(), EXTI0_1_IRQHandler(), EXTI4_15_IRQHandler(), and main().

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 61 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/main.c.

References CAN_Config(), MESSAGE1, MESSAGE2, and MESSAGE3.

void MemManage_Handler ( void  )

This function handles Memory Manage exception.

Parameters:
None
Return values:
None

Definition at line 86 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 64 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 143 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 125 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 152 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.

void UsageFault_Handler ( void  )

This function handles Usage Fault exception.

Parameters:
None
Return values:
None

Definition at line 112 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_DualFIFO/stm32f0xx_it.c.


Variable Documentation

CanTxMsg TxMessage1 = {0}
STM32L1xx Standard Peripherals Library: Footer

 

 

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