Class CwInitMessage


public final class CwInitMessage extends AntMessageFromHost
Initializes ANT into CW test mode and should be sent after a reset.
Since:
4.0
  • Constructor Details

    • CwInitMessage

      public CwInitMessage()
      Constructs the message.
      Since:
      4.0
    • CwInitMessage

      protected CwInitMessage(byte[] messageContent)
      Create from raw message content for this message.
      Parameters:
      messageContent - Not used, as this could only include a filler byte.
  • Method Details

    • getMessageContent

      public byte[] getMessageContent(int channelNumber, int networkNumber)
      Description copied from class: AntMessageFromHost
      The content of the message with specified channel number and network number set if required.
      Specified by:
      getMessageContent in class AntMessageFromHost
      Parameters:
      channelNumber - Written to the channel number byte if required
      networkNumber - Written to the network number byte if required
      Returns:
      Message content raw byte array.
      Since:
      4.0
    • getMessageType

      public MessageFromHostType getMessageType()
      Description copied from class: AntMessageFromHost
      The unique type of this message based on its message id, contents, and intended channel type.

      It is recommended to use this rather than the raw message ID.

      Specified by:
      getMessageType in class AntMessageFromHost
      Returns:
      The type of message returned by the host.
      Since:
      4.0
    • toString

      public String toString()
      Overrides:
      toString in class AntMessageFromHost