public enum ChannelType extends java.lang.Enum<ChannelType>
Enum Constant and Description |
---|
BIDIRECTIONAL_MASTER
Primarily transmits data but can receive in reverse direction.
|
BIDIRECTIONAL_SLAVE
Primarily receives data but can transmit in reverse direction.
|
SHARED_BIDIRECTIONAL_MASTER
Transmits and receives data to/from multiple ANT channels with a shared
channel ID.
|
SHARED_BIDIRECTIONAL_SLAVE
Primarily receives and transmits data from/to a master transmitting to
multiple ANT channels with a shared channel ID.
|
SLAVE_RECEIVE_ONLY
Can only receive data, as such, this channel type can only use the
broadcast data type and should not be used if the application requires
any form of confirmation or acknowledgement of the successful receipt
of data.
|
UNKNOWN
The received value for channel type does not match the possible channel
types.
|
Modifier and Type | Field and Description |
---|---|
static int |
SIZE_CHANNEL_TYPE
The number of bytes used for the channel type.
|
Modifier and Type | Method and Description |
---|---|
static ChannelType |
create(int rawValue)
Creates the ChannelType from the raw value.
|
int |
getRawValue()
Returns the raw value of this ChannelType.
|
boolean |
isSlave()
Checks if this channel type is a slave (RX) device.
|
static ChannelType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChannelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelType BIDIRECTIONAL_SLAVE
public static final ChannelType BIDIRECTIONAL_MASTER
public static final ChannelType SHARED_BIDIRECTIONAL_SLAVE
public static final ChannelType SHARED_BIDIRECTIONAL_MASTER
public static final ChannelType SLAVE_RECEIVE_ONLY
public static final ChannelType UNKNOWN
public static final int SIZE_CHANNEL_TYPE
public static ChannelType[] values()
for (ChannelType c : ChannelType.values()) System.out.println(c);
public static ChannelType 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 ChannelType create(int rawValue)
public boolean isSlave()
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.