/* Checks whether the CAN interrupt has occurred or not.  */
static INTStatus CheckINTStatus(uint32_t CAN_Reg, uint32_t Int_Bit)
/* Checks whether the CAN interrupt has occurred or not.  */
static INTStatus CheckINTStatus(uint32_t CAN_Reg, uint32_t Int_Bit)
{
    INTStatus pendingbitstatus = RESET;
    if ((CAN_Reg & Int_Bit) != (uint32_t)RESET)
    {
        pendingbitstatus = SET;
    }
    else
    {
        pendingbitstatus = RESET;
    }
    return pendingbitstatus;
}