/* The function is used to configure a receive message object.  */
int32_t CAN_SetRxMsg(CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32IDType, uint32_t u32ID)
/* The function is used to configure a receive message object.  */
int32_t CAN_SetRxMsg(CAN_T *tCAN, uint32_t u32MsgNum, uint32_t u32IDType, uint32_t u32ID)
{
    int32_t rev = (int32_t)TRUE;
    uint32_t u32TimeOutCount = 0ul;
    while (CAN_SetRxMsgObj(tCAN, (uint8_t)u32MsgNum, (uint8_t)u32IDType, u32ID, (uint8_t)TRUE) == (int32_t)FALSE)
    {
        if (++u32TimeOutCount >= RETRY_COUNTS)
        {
            rev = (int32_t)(FALSE);
            break;
        }
        else
        {
        }
    }
    return rev;
}