public static enum SerialComManager.ENDIAN extends Enum<SerialComManager.ENDIAN>
Pre-defined enum constants for defining endianness of data to be sent over serial port.
| Enum Constant and Description |
|---|
E_BIG
Big endian data format.
|
E_DEFAULT
Platform default.
|
E_LITTLE
Little endian data format.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static SerialComManager.ENDIAN |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialComManager.ENDIAN[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialComManager.ENDIAN E_LITTLE
Little endian data format. The least significant byte (LSB) value is at the lowest address.
public static final SerialComManager.ENDIAN E_BIG
Big endian data format. The most significant byte (MSB) value is at the lowest address.
public static final SerialComManager.ENDIAN E_DEFAULT
Platform default.
public static SerialComManager.ENDIAN[] values()
for (SerialComManager.ENDIAN c : SerialComManager.ENDIAN.values()) System.out.println(c);
public static SerialComManager.ENDIAN 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()
Copyright © 2016. All rights reserved.