HAL_CAN_AddTxMessage() function
Add a message to the first free Tx mailbox and activate the corresponding transmission request.
Arguments
hcan
pointer to a CAN_HandleTypeDef structure that contains the configuration information for the specified CAN.
pointer to a CAN_TxHeaderTypeDef structure.
aData
array containing the payload of the Tx frame.
pTxMailbox
pointer to a variable where the function will return the TxMailbox used to store the Tx message. This parameter can be a value of @arg CAN_Tx_Mailboxes.
Return value
HAL status
Examples
HAL_CAN_AddTxMessage() is referenced by
6 libraries and example projects.
Data read by HAL_CAN_AddTxMessage()
Data written by HAL_CAN_AddTxMessage()
HAL_CAN_AddTxMessage()
HAL_CAN_AddTxMessage()::transmitmailbox all items filtered out
Type of HAL_CAN_AddTxMessage()
HAL_CAN_AddTxMessage()
uint32_t all items filtered out