public final class ChannelSearchPriorityMessage extends AntMessageFromHost
| Modifier and Type | Field and Description |
|---|---|
static int |
LIB_DEFAULT_SEARCH_PRIORITY
default search priority of a channel
|
static int |
LIB_MAX_SEARCH_PRIORITY
Min and max of allowable channel search priority when set with API.
|
static int |
LIB_MIN_SEARCH_PRIORITY |
static int |
OFFSET_SEARCH_PRIORITY
The message content offset to the channel period
|
static int |
SIZE_SEARCH_PRIORITY
The number of bytes used for the channel period
|
BITMASK_CHANNEL_NUMBER, FILLER_BYTE, OFFSET_CHANNEL_NUMBER, RAW_OFFSET_MESSAGE_CONTENT_START, RAW_OFFSET_MESSAGE_ID, RAW_OFFSET_MESSAGE_SIZE, SIZE_CHANNEL_NUMBER, SIZE_FILLER_BYTE| Constructor and Description |
|---|
ChannelSearchPriorityMessage(int searchPriority)
Constructs the message from the given channel search priority [4 - 11].
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChannelSearchPriority()
Gets the channel search priority this message configures.
|
byte[] |
getMessageContent(int channelNumber,
int networkNumber)
The content of the message with specified channel number and network number set if required.
|
MessageFromHostType |
getMessageType()
The unique type of this message based on its message id, contents, and intended channel
type.
|
java.lang.String |
toString() |
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessageequals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumberpublic static final int OFFSET_SEARCH_PRIORITY
public static final int SIZE_SEARCH_PRIORITY
public static final int LIB_MAX_SEARCH_PRIORITY
public static final int LIB_MIN_SEARCH_PRIORITY
public static final int LIB_DEFAULT_SEARCH_PRIORITY
public ChannelSearchPriorityMessage(int searchPriority)
search - priority to be used for this channel.public int getChannelSearchPriority()
public byte[] getMessageContent(int channelNumber,
int networkNumber)
AntMessageFromHostgetMessageContent in class AntMessageFromHostchannelNumber - Written to the channel number byte if requirednetworkNumber - Written to the network number byte if requiredpublic MessageFromHostType getMessageType()
AntMessageFromHostIt is recommended to use this rather than the raw message ID.
getMessageType in class AntMessageFromHostpublic java.lang.String toString()
toString in class AntMessageFromHostCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.