/* Checks if a bus off or bus heavy situation occurred.  */
static bool IxxatVciIsBusError(void)
/* Checks if a bus off or bus heavy situation occurred.  */
static bool IxxatVciIsBusError(void)
{
  bool result = false;
  CANCHANSTATUS sChanStatus;
  if (IxxatVciLibFuncCanChannelGetStatus(ixxatCanChannelHandle, &sChanStatus) == VCI_OK)
  {
    if ((sChanStatus.sLineStatus.dwStatus & (CAN_STATUS_BUSOFF | CAN_STATUS_ERRLIM)) != 0)
    {
      result = true;
    }
  }
  return result;
}