/* Checks if a bus off or bus heavy situation occurred.  */
static bool PCanUsbIsBusError(void)
/* Checks if a bus off or bus heavy situation occurred.  */
static bool PCanUsbIsBusError(void)
{
  bool result = false;
  TPCANStatus status;
  status = PCanUsbLibFuncGetStatus(pCanUsbChannelLookup[pCanUsbSettings.channel]);
  if ((status == PCAN_ERROR_BUSOFF) || (status == PCAN_ERROR_BUSHEAVY))
  {
    result = true;
  }
  return result;
}