Functions

CAN Frames Reception functions. More...

Collaboration diagram for CAN Frames Reception functions:

Functions

void CAN_FIFORelease (CAN_TypeDef *CANx, uint8_t FIFONumber)
 Releases the specified receive FIFO. More...
 
uint8_t CAN_MessagePending (CAN_TypeDef *CANx, uint8_t FIFONumber)
 Returns the number of pending received messages. More...
 
void CAN_Receive (CAN_TypeDef *CANx, uint8_t FIFONumber, CanRxMsg *RxMessage)
 Receives a correct CAN frame. More...
 

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
 ===============================================================================
                  ##### 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
CANxwhere x can be 1 or 2 to select the CAN peripheral.
FIFONumberFIFO to release, CAN_FIFO0 or CAN_FIFO1.
Return values
None
Parameters
CANxwhere x can be 1 to select the CAN1 peripheral.
FIFONumberFIFO to release, CAN_FIFO0 or CAN_FIFO1.
Return values
None

Definition at line 799 of file stm32f4xx_can.c.

uint8_t CAN_MessagePending ( CAN_TypeDef CANx,
uint8_t  FIFONumber 
)

Returns the number of pending received messages.

Parameters
CANxwhere x can be 1 or 2 to select the CAN peripheral.
FIFONumberReceive FIFO number, CAN_FIFO0 or CAN_FIFO1.
Return values
NbMessage: which is the number of pending message.
Parameters
CANxwhere x can be 1 to select the CAN1 peripheral.
FIFONumberReceive FIFO number, CAN_FIFO0 or CAN_FIFO1.
Return values
NbMessage: which is the number of pending message.

Definition at line 822 of file stm32f4xx_can.c.

void CAN_Receive ( CAN_TypeDef CANx,
uint8_t  FIFONumber,
CanRxMsg RxMessage 
)

Receives a correct CAN frame.

Parameters
CANxwhere x can be 1 or 2 to select the CAN peripheral.
FIFONumberReceive FIFO number, CAN_FIFO0 or CAN_FIFO1.
RxMessagepointer to a structure receive frame which contains CAN Id, CAN DLC, CAN data and FMI number.
Return values
None
Parameters
CANxwhere x can be 1 to select the CAN1 peripheral.
FIFONumberReceive FIFO number, CAN_FIFO0 or CAN_FIFO1.
RxMessagepointer to a structure receive frame which contains CAN Id, CAN DLC, CAN data and FMI number.
Return values
None

Definition at line 750 of file stm32f4xx_can.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:22