public enum EventCode extends java.lang.Enum<EventCode>
ChannelEventMessage
can contain.Enum Constant and Description |
---|
CHANNEL_CLOSED
The channel has been successfully closed.
|
CHANNEL_COLLISION
Two channels have drifted into each other and overlapped in time on the device causing
one channel to be blocked.
|
RX_FAIL
A receive channel missed a message which it was expecting.
|
RX_FAIL_GO_TO_SEARCH
The channel has dropped to search mode after missing too many messages.
|
RX_SEARCH_TIMEOUT
A receive channel has timed out on searching.
|
TRANSFER_RX_FAILED
A receive transfer has failed
|
TRANSFER_TX_COMPLETED
An Acknowledged Data message or a Burst Transfer sequence has been completed successfully.
|
TRANSFER_TX_FAILED
An Acknowledged Data message, or a Burst Transfer Message has been initiated and the
transmission failed to complete successfully
|
TRANSFER_TX_START
Sent after a burst transfer begins, effectively on the next channel period after the
burst transfer message has been sent to the device.
|
TX
A broadcast message has been transmitted successfully.
|
UNKNOWN
The value sent from the ANT Radio Service is not defined in this version of the API
|
Modifier and Type | Method and Description |
---|---|
static EventCode |
create(int rawValue)
Creates the EventCode from the raw value.
|
int |
getRawValue()
Returns the raw value of this EventCode.
|
static EventCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventCode RX_SEARCH_TIMEOUT
public static final EventCode RX_FAIL
public static final EventCode TX
public static final EventCode TRANSFER_RX_FAILED
public static final EventCode TRANSFER_TX_COMPLETED
public static final EventCode TRANSFER_TX_FAILED
public static final EventCode CHANNEL_CLOSED
public static final EventCode RX_FAIL_GO_TO_SEARCH
public static final EventCode CHANNEL_COLLISION
public static final EventCode TRANSFER_TX_START
public static final EventCode UNKNOWN
public static EventCode[] values()
for (EventCode c : EventCode.values()) System.out.println(c);
public static EventCode 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 int getRawValue()
public static EventCode create(int rawValue)
rawValue
- The raw value.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.