public final class FrequencyAgilityMessage extends AntMessageFromHost
| Modifier and Type | Field and Description |
|---|---|
static int |
OFFSET_FREQUENCY_ONE
The message content offset the first frequency value
|
static int |
OFFSET_FREQUENCY_THREE
The message content offset the third frequency value
|
static int |
OFFSET_FREQUENCY_TWO
The message content offset the second frequency value
|
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 |
|---|
FrequencyAgilityMessage(int frequencyOne,
int frequencyTwo,
int frequencyThree)
Constructs the message with the give values for the frequencies to be
used.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFrequencyOne()
Gets the first frequency value.
|
int |
getFrequencyThree()
Gets the third frequency value.
|
int |
getFrequencyTwo()
Gets the second frequency value.
|
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.
|
static int |
getRealRfFrequency(int rfFrequencyOffset)
Converts an ANT Channel RF Frequency value to the real world frequency.
|
java.lang.String |
toString() |
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessageequals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumberpublic static final int OFFSET_FREQUENCY_ONE
public static final int OFFSET_FREQUENCY_TWO
public static final int OFFSET_FREQUENCY_THREE
public FrequencyAgilityMessage(int frequencyOne,
int frequencyTwo,
int frequencyThree)
frequencyOne - The first frequency value as an offset of 2400 MHzfrequencyTwo - The first frequency value as an offset of 2400 MHzfrequencyThree - The first frequency value as an offset of 2400 MHzpublic static int getRealRfFrequency(int rfFrequencyOffset)
rfFrequencyOffset - The set ANT Channel RF Frequency as an offset.public int getFrequencyOne()
public int getFrequencyTwo()
public int getFrequencyThree()
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.