Package com.dsi.ant.plugins.antplus.pcc
Enum Class AntPlusBikePowerPcc.CalibrationId
java.lang.Object
java.lang.Enum<AntPlusBikePowerPcc.CalibrationId>
com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.CalibrationId
- All Implemented Interfaces:
Serializable
,Comparable<AntPlusBikePowerPcc.CalibrationId>
,Constable
- Enclosing class:
- AntPlusBikePowerPcc
public static enum AntPlusBikePowerPcc.CalibrationId
extends Enum<AntPlusBikePowerPcc.CalibrationId>
The calibration response code.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe power meter sent its current calibration capabilities.The power meter returned a CTF specific calibration message.The CTF power meter returned a serial number command acknowledgment.The CTF power meter returned a slope command acknowledgment.The CTF power meter returned a zero offset value.The power meter returned a response to a custom calibration request.The power meter returned a response to a custom calibration parameter update request.The power meter failed to perform a calibration request.The power meter successfully performed a calibration successfully.Invalid field.The value sent by the plugin service was unrecognized probably indicating an upgrade of the PCC is required to handle the value. -
Method Summary
Modifier and TypeMethodDescriptionint
Convert enum to equivalent int valuegetValueFromInt
(int intValue) Convert int to equivalent enum valueReturns the enum constant of this class with the specified name.static AntPlusBikePowerPcc.CalibrationId[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERAL_CALIBRATION_SUCCESS
The power meter successfully performed a calibration successfully. -
GENERAL_CALIBRATION_FAIL
The power meter failed to perform a calibration request. -
CTF_MESSAGE
The power meter returned a CTF specific calibration message. -
CTF_ZERO_OFFSET
The CTF power meter returned a zero offset value. -
CTF_SLOPE_ACK
The CTF power meter returned a slope command acknowledgment. -
CTF_SERIAL_NUMBER_ACK
The CTF power meter returned a serial number command acknowledgment. -
CAPABILITIES
The power meter sent its current calibration capabilities. -
CUSTOM_CALIBRATION_RESPONSE
The power meter returned a response to a custom calibration request. -
CUSTOM_CALIBRATION_UPDATE_SUCCESS
The power meter returned a response to a custom calibration parameter update request. -
INVALID
Invalid field. -
UNRECOGNIZED
The value sent by the plugin service was unrecognized probably indicating an upgrade of the PCC is required to handle the value.
-
-
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
-
getIntValue
public int getIntValue()Convert enum to equivalent int value- Returns:
- integer value equivalent
-
getValueFromInt
Convert int to equivalent enum value- Parameters:
intValue
- integer to convert- Returns:
- enum value equivalent
-