Package peak.can.basic
Enum TPCANStatus
- java.lang.Object
-
- java.lang.Enum<TPCANStatus>
-
- peak.can.basic.TPCANStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TPCANStatus>,java.lang.constant.Constable
public enum TPCANStatus extends java.lang.Enum<TPCANStatus>
Represent the PCAN error and status codes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PCAN_ERROR_ANYBUSERRPCAN_ERROR_ANYBUSERRPCAN_ERROR_BUSHEAVYBus error: an error counter reached the 'heavy' limitPCAN_ERROR_BUSLIGHTBus error: an error counter reached the 'light' limitPCAN_ERROR_BUSOFFBus error: the CAN controller is in bus-off statePCAN_ERROR_BUSPASSIVEBus error: the CAN controller is error passivePCAN_ERROR_BUSWARNINGBus error: an error counter reached the 'warning' limitPCAN_ERROR_CAUTIONAn operation was successfully carried out, however, irregularities were registered Note: Value was changed from 0x40000 to 0x4000000PCAN_ERROR_HWINUSEHardware already in use by a NetPCAN_ERROR_ILLCLIENTClient handle is invalidPCAN_ERROR_ILLDATAInvalid data, function, or action.PCAN_ERROR_ILLHANDLEMask for all handle errorsPCAN_ERROR_ILLHWHardware handle is invalidPCAN_ERROR_ILLMODEDriver object state is wrong for the attempted operationPCAN_ERROR_ILLNETNet handle is invalidPCAN_ERROR_ILLOPERATIONInvalid operation Note: Value was changed from 0x80000 to 0x8000000PCAN_ERROR_ILLPARAMTYPEInvalid parameterPCAN_ERROR_ILLPARAMVALInvalid parameter valuePCAN_ERROR_INITIALIZEChannel is not initializedPCAN_ERROR_NETINUSEA Client is already connected to the NetPCAN_ERROR_NODRIVERDriver not loadedPCAN_ERROR_OKNo ErrorPCAN_ERROR_OVERRUNCAN controller was read too latePCAN_ERROR_QOVERRUNReceive queue was read too latePCAN_ERROR_QRCVEMPTYReceive queue is emptyPCAN_ERROR_QXMTFULLTransmit queue is fullPCAN_ERROR_REGTESTTest of the CAN controller hardware registers failed (no hardware found)PCAN_ERROR_RESOURCEResource (FIFO, Client, timeout) cannot be createdPCAN_ERROR_UNKNOWNUnknow errorPCAN_ERROR_XMTFULLTransmit buffer in CAN controller is full
-
Method Summary
Modifier and Type Method Description intgetValue()The value of the CAN status codestatic TPCANStatusvalueOf(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.
-
-
-
Enum Constant Detail
-
PCAN_ERROR_OK
public static final TPCANStatus PCAN_ERROR_OK
No Error
-
PCAN_ERROR_XMTFULL
public static final TPCANStatus PCAN_ERROR_XMTFULL
Transmit buffer in CAN controller is full
-
PCAN_ERROR_OVERRUN
public static final TPCANStatus PCAN_ERROR_OVERRUN
CAN controller was read too late
-
PCAN_ERROR_BUSLIGHT
public static final TPCANStatus PCAN_ERROR_BUSLIGHT
Bus error: an error counter reached the 'light' limit
-
PCAN_ERROR_BUSHEAVY
public static final TPCANStatus PCAN_ERROR_BUSHEAVY
Bus error: an error counter reached the 'heavy' limit
-
PCAN_ERROR_BUSWARNING
public static final TPCANStatus PCAN_ERROR_BUSWARNING
Bus error: an error counter reached the 'warning' limit
-
PCAN_ERROR_BUSPASSIVE
public static final TPCANStatus PCAN_ERROR_BUSPASSIVE
Bus error: the CAN controller is error passive
-
PCAN_ERROR_BUSOFF
public static final TPCANStatus PCAN_ERROR_BUSOFF
Bus error: the CAN controller is in bus-off state
-
PCAN_ERROR_ANYBUSERR
public static final TPCANStatus PCAN_ERROR_ANYBUSERR
PCAN_ERROR_ANYBUSERR
-
PCAN_ERROR_QRCVEMPTY
public static final TPCANStatus PCAN_ERROR_QRCVEMPTY
Receive queue is empty
-
PCAN_ERROR_QOVERRUN
public static final TPCANStatus PCAN_ERROR_QOVERRUN
Receive queue was read too late
-
PCAN_ERROR_QXMTFULL
public static final TPCANStatus PCAN_ERROR_QXMTFULL
Transmit queue is full
-
PCAN_ERROR_REGTEST
public static final TPCANStatus PCAN_ERROR_REGTEST
Test of the CAN controller hardware registers failed (no hardware found)
-
PCAN_ERROR_NODRIVER
public static final TPCANStatus PCAN_ERROR_NODRIVER
Driver not loaded
-
PCAN_ERROR_HWINUSE
public static final TPCANStatus PCAN_ERROR_HWINUSE
Hardware already in use by a Net
-
PCAN_ERROR_NETINUSE
public static final TPCANStatus PCAN_ERROR_NETINUSE
A Client is already connected to the Net
-
PCAN_ERROR_ILLHW
public static final TPCANStatus PCAN_ERROR_ILLHW
Hardware handle is invalid
-
PCAN_ERROR_ILLNET
public static final TPCANStatus PCAN_ERROR_ILLNET
Net handle is invalid
-
PCAN_ERROR_ILLCLIENT
public static final TPCANStatus PCAN_ERROR_ILLCLIENT
Client handle is invalid
-
PCAN_ERROR_ILLHANDLE
public static final TPCANStatus PCAN_ERROR_ILLHANDLE
Mask for all handle errors
-
PCAN_ERROR_RESOURCE
public static final TPCANStatus PCAN_ERROR_RESOURCE
Resource (FIFO, Client, timeout) cannot be created
-
PCAN_ERROR_ILLPARAMTYPE
public static final TPCANStatus PCAN_ERROR_ILLPARAMTYPE
Invalid parameter
-
PCAN_ERROR_ILLPARAMVAL
public static final TPCANStatus PCAN_ERROR_ILLPARAMVAL
Invalid parameter value
-
PCAN_ERROR_UNKNOWN
public static final TPCANStatus PCAN_ERROR_UNKNOWN
Unknow error
-
PCAN_ERROR_ILLDATA
public static final TPCANStatus PCAN_ERROR_ILLDATA
Invalid data, function, or action.
-
PCAN_ERROR_ILLMODE
public static final TPCANStatus PCAN_ERROR_ILLMODE
Driver object state is wrong for the attempted operation
-
PCAN_ERROR_CAUTION
public static final TPCANStatus PCAN_ERROR_CAUTION
An operation was successfully carried out, however, irregularities were registered Note: Value was changed from 0x40000 to 0x4000000
-
PCAN_ERROR_INITIALIZE
public static final TPCANStatus PCAN_ERROR_INITIALIZE
Channel is not initialized
-
PCAN_ERROR_ILLOPERATION
public static final TPCANStatus PCAN_ERROR_ILLOPERATION
Invalid operation Note: Value was changed from 0x80000 to 0x8000000
-
-
Method Detail
-
values
public static TPCANStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TPCANStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
The value of the CAN status code- Returns:
- Value of the CAN status code
-
-