public class ChannelEventMessage extends AntMessageFromAnt
MessageFromAntType.CHANNEL_EVENT type message.| Modifier and Type | Field and Description | 
|---|---|
| static int | OFFSET_EVENT_CODEThe message content offset to the channel event code ( EventCode). | 
| static int | SIZE_EVENT_CODEThe number of bytes used for the event code | 
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 | 
|---|
| ChannelEventMessage(AntMessageParcel messageParcel)Parse message specific information from the given ANT message parcel. | 
| Modifier and Type | Method and Description | 
|---|---|
| EventCode | getEventCode()Gets the event code associated with the channel event message | 
| MessageFromAntType | getMessageType()The type of this message based on its message id and contents. | 
| java.lang.String | toString() | 
createAntMessage, createAntMessage, getMessageContent, getMessageIdequals, getMessageContentString, getMessageIdString, hashCode, maskChannelNumberpublic static final int SIZE_EVENT_CODE
public static final int OFFSET_EVENT_CODE
EventCode).public ChannelEventMessage(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 EventCode getEventCode()
EventCode.public MessageFromAntType getMessageType()
AntMessageFromAntIt is recommended to use this rather than the raw message ID.
getMessageType in class AntMessageFromAntMessageFromAntType.public java.lang.String toString()
toString in class AntMessageFromAntCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.