Package peak.can.basic
Enum TPCANStatus
- All Implemented Interfaces:
Serializable
,Comparable<TPCANStatus>
,java.lang.constant.Constable
Represent the PCAN error and status codes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPCAN_ERROR_ANYBUSERRBus error: an error counter reached the 'heavy' limitBus error: an error counter reached the 'light' limitBus error: the CAN controller is in bus-off stateBus error: the CAN controller is error passiveBus error: an error counter reached the 'warning' limitAn operation was successfully carried out, however, irregularities were registered Note: Value was changed from 0x40000 to 0x4000000Hardware already in use by a NetClient handle is invalidInvalid data, function, or action.Mask for all handle errorsHardware handle is invalidDriver object state is wrong for the attempted operationNet handle is invalidInvalid operation Note: Value was changed from 0x80000 to 0x8000000Invalid parameterInvalid parameter valueChannel is not initializedA Client is already connected to the NetDriver not loadedNo ErrorCAN controller was read too lateReceive queue was read too lateReceive queue is emptyTransmit queue is fullTest of the CAN controller hardware registers failed (no hardware found)Resource (FIFO, Client, timeout) cannot be createdUnknow errorTransmit buffer in CAN controller is full -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
The value of the CAN status codestatic TPCANStatus
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 Details
-
PCAN_ERROR_OK
No Error -
PCAN_ERROR_XMTFULL
Transmit buffer in CAN controller is full -
PCAN_ERROR_OVERRUN
CAN controller was read too late -
PCAN_ERROR_BUSLIGHT
Bus error: an error counter reached the 'light' limit -
PCAN_ERROR_BUSHEAVY
Bus error: an error counter reached the 'heavy' limit -
PCAN_ERROR_BUSWARNING
Bus error: an error counter reached the 'warning' limit -
PCAN_ERROR_BUSPASSIVE
Bus error: the CAN controller is error passive -
PCAN_ERROR_BUSOFF
Bus error: the CAN controller is in bus-off state -
PCAN_ERROR_ANYBUSERR
PCAN_ERROR_ANYBUSERR -
PCAN_ERROR_QRCVEMPTY
Receive queue is empty -
PCAN_ERROR_QOVERRUN
Receive queue was read too late -
PCAN_ERROR_QXMTFULL
Transmit queue is full -
PCAN_ERROR_REGTEST
Test of the CAN controller hardware registers failed (no hardware found) -
PCAN_ERROR_NODRIVER
Driver not loaded -
PCAN_ERROR_HWINUSE
Hardware already in use by a Net -
PCAN_ERROR_NETINUSE
A Client is already connected to the Net -
PCAN_ERROR_ILLHW
Hardware handle is invalid -
PCAN_ERROR_ILLNET
Net handle is invalid -
PCAN_ERROR_ILLCLIENT
Client handle is invalid -
PCAN_ERROR_ILLHANDLE
Mask for all handle errors -
PCAN_ERROR_RESOURCE
Resource (FIFO, Client, timeout) cannot be created -
PCAN_ERROR_ILLPARAMTYPE
Invalid parameter -
PCAN_ERROR_ILLPARAMVAL
Invalid parameter value -
PCAN_ERROR_UNKNOWN
Unknow error -
PCAN_ERROR_ILLDATA
Invalid data, function, or action. -
PCAN_ERROR_ILLMODE
Driver object state is wrong for the attempted operation -
PCAN_ERROR_CAUTION
An operation was successfully carried out, however, irregularities were registered Note: Value was changed from 0x40000 to 0x4000000 -
PCAN_ERROR_INITIALIZE
Channel is not initialized -
PCAN_ERROR_ILLOPERATION
Invalid operation Note: Value was changed from 0x80000 to 0x8000000
-
-
Method Details
-
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
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()The value of the CAN status code- Returns:
- Value of the CAN status code
-