Hardware manual
RX600 Series CAN Application Programming Interface
R01AN0339EU0203 Rev. 2.03 Page 15 of 29
Mar 23, 2013
R_CAN_TxStopMsg
Stop a mailbox that has been asked to transmit a frame
Format
uint32_t R_CAN_TxStopMsg( const uint32_t ch_nr,
const uint32_t mbox_nr );
Arguments
ch_nr 0,1,2,3 Which CAN bus to use. 1-4 channels may be available.
mbox_nr 0-32 Which CAN mailbox to use.
Return Values
R_CAN_OK Action completed successfully.
R_CAN_SW_BAD_MBX Bad mailbox number.
R_CAN_BAD_CH_NR The channel number does not exist.
R_CAN_SW_ABORT_ERR Waiting for an abort timed out.
Properties
Prototyped in r_can_api.h
Implemented in r_can_api.c
Comments
This function clears the mailbox control flags so that a transmission is stopped (TrmReq is set to 0.) A software counter
then waits for an abort a maximum period of time.
If the message was not stopped, R_CAN_SW_ABORT_ERR is returned. Note that the cause of this could be that the
message was already sent.
Example
R_CAN_TxStopMsg(0, MY_TX_SLOT);