Package com.dsi.ant.message.fromant
Enum Class MessageFromAntType
- All Implemented Interfaces:
Serializable
,Comparable<MessageFromAntType>
,Constable
The various message types which can be received from ANT.
Descriptions of the specific message types can be found in the
ANT Message Protocol and Usage
document.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageFromAntType
create
(int messageId, byte[] messageContent) Determines the type of this message based on its message id and contents.static MessageFromAntType
create
(AntMessageParcel antParcel) Determines the type of this message received from the ANT Radio Service.int
Gets the message ID of the message.static MessageFromAntType
Returns the enum constant of this class with the specified name.static MessageFromAntType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BROADCAST_DATA
-
ACKNOWLEDGED_DATA
-
BURST_TRANSFER_DATA
-
CHANNEL_EVENT
-
CHANNEL_RESPONSE
-
CHANNEL_STATUS
-
CHANNEL_ID
-
ANT_VERSION
-
CAPABILITIES
-
SERIAL_NUMBER
-
OTHER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
create
Determines the type of this message received from the ANT Radio Service.Use this method for convenience when decoding messages rather than manually decoding the raw message IDs and contents.
- Returns:
- The message type of this message
- Since:
- 4.0
-
create
Determines the type of this message based on its message id and contents.Use this method for convenience when decoding messages rather than manually decoding the raw message IDs and contents.
- Returns:
- The message type of this message
- Since:
- 4.0
-
getMessageId
public int getMessageId()Gets the message ID of the message.- Returns:
- The value of message ID corresponding to a value in
MessageId
. - Since:
- 4.0
-