EasyManuals Logo

ST STM32F31xx User Manual

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
Page #118 background imageLoading...
Page #118 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals