Package com.dsi.ant.message.fromant
Class ChannelIdMessage
java.lang.Object
com.dsi.ant.message.AntMessage
com.dsi.ant.message.fromant.AntMessageFromAnt
com.dsi.ant.message.fromant.ChannelIdMessage
This message returns the specific channel ID for the channel.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe message content offset to the channel IDFields inherited from class com.dsi.ant.message.fromant.AntMessageFromAnt
mMessageContentFields inherited from class com.dsi.ant.message.AntMessage
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 Summary
ConstructorsModifierConstructorDescriptionprotectedChannelIdMessage(byte[] messageContent) ChannelIdMessage(AntMessageParcel messageParcel) Parse message specific information from the given ANT message parcel. -
Method Summary
Modifier and TypeMethodDescriptionGets the channel ID of return with this message.The type of this message based on its message id and contents.toString()Methods inherited from class com.dsi.ant.message.fromant.AntMessageFromAnt
createAntMessage, createAntMessage, createAntMessage, extractCorrectMessageContent, getMessageContent, getMessageId, toStringHeaderMethods inherited from class com.dsi.ant.message.AntMessage
equals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumber
-
Field Details
-
OFFSET_CHANNEL_ID
public static final int OFFSET_CHANNEL_IDThe message content offset to the channel ID- Since:
- 4.0
- See Also:
-
-
Constructor Details
-
ChannelIdMessage
Parse message specific information from the given ANT message parcel.- Parameters:
messageParcel- Raw ANT message received form the ANT Radio Service.- Throws:
IllegalArgumentException- If the parcel is for the wrong message type.- Since:
- 4.0
-
ChannelIdMessage
protected ChannelIdMessage(byte[] messageContent)
-
-
Method Details
-
getChannelId
Gets the channel ID of return with this message.- Returns:
- The
ChannelId. - Since:
- 4.0
-
getMessageType
Description copied from class:AntMessageFromAntThe type of this message based on its message id and contents.It is recommended to use this rather than the raw message ID.
- Specified by:
getMessageTypein classAntMessageFromAnt- Returns:
- A message type corresponding to this message as defined in
MessageFromAntType. - Since:
- 4.0
-
toString
- Overrides:
toStringin classAntMessageFromAnt- Since:
- 4.0
-