Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusBikePowerPcc.CalibrationMessage
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.CalibrationMessage
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- AntPlusBikePowerPcc
public static class AntPlusBikePowerPcc.CalibrationMessage
extends Object
implements android.os.Parcelable
The calibration data sent by the power sensor.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Integer
The calibration data sent by the power sensor.The calibration ID sent by the power sensor.static final android.os.Parcelable.Creator<AntPlusBikePowerPcc.CalibrationMessage>
CREATOR is used by Android parceling system.final Integer
The CTF Zero Offset sent by the CTF power sensor.static final String
Default IPC keyfinal byte[]
The 6 manufacturer specific bytes sent by the power sensor.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionCalibrationMessage
(android.os.Parcel in) Parcel constructorCalibrationMessage
(AntPlusBikePowerPcc.CalibrationId calibrationId, Integer calibrationData, Integer ctfOffset, byte[] manufacturerSpecificData) Constructor for calibration message. -
Method Summary
-
Field Details
-
KEY_DEFAULT_CALIBRATIONMESSAGEKEY
Default IPC key- See Also:
-
calibrationId
The calibration ID sent by the power sensor. -
calibrationData
The calibration data sent by the power sensor. This data is only returned withAntPlusBikePowerPcc.CalibrationId.GENERAL_CALIBRATION_SUCCESS
orAntPlusBikePowerPcc.CalibrationId.GENERAL_CALIBRATION_FAIL
. -
ctfOffset
The CTF Zero Offset sent by the CTF power sensor. This data is only returned withAntPlusBikePowerPcc.CalibrationId.CTF_ZERO_OFFSET
. -
manufacturerSpecificData
public final byte[] manufacturerSpecificDataThe 6 manufacturer specific bytes sent by the power sensor. This data is only returned withAntPlusBikePowerPcc.CalibrationId.CUSTOM_CALIBRATION_RESPONSE
orAntPlusBikePowerPcc.CalibrationId.CUSTOM_CALIBRATION_UPDATE_SUCCESS
. -
CREATOR
CREATOR is used by Android parceling system.
-
-
Constructor Details
-
CalibrationMessage
public CalibrationMessage(AntPlusBikePowerPcc.CalibrationId calibrationId, Integer calibrationData, Integer ctfOffset, byte[] manufacturerSpecificData) Constructor for calibration message.- Parameters:
calibrationId
- The calibration ID sent by the power sensorcalibrationData
- The calibration data sent by the power sensorctfOffset
- The CTF Zero Offset sent by the CTF power sensormanufacturerSpecificData
- The 6 manufacturer specific bytes sent by the power sensor
-
CalibrationMessage
public CalibrationMessage(android.os.Parcel in) Parcel constructor- Parameters:
in
- Parcel with object data
-
-
Method Details
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-