CAN_LoopBack
[STM32F10x_StdPeriph_Examples]

Enumerations

enum  TestStatus {
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED
}

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
TestStatus CAN_Interrupt (void)
 Configures the CAN, transmit and receive using interrupt.
TestStatus CAN_Polling (void)
 Configures the CAN, transmit and receive by polling.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
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 NVIC_Configuration (void)
 Configures the NVIC and Vector Table base address.
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 Handler.

Variables

__IO uint32_t ret
__IO uint32_t ret = 0
volatile TestStatus TestRx

Enumeration Type Documentation

enum TestStatus
Enumerator:
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 

Definition at line 34 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/main.c.


Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 87 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

TestStatus CAN_Interrupt ( void   ) 
TestStatus CAN_Polling ( void   ) 
void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 122 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 61 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_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_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 54 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/main.c.

References CAN_Interrupt(), CAN_Polling(), ENABLE, FAILED, LED1, LED2, LED3, LED4, NVIC_Configuration(), RCC_APB1Periph_CAN1, RCC_APB1PeriphClockCmd(), STM_EVAL_LEDInit(), STM_EVAL_LEDOff(), STM_EVAL_LEDOn(), and TestRx.

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 74 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 52 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

void NVIC_Configuration ( void   ) 
void PendSV_Handler ( void   ) 

This function handles PendSVC exception.

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 131 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 113 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 140 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 100 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.

void USB_LP_CAN1_RX0_IRQHandler ( void   ) 

This function handles CAN1 Handler.

Parameters:
None 
Return values:
None 

Definition at line 154 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/stm32f10x_it.c.


Variable Documentation

__IO uint32_t ret
__IO uint32_t ret = 0
volatile TestStatus TestRx

Definition at line 40 of file STM32F10x_StdPeriph_Examples/CAN/LoopBack/main.c.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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