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 | EXTI4_15_IRQHandler (void) |
This function handles EXTI Lines 4 to 15 interrupts requests. | |
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 = 0 |
uint8_t | HeaderBlockValueToSend = 0 |
uint8_t | HeaderBlockValueToSend |
uint8_t | MyFollowerAddress = 0x0 |
uint8_t | MyLogicalAddress1 = 0x0 |
uint8_t | rcv_inc |
uint8_t | rcv_inc = 0 |
uint8_t | ReceiveBuffer [10] |
uint8_t | ReceiveBuffer [10] |
__IO uint8_t | ReceivedFrame1 |
__IO uint8_t | ReceivedFrame1 = 0 |
uint16_t | RecepErrorCode = 0 |
uint8_t | send_inc = 0 |
uint16_t | TransErrorCode1 = 0 |
__IO uint8_t | TransferStatus = 0 |
uint8_t | TransmitBuffer [10] = {0} |
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 318 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
References ByteNumber, rcv_inc, ReceiveBuffer, ReceivedFrame1, RecepErrorCode, send_inc, TransErrorCode1, and TransmitBuffer.
static void CEC_Config | ( | void | ) | [static] |
Configures the CEC peripheral.
- Parameters:
-
None
- Return values:
-
None
Definition at line 193 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/main.c.
References GPIO_InitStructure, MyLogicalAddress1, and NVIC_InitStructure.
Referenced by main().
void EXTI4_15_IRQHandler | ( | void | ) |
This function handles EXTI Lines 4 to 15 interrupts requests.
This function handles EXTI 6 request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 172 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
References ByteNumber, HeaderBlockValueToSend, send_inc, and TransmitBuffer.
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 76 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/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 61 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/main.c.
References CEC_Config(), DEVICE_ADDRESS_1, DEVICE_ADDRESS_2, DEVICE_ADDRESS_3, HeaderBlockValueToSend, MyFollowerAddress, MyLogicalAddress1, rcv_inc, ReceiveBuffer, and ReceivedFrame1.
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 67 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 98 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 89 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 107 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
Variable Documentation
uint8_t ByteNumber = 0 |
Definition at line 54 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
uint8_t HeaderBlockValueToSend = 0 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/main.c.
uint8_t HeaderBlockValueToSend |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_DataExchange/main.c.
Referenced by EXTI4_15_IRQHandler(), and main().
uint8_t MyFollowerAddress = 0x0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/main.c.
uint8_t MyLogicalAddress1 = 0x0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/main.c.
uint8_t rcv_inc |
Definition at line 50 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_DataExchange/stm32f0xx_it.c.
uint8_t rcv_inc = 0 |
Definition at line 50 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
uint8_t ReceiveBuffer[10] |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
uint8_t ReceiveBuffer[10] |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_DataExchange/stm32f0xx_it.c.
__IO uint8_t ReceivedFrame1 |
Definition at line 49 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_DataExchange/stm32f0xx_it.c.
__IO uint8_t ReceivedFrame1 = 0 |
Definition at line 49 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
Referenced by CEC_CAN_IRQHandler(), and main().
uint16_t RecepErrorCode = 0 |
Definition at line 53 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
uint8_t send_inc = 0 |
Definition at line 50 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
uint16_t TransErrorCode1 = 0 |
Definition at line 52 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.
__IO uint8_t TransferStatus = 0 |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/main.c.
uint8_t TransmitBuffer[10] = {0} |
Definition at line 48 of file STM32F0xx_StdPeriph_Examples/CEC/CEC_ListenMode/stm32f0xx_it.c.