Package com.dsi.ant.message.fromhost
Enum Class MessageFromHostType
- All Implemented Interfaces:
Serializable
,Comparable<MessageFromHostType>
,Constable
The various message types which can be sent to ANT.
Descriptions of the specific message types can be found in the
ANT Message Protocol and Usage
document.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageFromHostType
create
(AntMessageParcel antParcel, ChannelType validForChannelType) Construct a message type from the basic message data.int
Gets the message ID of the message type.static MessageFromHostType
Returns the enum constant of this class with the specified name.static MessageFromHostType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNASSIGN_CHANNEL
-
ASSIGN_CHANNEL
-
CHANNEL_ID
-
CHANNEL_PERIOD
-
SEARCH_TIMEOUT
-
CHANNEL_RF_FREQUENCY
-
SET_NETWORK_KEY
-
TRANSMIT_POWER
-
ADD_CHANNEL_ID_TO_LIST
-
ADD_ENCRYPTION_ID_TO_LIST
-
CONFIG_ID_LIST
-
CONFIG_ENCRYPTION_ID_LIST
-
SET_CHANNEL_TRANSMIT_POWER
-
LOW_PRIORITY_SEARCH_TIMEOUT
-
SERIAL_NUMBER_SET_CHANNEL_ID
-
ENABLE_EXTENDED_RECEIVE_MESSAGES
-
ENABLE_LED
-
CRYSTAL_ENABLE
-
LIB_CONFIG
-
FREQUENCY_AGILITY
-
PROXIMITY_SEARCH
-
CONFIGURE_EVENT_BUFFER
-
CHANNEL_SEARCH_PRIORITY
-
SET_128BIT_NETWORK_KEY
-
HIGH_DUTY_SEARCH
-
CONFIGURE_ADVANCED_BURST
-
CONFIGURE_EVENT_FILTER
-
CONFIGURE_SELECTIVE_DATA_UPDATES
-
SET_SELECTIVE_DATA_UPDATE_MASK
-
CONFIGURE_USER_NVM
-
ENABLE_SINGLE_CHANNEL_ENCRYPTION
-
SET_ENCRYPTION_KEY
-
SET_ENCRYPTION_INFO
-
LOAD_ENCRYPTION_KEY
-
STORE_ENCRYPTION_KEY
-
SET_USB_DESCRIPTOR_STRING
-
RESET_SYSTEM
-
OPEN_CHANNEL
-
CLOSE_CHANNEL
-
OPEN_RX_SCAN_MODE
-
REQUEST_MESSAGE
-
SLEEP_MESSAGE
-
BROADCAST_DATA
-
ACKNOWLEDGED_DATA
-
BURST_TRANSFER_DATA
-
ADVANCED_BURST_DATA
-
CW_INIT
-
CW_TEST
-
EXTENDED_BROADCAST_DATA
-
EXTENDED_ACKNOWLEDGED_DATA
-
EXTENDED_BURST_DATA
-
OTHER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static MessageFromHostType create(AntMessageParcel antParcel, ChannelType validForChannelType) Construct a message type from the basic message data.- Parameters:
antParcel
- The raw ANT messagevalidForChannelType
- The type of channel the message is for- Since:
- 4.0
-
getMessageId
public int getMessageId()Gets the message ID of the message type.- Returns:
- The value corresponding to a value in
MessageId
. - Since:
- 4.0
-