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 Transmission functions
[CAN_Private_Functions]
  CAN Frames Transmission functions. More...
| Functions | |
| uint8_t | CAN_Transmit (CAN_TypeDef *CANx, CanTxMsg *TxMessage) | 
| Initiates and transmits a CAN frame message. | |
| uint8_t | CAN_TransmitStatus (CAN_TypeDef *CANx, uint8_t TransmitMailbox) | 
| Checks the transmission status of a CAN Frame. | |
| void | CAN_CancelTransmit (CAN_TypeDef *CANx, uint8_t Mailbox) | 
| Cancels a transmit request. | |
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.
   
Function Documentation
| void CAN_CancelTransmit | ( | CAN_TypeDef * | CANx, | 
| uint8_t | Mailbox | ||
| ) | 
Cancels a transmit request.
- Parameters:
- 
  CANx,: where x can be 1 to select the CAN1 peripheral. Mailbox,: Mailbox number. 
- Return values:
- 
  None 
Definition at line 677 of file stm32f30x_can.c.
| uint8_t CAN_Transmit | ( | CAN_TypeDef * | CANx, | 
| CanTxMsg * | TxMessage | ||
| ) | 
Initiates and transmits a CAN frame message.
- Parameters:
- 
  CANx,: where x can be 1 or 2 to select the CAN peripheral. TxMessage,: pointer to a structure which contains CAN Id, CAN DLC and CAN data. 
- Return values:
- 
  The number of the mailbox that is used for transmission or CAN_TxStatus_NoMailBox if there is no empty mailbox. 
Definition at line 551 of file stm32f30x_can.c.
| uint8_t CAN_TransmitStatus | ( | CAN_TypeDef * | CANx, | 
| uint8_t | TransmitMailbox | ||
| ) | 
Checks the transmission status of a CAN Frame.
- Parameters:
- 
  CANx,: where x can be 1 to select the CAN1 peripheral. TransmitMailbox,: the number of the mailbox that is used for transmission. 
- Return values:
- 
  CAN_TxStatus_Ok if the CAN driver transmits the message, CAN_TxStatus_Failed in an other case. 
Definition at line 623 of file stm32f30x_can.c.
Generated on Tue Jul 12 2022 17:34:45 by
 1.7.2
 1.7.2