|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TPCANParameterValue>
peak.can.basic.TPCANParameterValue
public enum TPCANParameterValue
Parameter values definition
Enum Constant Summary | |
---|---|
LOG_FUNCTION_ALL
Logs all possible information within the PCAN-Basic API functions |
|
LOG_FUNCTION_DEFAULT
Logs system exceptions / errors |
|
LOG_FUNCTION_ENTRY
Logs the entries to the PCAN-Basic API functions |
|
LOG_FUNCTION_LEAVE
Logs the exits from the PCAN-Basic API functions |
|
LOG_FUNCTION_PARAMETERS
Logs the parameters passed to the PCAN-Basic API functions |
|
LOG_FUNCTION_READ
Logs the CAN messages received within the CAN_Read function |
|
LOG_FUNCTION_WRITE
Logs the CAN messages passed to the CAN_Write function |
|
PCAN_CHANNEL_AVAILABLE
The PCAN-Channel handle is valid to connect/initialize |
|
PCAN_CHANNEL_OCCUPIED
The PCAN-Channel handle is valid, but is already being used |
|
PCAN_CHANNEL_UNAVAILABLE
The PCAN-Channel handle is illegal |
|
PCAN_FILTER_CLOSE
The PCAN filter is closed. |
|
PCAN_FILTER_CUSTOM
The PCAN filter is custom configured. |
|
PCAN_FILTER_OPEN
The PCAN filter is fully opened. |
|
PCAN_PARAMETER_OFF
The PCAN parameter is not set (inactive) |
|
PCAN_PARAMETER_ON
The PCAN parameter is set (active) |
Method Summary | |
---|---|
int |
getValue()
|
static TPCANParameterValue |
parseCondition(int value)
Parses a int value into the TPCANParameterValue PCAN_CHANNEL_AVAILABLE, PCAN_CHANNEL_ILLEGAL, PCAN_CHANNEL_OCCUPIED or PCAN_CHANNEL_UNOCCUPIED |
static TPCANParameterValue |
parseFilterStatus(int value)
Parses a int value into the TPCANParameterValue PCAN_FILTER_CLOSE, PCAN_FILTER_OPEN or PCAN_FILTER_CUSTOM. |
static TPCANParameterValue |
parseOnOff(int value)
Parses a int value into the TPCANParameterValue PCAN_PARAMETER_ON or PCAN_PARAMETER_OFF |
static TPCANParameterValue |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TPCANParameterValue[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TPCANParameterValue PCAN_PARAMETER_OFF
public static final TPCANParameterValue PCAN_PARAMETER_ON
public static final TPCANParameterValue PCAN_FILTER_CLOSE
public static final TPCANParameterValue PCAN_FILTER_OPEN
public static final TPCANParameterValue PCAN_FILTER_CUSTOM
public static final TPCANParameterValue PCAN_CHANNEL_UNAVAILABLE
public static final TPCANParameterValue PCAN_CHANNEL_AVAILABLE
public static final TPCANParameterValue PCAN_CHANNEL_OCCUPIED
public static final TPCANParameterValue LOG_FUNCTION_DEFAULT
public static final TPCANParameterValue LOG_FUNCTION_ENTRY
public static final TPCANParameterValue LOG_FUNCTION_PARAMETERS
public static final TPCANParameterValue LOG_FUNCTION_LEAVE
public static final TPCANParameterValue LOG_FUNCTION_WRITE
public static final TPCANParameterValue LOG_FUNCTION_READ
public static final TPCANParameterValue LOG_FUNCTION_ALL
Method Detail |
---|
public static TPCANParameterValue[] values()
for (TPCANParameterValue c : TPCANParameterValue.values()) System.out.println(c);
public static TPCANParameterValue 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 name
java.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static TPCANParameterValue parseOnOff(int value)
value
- parsed value
public static TPCANParameterValue parseCondition(int value)
value
- parsed value
public static TPCANParameterValue parseFilterStatus(int value)
value
- parsed value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |