public final class RequestMessage extends AntMessageFromHost
Modifier and Type | Field and Description |
---|---|
static int |
OFFSET_NVM_ADDRESS
The message content offset to the start read address of NVM
|
static int |
OFFSET_NVM_SIZE
The message content offset to the block size to be read from NVM
|
static int |
OFFSET_REQUESTED_MESSAGE_ID
The message content offset to the requested message ID
|
static int |
OFFSET_SUB_MESSAGE_ID
The message content offset to the sub message ID
|
static int |
SIZE_NVM_ADDRESS
The number of bytes to be used for the start read address of NVM
|
static int |
SIZE_NVM_SIZE
The number of bytes to be used for the block size to be read from NVM
|
static int |
SIZE_REQUESTED_MESSAGE_ID
The number of bytes to be used for the requested message ID
|
static int |
SIZE_SUB_MESSAGE_ID
The number of bytes to be used for the sub message ID
|
static int |
SUB_MESSAGE_REQUEST_ADVANCED_BURST_CAPABILITES
The sub message ID if requesting advanced burst capabilities message
|
static int |
SUB_MESSAGE_REQUEST_ADVANCED_BURST_CURRENT_CONFIGURATION
The sub message ID if requesting advanced burst configuration
|
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 |
---|
RequestMessage(MessageFromAntType requestedMessageType)
Constructs the message from the given message type.
|
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.
|
MessageFromAntType |
getRequestedMessageType()
Gets the message type being requested in this message.
|
java.lang.String |
toString() |
createAntMessage, getMessageContent, getMessageContent, getMessageId, getRawMessage
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
public static final int SIZE_SUB_MESSAGE_ID
public static final int SIZE_REQUESTED_MESSAGE_ID
public static final int SIZE_NVM_ADDRESS
public static final int SIZE_NVM_SIZE
public static final int OFFSET_SUB_MESSAGE_ID
public static final int OFFSET_REQUESTED_MESSAGE_ID
public static final int OFFSET_NVM_ADDRESS
public static final int OFFSET_NVM_SIZE
public static final int SUB_MESSAGE_REQUEST_ADVANCED_BURST_CAPABILITES
public static final int SUB_MESSAGE_REQUEST_ADVANCED_BURST_CURRENT_CONFIGURATION
public RequestMessage(MessageFromAntType requestedMessageType)
requestedMessageType
- The message being requested.public MessageFromAntType getRequestedMessageType()
public byte[] getMessageContent(int channelNumber, int networkNumber)
AntMessageFromHost
getMessageContent
in class AntMessageFromHost
channelNumber
- Written to the channel number byte if requirednetworkNumber
- Written to the network number byte if requiredpublic MessageFromHostType getMessageType()
AntMessageFromHost
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromHost
public java.lang.String toString()
toString
in class AntMessageFromHost
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.