EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Controller area network (bxCAN)
UM1581
118/584
DocID023800 Rev 1
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.
Return values
None.
Notes
DLC must be programmed as 8 in order Time Stamp (2 bytes)
to be sent over the CAN bus.
4.2.9 CAN Frames Transmission functions
4.2.9.1 CAN_Transmit
Function Name
uint8_t CAN_Transmit ( CAN_TypeDef * CANx, CanTxMsg *
TxMessage)
Function Description
Initiates and transmits a CAN frame message.
Parameters
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.
Return values
The number of the mailbox that is used for transmission
or CAN_TxStatus_NoMailBox if there is no empty
mailbox.
Notes
None.
4.2.9.2 CAN_TransmitStatus
Function Name
uint8_t CAN_TransmitStatus ( CAN_TypeDef * CANx, uint8_t
TransmitMailbox)
Function Description
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.
Notes
None.

Table of Contents

Related product manuals