Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusGeocachePcc.GeocacheDeviceData
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusGeocachePcc.GeocacheDeviceData
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- AntPlusGeocachePcc
public static class AntPlusGeocachePcc.GeocacheDeviceData
extends Object
implements android.os.Parcelable
Represents the data contained on a Geocache device.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe current reportedBatteryStatus.Current battery voltage.static final android.os.Parcelable.Creator<AntPlusGeocachePcc.GeocacheDeviceData>Parcel CREATOR objectlongThe cumulative operating time since the battery was inserted.intThe resolution accuracy of the cumulativeOperatingTime.intThe device ID of this device.intManufacturer defined.static final StringDefault IPC keyintANT+ Alliance managed manufacturer identifier.intManufacturer defined.The data that is programmable on the device.longSerial number of the device.intManufacturer defined.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionConstructorGeocacheDeviceData(int ipcVersionNumber) Constructor for internal use.GeocacheDeviceData(android.os.Parcel in) Parcel constructor -
Method Summary
-
Field Details
-
KEY_DEFAULT_GEOCACHEDEVICEDATAKEY
Default IPC key- See Also:
-
deviceId
public int deviceIdThe device ID of this device. -
hardwareRevision
public int hardwareRevisionManufacturer defined. -
manufacturerID
public int manufacturerIDANT+ Alliance managed manufacturer identifier. -
modelNumber
public int modelNumberManufacturer defined. -
softwareRevision
public int softwareRevisionManufacturer defined. -
serialNumber
public long serialNumberSerial number of the device. -
cumulativeOperatingTime
public long cumulativeOperatingTimeThe cumulative operating time since the battery was inserted. Units: seconds (resolution indicated by cumulativeOperatingTimeResolution]). Rollover: Every 16777215s*resolution. ie:~1.1yrs at 2s resolution, ~8.5yrs at 16s resolution. -
batteryVoltage
Current battery voltage. Units: Volts (with 1/256V resolution). -
batteryStatus
The current reportedBatteryStatus. -
cumulativeOperatingTimeResolution
public int cumulativeOperatingTimeResolutionThe resolution accuracy of the cumulativeOperatingTime. Units: seconds. -
programmableData
The data that is programmable on the device. -
CREATOR
Parcel CREATOR object
-
-
Constructor Details
-
GeocacheDeviceData
public GeocacheDeviceData(android.os.Parcel in) Parcel constructor- Parameters:
in- Parcel with object data
-
GeocacheDeviceData
public GeocacheDeviceData()Constructor -
GeocacheDeviceData
public GeocacheDeviceData(int ipcVersionNumber) Constructor for internal use.- Parameters:
ipcVersionNumber- ipcVersionNumber
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-