/* Get available current informatoin in receive FIFO only in Peli workmode.  */
uint32_t CAN_Peli_GetRxFIFOInfo(CAN_TypeDef *CANx)
/* Get available current informatoin in receive FIFO only in Peli workmode.  */
uint32_t CAN_Peli_GetRxFIFOInfo(CAN_TypeDef *CANx)
{
        switch (*(uint32_t*)&CANx)
            {
                    case CAN1_BASE:
                            return CAN1_PELI->RMC;
                            break;
                    case CAN2_BASE:
                            return CAN2_PELI->RMC;
                            break;
                    default:
                            break;
            }
}