EasyManua.ls Logo

Sys Tec Electronic USB-CANmodul - Page 47

Sys Tec Electronic USB-CANmodul
74 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software
SYS TEC electronic GmbH 2001 L-487e_6
45
The specific error values returned from this function are described
below. Note that these values are bit-organized. The error codes are
defined in the header file USBCAN32.H.
CAN error states:
Name Value Description
USBCAN_CANERR_OK 0x0000 No error
USBCAN_CANERR_XMTFULL 0x0001 CAN controller Tx
buffer full
USBCAN_CANERR_OVERRUN 0x0002 CAN controller Rx
buffer full
USBCAN_CANERR_BUSLIGHT 0x0004 Bus error, Limit 1
exceeded
1
USBCAN_CANERR_BUSHEAVY 0x0008 Bus error, Limit 2
exceeded
2
USBCAN_CANERR_BUSOFF 0x0010 Bus error, CAN
controller is in bus-off
state
USBCAN_CANERR_QRCVEMPTY 0x0020 RcvQueue is empty
USBCAN_CANERR_QOVERRUN 0x0040 RcvQueue overflow
USBCAN_CANERR_QXMTFULL 0x0080 Transmit queue is full
USBCAN_CANERR_REGTEST 0x0100 CAN controller
register test failed
USBCAN_CANERR_MEMTEST 0x0200 Memory test failed
USB error states:
Name Value Description
USBCAN_USBERR_OK 0x0000 No error
There are no specific error messages on the USB interface. This is due
to the fact that all USB errors are handled by the Windows operating
system.
1
Error Warning Limit of the SJA1000 CAN controller, default value is 96. Refer to SJA1000 data
sheet.
2
Error Counter exceeds the protocol-defined level of 127. Refer to SJA1000 data sheet.

Table of Contents