1.28.10.13 MCANx_RxFifoFillLevelGet Function

C

uint8_t MCANx_RxFifoFillLevelGet(MCAN_RX_FIFO_NUM rxFifoNum) // x - Instance of the MCAN peripheral

Summary

Returns Rx FIFO0/FIFO1 Fill Level.

Description

This routine returns Rx FIFO0/FIFO1 Fill Level.

Precondition

MCANx_Initialize has been called.

Parameters

Param Description
rxFifoNum Rx FIFO Number

Returns

Returns Rx FIFO0/FIFO1 Fill Level.

Example

uint8_t rxFiFo0[MCAN0_RX_FIFO0_SIZE];
uint8_t numberOfMessage = 0;

numberOfMessage = MCAN0_RxFifoFillLevelGet(MCAN_RX_FIFO_0);
memset(rxFiFo0, 0x00, MCAN0_RX_FIFO0_ELEMENT_SIZE);
MCAN0_MessageReceiveFifo(MCAN_RX_FIFO_0, numberOfMessage, (MCAN_RX_BUFFER *)rxFiFo0);

Remarks

None.