public enum TPCANStatus extends java.lang.Enum<TPCANStatus>
Enum Constant and Description |
---|
PCAN_ERROR_ANYBUSERR
PCAN_ERROR_ANYBUSERR
|
PCAN_ERROR_BUSHEAVY
Bus error: an error counter reached the 'heavy' limit
|
PCAN_ERROR_BUSLIGHT
Bus error: an error counter reached the 'light' limit
|
PCAN_ERROR_BUSOFF
Bus error: the CAN controller is in bus-off state
|
PCAN_ERROR_BUSPASSIVE
Bus error: the CAN controller is error passive
|
PCAN_ERROR_BUSWARNING
Bus error: an error counter reached the 'warning' limit
|
PCAN_ERROR_CAUTION
An operation was successfully carried out, however, irregularities were
registered
|
PCAN_ERROR_HWINUSE
Hardware already in use by a Net
|
PCAN_ERROR_ILLCLIENT
Client handle is invalid
|
PCAN_ERROR_ILLDATA
Invalid data, function, or action.
|
PCAN_ERROR_ILLHANDLE
Mask for all handle errors
|
PCAN_ERROR_ILLHW
Hardware handle is invalid
|
PCAN_ERROR_ILLMODE
Driver object state is wrong for the attempted operation
|
PCAN_ERROR_ILLNET
Net handle is invalid
|
PCAN_ERROR_ILLOPERATION
Invalid operation
|
PCAN_ERROR_ILLPARAMTYPE
Invalid parameter
|
PCAN_ERROR_ILLPARAMVAL
Invalid parameter value
|
PCAN_ERROR_INITIALIZE
Channel is not initialized
|
PCAN_ERROR_NETINUSE
A Client is already connected to the Net
|
PCAN_ERROR_NODRIVER
Driver not loaded
|
PCAN_ERROR_OK
No Error
|
PCAN_ERROR_OVERRUN
CAN controller was read too late
|
PCAN_ERROR_QOVERRUN
Receive queue was read too late
|
PCAN_ERROR_QRCVEMPTY
Receive queue is empty
|
PCAN_ERROR_QXMTFULL
Transmit queue is full
|
PCAN_ERROR_REGTEST
Test of the CAN controller hardware registers failed (no hardware found)
|
PCAN_ERROR_RESOURCE
Resource (FIFO, Client, timeout) cannot be created
|
PCAN_ERROR_UNKNOWN
Unknow error
|
PCAN_ERROR_XMTFULL
Transmit buffer in CAN controller is full
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
The value of the CAN status code
|
static TPCANStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TPCANStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TPCANStatus PCAN_ERROR_OK
public static final TPCANStatus PCAN_ERROR_XMTFULL
public static final TPCANStatus PCAN_ERROR_OVERRUN
public static final TPCANStatus PCAN_ERROR_BUSLIGHT
public static final TPCANStatus PCAN_ERROR_BUSHEAVY
public static final TPCANStatus PCAN_ERROR_BUSWARNING
public static final TPCANStatus PCAN_ERROR_BUSPASSIVE
public static final TPCANStatus PCAN_ERROR_BUSOFF
public static final TPCANStatus PCAN_ERROR_ANYBUSERR
public static final TPCANStatus PCAN_ERROR_QRCVEMPTY
public static final TPCANStatus PCAN_ERROR_QOVERRUN
public static final TPCANStatus PCAN_ERROR_QXMTFULL
public static final TPCANStatus PCAN_ERROR_REGTEST
public static final TPCANStatus PCAN_ERROR_NODRIVER
public static final TPCANStatus PCAN_ERROR_HWINUSE
public static final TPCANStatus PCAN_ERROR_NETINUSE
public static final TPCANStatus PCAN_ERROR_ILLHW
public static final TPCANStatus PCAN_ERROR_ILLNET
public static final TPCANStatus PCAN_ERROR_ILLCLIENT
public static final TPCANStatus PCAN_ERROR_ILLHANDLE
public static final TPCANStatus PCAN_ERROR_RESOURCE
public static final TPCANStatus PCAN_ERROR_ILLPARAMTYPE
public static final TPCANStatus PCAN_ERROR_ILLPARAMVAL
public static final TPCANStatus PCAN_ERROR_UNKNOWN
public static final TPCANStatus PCAN_ERROR_ILLDATA
public static final TPCANStatus PCAN_ERROR_ILLMODE
public static final TPCANStatus PCAN_ERROR_CAUTION
public static final TPCANStatus PCAN_ERROR_INITIALIZE
public static final TPCANStatus PCAN_ERROR_ILLOPERATION
public static TPCANStatus[] values()
for (TPCANStatus c : TPCANStatus.values()) System.out.println(c);
public static TPCANStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()