public final class CapabilitiesMessage extends AntMessageFromAnt
See the ANT Message Protocol and Usage document for more details.
Modifier and Type | Class and Description |
---|---|
class |
CapabilitiesMessage.AdvancedOptions
Capabilities under advanced options
|
class |
CapabilitiesMessage.AdvancedOptions2
Capabilities under advanced options 2
|
class |
CapabilitiesMessage.AdvancedOptions3
Capabilities under advanced options 3
|
class |
CapabilitiesMessage.MessageOffsets
Offsets used to parse the capabilities message message content
|
static class |
CapabilitiesMessage.Option
Summary of the ANT device's capability options.
|
class |
CapabilitiesMessage.StandardOptions
Capabilities under standard options
|
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 |
---|
CapabilitiesMessage(AntMessageParcel messageParcel)
Parse message specific information from the given ANT message parcel.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getCapability(CapabilitiesMessage.Option option)
Accessor method for the various capabilities settings.
|
MessageFromAntType |
getMessageType()
The type of this message based on its message id and contents.
|
int |
getNumberOfChannels()
Returns the number of channels supported by the ANT hardware.
|
int |
getNumberOfNetworks()
Returns how many networks are supported by this channel.
|
int |
hashCode() |
java.lang.String |
toString() |
createAntMessage, createAntMessage, getMessageContent, getMessageId
getMessageContentString, getMessageIdString, maskChannelNumber
public CapabilitiesMessage(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 boolean getCapability(CapabilitiesMessage.Option option)
option
- An enum of the Capability typepublic int hashCode()
hashCode
in class AntMessage
public boolean equals(java.lang.Object obj)
equals
in class AntMessage
public java.lang.String toString()
toString
in class AntMessageFromAnt
public int getNumberOfChannels()
public int getNumberOfNetworks()
public MessageFromAntType getMessageType()
AntMessageFromAnt
It is recommended to use this rather than the raw message ID.
getMessageType
in class AntMessageFromAnt
MessageFromAntType
.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.