/* Checks if a bus off or bus heavy situation occurred.  */
static bool VectorXlIsBusError(void)
/* Checks if a bus off or bus heavy situation occurred.  */
static bool VectorXlIsBusError(void)
{
  bool result = false;
  (void)xlCanRequestChipState(vectorXlPortHandle, vectorXLChannelMask);
  UtilCriticalSectionEnter();
  if (vectorXlBusErrorDetected)
  {
    vectorXlBusErrorDetected = false;
    result = true;
  }
  UtilCriticalSectionExit();
  return result;
}