STM32F0xx Standard Peripherals Firmware Library: CAN_FIFOExtension

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Defines

#define MESSAGE1   " STM32072B-EVAL "
#define MESSAGE2   "Press TAMP to Send message "
#define MESSAGE3   " Send message to STM32 "
#define MESSAGE4   "Receive message From STM32 "
#define TAMPER_NOT_PRESSED   0x01
#define TAMPER_PRESSED   0x00

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 CAN1 RX1 request.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void Display_ReceivedMsg (void)
 Display received msg on the LCD.
static void Display_TransmittedMsg (uint8_t PushNumber)
 Display transmitted msg on the LCD.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
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.
void USB_LP_CAN1_RX0_IRQHandler (void)
 This function handles CAN1 RX0 request.

Variables

CAN_FilterInitTypeDef CAN_FilterInitStructure
CAN_FilterInitTypeDef CAN_FilterInitStructure
uint8_t KeyNumber = 0x0
__IO uint8_t MsgReceived = 0
__IO uint8_t MsgReceived
CanRxMsg RxMessage = {0}
CanTxMsg TxMessage = {0}

Define Documentation

#define MESSAGE1   " STM32072B-EVAL "

Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.

Referenced by main().

#define MESSAGE2   "Press TAMP to Send message "

Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.

Referenced by main().

#define MESSAGE3   " Send message to STM32 "
#define MESSAGE4   "Receive message From STM32 "
#define TAMPER_NOT_PRESSED   0x01

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

Referenced by main().

#define TAMPER_PRESSED   0x00

Definition at line 42 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/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 94 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

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

This function handles CAN1 RX1 request.

This function handles CAN request.

Parameters:
None
Return values:
None

Definition at line 168 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

References CAN_FilterInitStructure, CANx, and MsgReceived.

void DebugMon_Handler ( void  )

This function handles Debug Monitor exception.

Parameters:
None
Return values:
None

Definition at line 129 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

void Display_ReceivedMsg ( void  )

Display received msg on the LCD.

Parameters:
None.
Return values:
None

Definition at line 264 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.

References CANx, MESSAGE4, and RxMessage.

Referenced by main().

static void Display_TransmittedMsg ( uint8_t  PushNumber) [static]

Display transmitted msg on the LCD.

Parameters:
None.
Return values:
None

Definition at line 225 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.

References CANx, MESSAGE3, and TxMessage.

Referenced by main().

void HardFault_Handler ( void  )

This function handles Hard Fault exception.

Parameters:
None
Return values:
None

Definition at line 68 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/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 70 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/main.c.

References CAN_Config(), Delay(), Display_ReceivedMsg(), Display_TransmittedMsg(), KeyNumber, MESSAGE1, MESSAGE2, MsgReceived, TAMPER_NOT_PRESSED, and TAMPER_PRESSED.

void MemManage_Handler ( void  )

This function handles Memory Manage exception.

Parameters:
None
Return values:
None

Definition at line 81 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

void NMI_Handler ( void  )

This function handles NMI exception.

Parameters:
None
Return values:
None

Definition at line 59 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

void PendSV_Handler ( void  )

This function handles PendSVC exception.

Parameters:
None
Return values:
None

Definition at line 138 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

void SVC_Handler ( void  )

This function handles SVCall exception.

Parameters:
None
Return values:
None

Definition at line 120 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

void SysTick_Handler ( void  )

This function handles SysTick Handler.

Parameters:
None
Return values:
None

Definition at line 147 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

void UsageFault_Handler ( void  )

This function handles Usage Fault exception.

Parameters:
None
Return values:
None

Definition at line 107 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.

void USB_LP_CAN1_RX0_IRQHandler ( void  )

This function handles CAN1 RX0 request.

Parameters:
None
Return values:
None

Definition at line 159 of file STM32F0xx_StdPeriph_Examples/CAN/CAN_FIFOExtension/stm32f0xx_it.c.


Variable Documentation

uint8_t KeyNumber = 0x0
__IO uint8_t MsgReceived = 0
CanRxMsg RxMessage = {0}
CanTxMsg TxMessage = {0}
STM32L1xx Standard Peripherals Library: Footer

 

 

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