/* param base MCAN peripheral base address. param fifoBlock MCAN Fifo block, 0 or 1. param handle MCAN handle pointer.  */
void MCAN_TransferAbortReceiveFifo(CAN_Type *base, uint8_t fifoBlock, mcan_handle_t *handle)
/* param base MCAN peripheral base address. param fifoBlock MCAN Fifo block, 0 or 1. param handle MCAN handle pointer.  */
void MCAN_TransferAbortReceiveFifo(CAN_Type *base, uint8_t fifoBlock, mcan_handle_t *handle)
{
    assert(NULL != handle);
    assert((0U == fifoBlock) || (1U == fifoBlock));
    if (1U == fifoBlock)
    {
        MCAN_DisableInterrupts(base, CAN_IE_RF1NE_MASK);
    }
    else
    {
        MCAN_DisableInterrupts(base, CAN_IE_RF0NE_MASK);
    }
    handle->rxFifoFrameBuf = NULL;
    handle->rxFifoState = (uint8_t)kMCAN_StateIdle;
}