Functions

CAN Frames Transmission functions. More...

Collaboration diagram for CAN Frames Transmission functions:

Functions

void CAN_CancelTransmit (CAN_TypeDef *CANx, uint8_t Mailbox)
 Cancels a transmit request. More...
 
uint8_t CAN_Transmit (CAN_TypeDef *CANx, CanTxMsg *TxMessage)
 Initiates and transmits a CAN frame message. More...
 
uint8_t CAN_TransmitStatus (CAN_TypeDef *CANx, uint8_t TransmitMailbox)
 Checks the transmission status of a CAN Frame. More...
 

Detailed Description

CAN Frames Transmission functions.

 ===============================================================================
                ##### CAN Frames Transmission functions #####
 ===============================================================================
    [..] This section provides functions allowing to
      (+) Initiate and transmit a CAN frame message (if there is an empty mailbox).
      (+) Check the transmission status of a CAN Frame
      (+) Cancel a transmit request
 ===============================================================================
                ##### CAN Frames Transmission functions #####
 ===============================================================================  
    [..] This section provides functions allowing to 
         (+) Initiate and transmit a CAN frame message (if there is an empty mailbox).
         (+) Check the transmission status of a CAN Frame.
         (+) Cancel a transmit request.

Function Documentation

void CAN_CancelTransmit ( CAN_TypeDef CANx,
uint8_t  Mailbox 
)

Cancels a transmit request.

Parameters
CANxwhere x can be 1 or 2 to select the CAN peripheral.
MailboxMailbox number.
Return values
None
Parameters
CANxwhere x can be 1 to select the CAN1 peripheral.
MailboxMailbox number.
Return values
None

Definition at line 703 of file stm32f4xx_can.c.

uint8_t CAN_Transmit ( CAN_TypeDef CANx,
CanTxMsg TxMessage 
)

Initiates and transmits a CAN frame message.

Parameters
CANxwhere x can be 1 or 2 to to select the CAN peripheral.
TxMessagepointer to a structure which contains CAN Id, CAN DLC and CAN data.
Return values
Thenumber of the mailbox that is used for transmission or CAN_TxStatus_NoMailBox if there is no empty mailbox.

Definition at line 577 of file stm32f4xx_can.c.

uint8_t CAN_TransmitStatus ( CAN_TypeDef CANx,
uint8_t  TransmitMailbox 
)

Checks the transmission status of a CAN Frame.

Parameters
CANxwhere x can be 1 or 2 to select the CAN peripheral.
TransmitMailboxthe number of the mailbox that is used for transmission.
Return values
CAN_TxStatus_Okif the CAN driver transmits the message, CAN_TxStatus_Failed in an other case.
Parameters
CANxwhere x can be 1 to select the CAN1 peripheral.
TransmitMailboxthe number of the mailbox that is used for transmission.
Return values
CAN_TxStatus_Okif the CAN driver transmits the message, CAN_TxStatus_Failed in an other case.

Definition at line 649 of file stm32f4xx_can.c.



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