Enum Class AntPlusHeartRatePcc.RrFlag

java.lang.Object
java.lang.Enum<AntPlusHeartRatePcc.RrFlag>
com.dsi.ant.plugins.antplus.pcc.AntPlusHeartRatePcc.RrFlag
All Implemented Interfaces:
Serializable, Comparable<AntPlusHeartRatePcc.RrFlag>, Constable
Enclosing class:
AntPlusHeartRatePcc

public static enum AntPlusHeartRatePcc.RrFlag extends Enum<AntPlusHeartRatePcc.RrFlag>
Describes how the RR Interval was calculated, and which source the data was derived from.
Since:
2.1.7; requires Plugin Service 2.2.8+
  • Enum Constant Details

    • DATA_SOURCE_PAGE_4

      public static final AntPlusHeartRatePcc.RrFlag DATA_SOURCE_PAGE_4
      RR interval data is derived from the previous heart beat event timestamp data pulled of page 4 received from the heart rate sensor.
    • DATA_SOURCE_CACHED

      public static final AntPlusHeartRatePcc.RrFlag DATA_SOURCE_CACHED
      RR interval data is derived from cached current timestamp data pulled of previous page 0s received from the heart rate sensor.
    • DATA_SOURCE_AVERAGED

      public static final AntPlusHeartRatePcc.RrFlag DATA_SOURCE_AVERAGED
      RR interval data has been calculated using an average of previously received and currently received data. This is likely because a heart beat event was missed and so no data, cached or through page 4, is available for the skipped beat.
    • HEART_RATE_ZERO_DETECTED

      public static final AntPlusHeartRatePcc.RrFlag HEART_RATE_ZERO_DETECTED
      Heart rate of 0bpm has been detected. No R-R interval can be provided.
    • UNRECOGNIZED

      public static final AntPlusHeartRatePcc.RrFlag UNRECOGNIZED
      The value sent by the Plugin Service was unrecognized, indicating an upgrade of the PCC may be required to handle the value.
  • Method Details

    • values

      public static AntPlusHeartRatePcc.RrFlag[] 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

      public static AntPlusHeartRatePcc.RrFlag valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getIntValue

      public int getIntValue()
      Convert enum to equivalent int value
      Returns:
      integer value equivalent
    • getValueFromInt

      public static AntPlusHeartRatePcc.RrFlag getValueFromInt(int intValue)
      Convert int to equivalent enum value
      Parameters:
      intValue - integer to convert
      Returns:
      enum value equivalent