USB-CANmodul
44
SYS TEC electronic GmbH 2001 L-487e_6
Receive buffer in CAN controller is overrun
USBCAN_CANERR_BUSLIGHT = 0x0004
Error limit 1 in CAN controller exceeded
USBCAN_CANERR_BUSHEAVY = 0x0008
Error limit 2 in CAN controller exceeded
USBCAN_CANERR_BUSOFF = 0x0010
CAN controller is in BUSOFF state
USBCAN_CANERR_QOVERRUN = 0x0040
Receive buffer in module is overrun
USBCAN_CANERR_QXMTFULL = 0x0080
Transmit buffer in module is overrun
USBCAN_CANERR_REGTEST = 0x0100
CAN controller not found (hardware error)
This WORD is bit oriented; it can register multiple errors
simultaneously.
WORD m wUsbStatus is becoming obsolete and is retained only for
compatability purposes. It retains the value 0.
Description:
Returns the error status from the USB-CANmodul. If an error
occurred on the USB-CANmodul, the red status LED starts blinking
and a status information is returned to the PC. If a callback function
has been handed over to the function UcanInitHardware (), this
callback function is called, as well as the event
USBCAN_EVENT_STATUS. After calling the function
UcanGetStatus (), the error state on the USB-CANmodul is erased
and the red status LED stops blinking.