public enum MessageType extends java.lang.Enum<MessageType>
Enum Constant and Description |
---|
MSG_TYPE_CHANGE_ADDR
Change Atmel address.
|
MSG_TYPE_E_STOP
Emergency stop.
|
MSG_TYPE_SENSOR_TYPE
Sensor type.
|
MSG_TYPE_TIMEOUT_SETTINGS
Timeout settings.
|
MSG_TYPE_VALUES
Values.
|
Modifier and Type | Method and Description |
---|---|
byte |
toByte()
Converts the MessageType to its byte value
|
static MessageType |
valueOf(byte type)
Get the the MessageType corresponding to its byte value
|
static MessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType MSG_TYPE_CHANGE_ADDR
public static final MessageType MSG_TYPE_SENSOR_TYPE
public static final MessageType MSG_TYPE_VALUES
public static final MessageType MSG_TYPE_E_STOP
public static final MessageType MSG_TYPE_TIMEOUT_SETTINGS
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType 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 namejava.lang.NullPointerException
- if the argument is nullpublic byte toByte()
public static MessageType valueOf(byte type)
type
- the byte type value