-
- All Implemented Interfaces:
-
android.os.Parcelable
public class PressureConfigData implements Parcelable
Container class for holding Pressure Sensor configuration data.
Defines the pressure sensors.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intSIDE_UNKNOWNpublic final static intSIDE_BASEpublic final static intSIDE_FOLLOWERpublic final static intPRESSURE_SENSOR_LENGTHpublic final static Parcelable.Creator<PressureConfigData>CREATORpublic intidpublic intcylinderIdpublic intsidepublic inttypepublic floatrange
-
Constructor Summary
Constructors Constructor Description PressureConfigData()Default constructor. PressureConfigData(int id, int cylinderId, int side, int type, float range)PressureConfigData(ByteBuffer bb)Constructor that creates object based on the provided byte buffer.
-
Method Summary
Modifier and Type Method Description intdescribeContents()voidwriteToParcel(Parcel dest, int flags)Array<byte>toByteArray(ByteOrder byteOrder)Creates a byte array based on this object. StringtoString()-
-
Constructor Detail
-
PressureConfigData
PressureConfigData()
Default constructor.
-
PressureConfigData
PressureConfigData(int id, int cylinderId, int side, int type, float range)
-
PressureConfigData
PressureConfigData(ByteBuffer bb)
Constructor that creates object based on the provided byte buffer.
-
-
Method Detail
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
toByteArray
Array<byte> toByteArray(ByteOrder byteOrder)
Creates a byte array based on this object.
Takes in to account how the data is stored in the dataset regarding padding.
- Parameters:
byteOrder- the wanted byte order of the byte array
-
-
-
-