Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
CAN Frames Reception functions
[CAN_Private_Functions]
CAN Frames Reception functions. More...
Functions | |
| void | CAN_Receive (CAN_TypeDef *CANx, uint8_t FIFONumber, CanRxMsg *RxMessage) |
| Receives a correct CAN frame. | |
| void | CAN_FIFORelease (CAN_TypeDef *CANx, uint8_t FIFONumber) |
| Releases the specified receive FIFO. | |
| uint8_t | CAN_MessagePending (CAN_TypeDef *CANx, uint8_t FIFONumber) |
| Returns the number of pending received messages. | |
Detailed Description
CAN Frames Reception functions.
===============================================================================
##### CAN Frames Reception functions #####
===============================================================================
[..] This section provides functions allowing to
(+) Receive a correct CAN frame.
(+) Release a specified receive FIFO (2 FIFOs are available).
(+) Return the number of the pending received CAN frames.
Function Documentation
| void CAN_FIFORelease | ( | CAN_TypeDef * | CANx, |
| uint8_t | FIFONumber | ||
| ) |
Releases the specified receive FIFO.
- Parameters:
-
CANx,: where x can be 1 to select the CAN1 peripheral. FIFONumber,: FIFO to release, CAN_FIFO0 or CAN_FIFO1.
- Return values:
-
None
Definition at line 773 of file stm32f30x_can.c.
| uint8_t CAN_MessagePending | ( | CAN_TypeDef * | CANx, |
| uint8_t | FIFONumber | ||
| ) |
Returns the number of pending received messages.
- Parameters:
-
CANx,: where x can be 1 to select the CAN1 peripheral. FIFONumber,: Receive FIFO number, CAN_FIFO0 or CAN_FIFO1.
- Return values:
-
NbMessage : which is the number of pending message.
Definition at line 796 of file stm32f30x_can.c.
| void CAN_Receive | ( | CAN_TypeDef * | CANx, |
| uint8_t | FIFONumber, | ||
| CanRxMsg * | RxMessage | ||
| ) |
Receives a correct CAN frame.
- Parameters:
-
CANx,: where x can be 1 to select the CAN1 peripheral. FIFONumber,: Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. RxMessage,: pointer to a structure receive frame which contains CAN Id, CAN DLC, CAN data and FMI number.
- Return values:
-
None
Definition at line 724 of file stm32f30x_can.c.
Generated on Tue Jul 12 2022 17:34:45 by
1.7.2