public final class TransmitPowerMessage extends AntMessageFromHost
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_TRANSMIT_POWER_LEVEL
The minimum transmit power value accepted by ANT
|
static int |
OFFSET_TX_POWER
The message content offset to the transmit power value
|
static int |
SIZE_TX_POWER
The number of bytes used for the transmit power 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 |
|---|
TransmitPowerMessage(int outputPowerLevelSetting,
Capabilities capabilities) |
| Modifier and Type | Method and Description |
|---|---|
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_TX_POWER
public static final int SIZE_TX_POWER
public static final int MIN_TRANSMIT_POWER_LEVEL
public TransmitPowerMessage(int outputPowerLevelSetting,
Capabilities capabilities)
outputPowerLevelSetting - Which settings index to use to get actual power levelcapabilities - Used to check the valid range of Transmit Power Level Settingspublic 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.