1.18.2.6 CANx_MessageAbort Function

C

The prototype of CANx_MessageAbort() varies based on device family. Refer to the generated header file for the actual prototype to be used.

void CANx_MessageAbort(uint8_t fifoNum) // x - Instance of the CAN peripheral

void CANx_MessageAbort(uint8_t fifoQueueNum) // x - Instance of the CAN peripheral

void CANx_MessageAbort(CAN_MAILBOX_MASK mailboxMask) // x - Instance of the CAN peripheral

Summary

Abort request for a FIFO (or Mailbox).

Description

This routine aborts the transmitted message to FIFO (or Mailbox).

Precondition

CANx_Initialize must have been called for the associated CAN instance.

Parameters

Param Description
fifoNum FIFO number
fifoQueueNum If fifoQueueNum is 0 then Transmit Queue otherwise FIFO
mailboxMask Mailbox mask

Returns

None

Example

CAN1_MessageAbort(0);
CAN0_MessageAbort(CAN_MAILBOX_0_MASK);

Remarks

None.