public class ChannelStatusMessage extends AntMessageFromAnt
Modifier and Type | Field and Description |
---|---|
static byte |
BITMASK_STATUS_CHANNEL_STATE
The mask used to retrieve the channel state
|
static byte |
BITMASK_STATUS_CHANNEL_TYPE
The mask used to retrieve the channel type
|
static int |
BITSHIFT_STATUS_CHANNEL_STATE
The shift applied to the retrieved channel state value
|
static int |
BITSHIFT_STATUS_CHANNEL_TYPE
The shift applied to the retrieved channel type value
|
static int |
OFFSET_CHANNEL_STATUS
The message content offset to the channel status 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 |
---|
ChannelStatusMessage(AntMessageParcel messageParcel)
Parse message specific information from the given ANT message parcel.
|
Modifier and Type | Method and Description |
---|---|
ChannelState |
getChannelState()
Gets the channel state of the channel
|
ChannelType |
getChannelType()
Gets the channel type of the channel.
|
MessageFromAntType |
getMessageType()
The type of this message based on its message id and contents.
|
java.lang.String |
toString() |
createAntMessage, createAntMessage, getMessageContent, getMessageId
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
public static final int OFFSET_CHANNEL_STATUS
public static final byte BITMASK_STATUS_CHANNEL_TYPE
public static final byte BITMASK_STATUS_CHANNEL_STATE
public static final int BITSHIFT_STATUS_CHANNEL_TYPE
public static final int BITSHIFT_STATUS_CHANNEL_STATE
public ChannelStatusMessage(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 MessageFromAntType getMessageType()
AntMessageFromAnt
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromAnt
MessageFromAntType
.public ChannelType getChannelType()
ChannelType
.public ChannelState getChannelState()
ChannelState
.public java.lang.String toString()
toString
in class AntMessageFromAnt
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.