1.26.6.11 1.27.9.11 1.28.10.11 1.34.7.11 1.41.8.11 1.42.6.11 MCANx_RxBufferNumberGet Function

C

bool MCANx_RxBufferNumberGet(uint8_t* bufferNumber) // x - Instance of the MCAN peripheral

Summary

Get Rx Buffer Number.

Description

This routine gets Rx Buffer Number.

Precondition

MCANx_Initialize has been called.

Parameters

Param Description
bufferNumber Rx Buffer Number to be received

Returns

Request status. true - Request was successful.

false - Request has failed.

Example

uint8_t bufferNumber = 0;
uint8_t rxBuffer[MCAN0_RX_BUFFER_SIZE];

MCAN0_RxBufferNumberGet(&bufferNumber);
memset(rxBuffer, 0x00, MCAN0_RX_BUFFER_ELEMENT_SIZE);
MCAN0_MessageReceive(bufferNumber, (MCAN_RX_BUFFER *)rxBuffer);

Remarks

None.