Controller area network (bxCAN)
Return values
Notes
4.2.9
CAN Frames Transmission functions
4.2.9.1
CAN_Transmit
Function Name
Function Description
Parameters
Return values
Notes
4.2.9.2
CAN_TransmitStatus
Function Name
Function Description
Parameters
Return values
Notes
118/584
ENABLE or DISABLE. When enabled, Time stamp
(TIME[15:0]) value is sent in the last two data bytes of the 8-
byte message: TIME[7:0] in data byte 6 and TIME[15:8] in
data byte 7.
None.
DLC must be programmed as 8 in order Time Stamp (2 bytes)
to be sent over the CAN bus.
uint8_t CAN_Transmit (
TxMessage)
Initiates and transmits a CAN frame message.
CANx : where x can be 1 or 2 to to select the CAN
peripheral.
TxMessage : pointer to a structure which contains CAN Id,
CAN DLC and CAN data.
The number of the mailbox that is used for transmission
or CAN_TxStatus_NoMailBox if there is no empty
mailbox.
None.
uint8_t CAN_TransmitStatus (
TransmitMailbox)
Checks the transmission status of a CAN Frame.
CANx : where x can be 1 to select the CAN1 peripheral.
TransmitMailbox : the number of the mailbox that is used
for transmission.
CAN_TxStatus_Ok if the CAN driver transmits the
message, CAN_TxStatus_Failed in an other case.
None.
DocID023800 Rev 1
CAN_TypeDef *
CANx,
CAN_TypeDef *
UM1581
CanTxMsg *
CANx, uint8_t
Need help?
Do you have a question about the STM32F31xx and is the answer not in the manual?