public enum SerialCommResults extends Enum<SerialCommResults>
Enum Constant and Description |
---|
ALREADY_ENABLED
The communication channel is already enabled.
|
COMM_PORT_IN_USE
The serial communication port is already used by other instance.
|
DATA_SIZE_TOO_LARGE
The number of bytes to write can't exceed maximum limit(4096 Bytes).
|
DEVICE_NOT_CONNECTED
The remote device is not connected or attached to the mobile device.
|
DEVICE_NOT_READY
Serial port is not ready to use.
|
EMDK_NOT_OPENED
EMDK is not opened
|
FAILURE
Failure
|
FEATURE_NOT_SUPPORTED
The feature is not supported.
|
INVALID_OBJECT
The object is not valid.
|
INVALID_VALUE
Invalid value.
|
NOT_ENABLED
The communication channel is not enabled.
|
SUCCESS
Success
|
UNDEFINED
Error code not defined.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description for the error.
|
int |
getValue()
This method provides integer value assigned to the enum.
|
static SerialCommResults |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialCommResults[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialCommResults SUCCESS
public static final SerialCommResults FAILURE
public static final SerialCommResults INVALID_VALUE
public static final SerialCommResults DEVICE_NOT_CONNECTED
public static final SerialCommResults NOT_ENABLED
public static final SerialCommResults ALREADY_ENABLED
public static final SerialCommResults EMDK_NOT_OPENED
public static final SerialCommResults FEATURE_NOT_SUPPORTED
public static final SerialCommResults INVALID_OBJECT
public static final SerialCommResults DEVICE_NOT_READY
public static final SerialCommResults COMM_PORT_IN_USE
public static final SerialCommResults DATA_SIZE_TOO_LARGE
public static final SerialCommResults UNDEFINED
public static SerialCommResults[] values()
for (SerialCommResults c : SerialCommResults.values()) System.out.println(c);
public static SerialCommResults valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public String getDescription()