/* The function is used to configure several receive message objects.  */
int32_t CAN_SetMultiRxMsg(CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32MsgCount, uint32_t u32IDType, uint32_t u32ID)
/* The function is used to configure several receive message objects.  */
int32_t CAN_SetMultiRxMsg(CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32MsgCount, uint32_t u32IDType, uint32_t u32ID)
{
    int32_t  rev = (int32_t)TRUE;
    uint32_t i;
    uint32_t u32TimeOutCount;
    uint32_t u32EOB_Flag = 0ul;
    for (i = 1ul; i <= u32MsgCount; i++)
    {
        u32TimeOutCount = 0ul;
        u32MsgNum += (i - 1ul);
        if (i == u32MsgCount)
        {
            u32EOB_Flag = 1ul;
        }
        else
        {
        }
        while (CAN_SetRxMsgObj(tCAN, (uint8_t)u32MsgNum, (uint8_t)u32IDType, u32ID, (uint8_t)u32EOB_Flag) == (int32_t)FALSE)
        {
            if (++u32TimeOutCount >= RETRY_COUNTS)
            {
                rev = (int32_t)FALSE;
                break;
            }
            else
            {
            }
        }
    }
    return rev;
}