public class ScaleData extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
raw |
protected String |
reading |
protected ScaleMode |
sc_mode |
protected ScaleUnits |
sc_unit |
Constructor and Description |
---|
ScaleData() |
Modifier and Type | Method and Description |
---|---|
ScaleMode |
getMode() |
byte[] |
getRaw() |
String |
getReading() |
ScaleUnits |
getUnit() |
static ScaleMode |
parseScaleMode(byte[] bt) |
static ScaleUnits |
parseScaleUnits(byte[] bt) |
static double[] |
parseValues(ScaleUnits unit,
byte[] bt) |
static String |
readingString(ScaleUnits unit,
double[] data) |
void |
setRaw(byte[] bt) |
protected byte[] raw
protected ScaleUnits sc_unit
protected ScaleMode sc_mode
protected String reading
public static ScaleUnits parseScaleUnits(byte[] bt)
public static ScaleMode parseScaleMode(byte[] bt)
public static double[] parseValues(ScaleUnits unit, byte[] bt)
public static String readingString(ScaleUnits unit, double[] data)
public void setRaw(byte[] bt)
public String getReading()
public ScaleMode getMode()
public ScaleUnits getUnit()
public byte[] getRaw()
Copyright © 2017 StarPhoenix Media. All rights reserved.