1.3.3.11 CANx_RxFifoFillLevelGet Function
C
uint8_t CANx_RxFifoFillLevelGet(CAN_RX_FIFO_NUM rxFifoNum) // x - Instance of the CAN peripheral
Summary
Returns Rx FIFO0/FIFO1 Fill Level.
Description
This routine returns Rx FIFO0/FIFO1 Fill Level.
Precondition
CANx_Initialize has been called.
Parameters
Param | Description |
---|---|
rxFifoNum | Rx FIFO Number |
Returns
Returns Rx FIFO0/FIFO1 Fill Level.
Example
uint8_t rxFiFo0[CAN0_RX_FIFO0_SIZE]; uint8_t numberOfMessage = 0; numberOfMessage = CAN0_RxFifoFillLevelGet(CAN_RX_FIFO_0); memset(rxFiFo0, 0x00, CAN0_RX_FIFO0_ELEMENT_SIZE); CAN0_MessageReceiveFifo(CAN_RX_FIFO_0, numberOfMessage, (CAN_RX_BUFFER *)rxFiFo0);
Remarks
None.