public class BurstTransferDataMessage extends DataMessage
Modifier and Type | Field and Description |
---|---|
static int |
BITMASK_SEQUENCE_NUMBER
The mask used to retrieve the sequence number
|
static int |
OFFSET_SEQUENCE_NUMBER
The message content offset to the sequence number
|
static int |
SEQUENCE_FIRST_MESSAGE
The sequence number for the first message of the burst transfer
|
static int |
SEQUENCE_FLAG_IS_LAST_MESSAGE
The mask used to get the flag indicating if this message is the last
message in the burst transfer.
|
static int |
SEQUENCE_NUMBER_INC
The value the sequence number increments with each received message
|
static int |
SEQUENCE_NUMBER_ROLLOVER
The sequence number before a rollover of sequence numbers occurs
|
static int |
SHIFT_SEQUENCE_NUMBER
The shift applied to the retrieved sequence number after applying the mask
|
LENGTH_STANDARD_PAYLOAD, OFFSET_PAYLOAD_START
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 |
---|
BurstTransferDataMessage(AntMessageParcel messageParcel)
Parse message specific information from the given ANT message parcel.
|
Modifier and Type | Method and Description |
---|---|
MessageFromAntType |
getMessageType()
The type of this message based on its message id and contents.
|
int |
getSequenceNumber()
Gets the sequence number of this received message in the burst transfer
|
boolean |
isFirstMessage()
Checks if the message is the first message of the burst transfer.
|
boolean |
isLastMessage()
Checks if the message is the last message of the burst transfer.
|
java.lang.String |
toString() |
getExtendedData, getPayload, hasExtendedData
createAntMessage, createAntMessage, getMessageContent, getMessageId
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
public static final int OFFSET_SEQUENCE_NUMBER
public static final int BITMASK_SEQUENCE_NUMBER
public static final int SHIFT_SEQUENCE_NUMBER
public static final int SEQUENCE_FIRST_MESSAGE
public static final int SEQUENCE_NUMBER_INC
public static final int SEQUENCE_NUMBER_ROLLOVER
public static final int SEQUENCE_FLAG_IS_LAST_MESSAGE
public BurstTransferDataMessage(AntMessageParcel messageParcel)
messageParcel
- Raw ANT message received form the ANT Radio Service.java.lang.IllegalArgumentException
- If the parcel is for the wrong message type.public int getSequenceNumber()
public boolean isFirstMessage()
public boolean isLastMessage()
public MessageFromAntType getMessageType()
AntMessageFromAnt
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromAnt
MessageFromAntType
.public java.lang.String toString()
toString
in class DataMessage
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.