Class MarauderReadSectorInfo
-
- All Implemented Interfaces:
-
java.io.Serializable
public class MarauderReadSectorInfo implements Serializable
This class should mirror the struct ble_marauder_sector_info_t of Gollum BLE Example value: (0x) 04-00-00-00-7C-96-CD-5D-6D-01-00-00-00-00-1B-00-17-00-DD-19-98-3A-00-00-F0-49-02-00-00-00-00-00-09-03-30-00
-
-
Field Summary
Fields Modifier and Type Field Description public byte
versionTag
public long
captureTimeMs
public String
captureTimeHuman
public long
startTime
public int
sector
public byte
config_length
public int
frequency
public int
mSamplingRate
public int
mComputedDataRate
public int
bandwidthHz
public int
deviation
public byte
modulation
public String
string_modulation
public byte
power_amp
public boolean
rxRleEnabled
public int
data_length
public DeviceInfo
mDeviceInfo
-
Constructor Summary
Constructors Constructor Description MarauderReadSectorInfo()
MarauderReadSectorInfo(Array<byte> characteristicValue)
-
Method Summary
Modifier and Type Method Description boolean
init(Array<byte> characteristicValue)
boolean
isWellInitialized()
byte
getVersionTag()
long
getCaptureTime()
void
setCaptureTime(long captureTime)
String
getCaptureTimeHuman()
int
getSector()
void
setSector(int sector)
byte
getConfigLength()
void
setConfigLength(byte config_length)
int
getFrequency()
void
setFrequency(int frequency)
int
getComputedDataRate()
void
setComputedDataRate(int datarate)
int
getSamplingRate()
void
setSamplingRate(int samplingRate)
int
getBandwidthHz()
void
setBandwidthHz(int bandwidthHz)
int
getDeviation()
void
setDeviation(int deviation)
byte
getModulation()
String
getStringModulation()
void
setModulation(byte modulation)
byte
getPowerAmp()
void
setPowerAmp(byte power_amp)
boolean
isRxRleEnabled()
void
setRxRleEnabled(boolean rxRleEnabled)
int
getDataLength()
void
setDataLength(int data_length)
boolean
isEmpty()
void
setEmpty()
boolean
isSameAsOriginalSector()
Indicate if fetched sector is same as embedded sector hosted in marauder memory void
setSameAsOriginalSector(boolean state)
Update state to indicates if fetched sector is same as embedded sector hosted in marauder memory void
setDeviceInfo(@Nullable() DeviceInfo deviceInfo)
DeviceInfo
getDeviceInfo()
void
setNumPage(byte numPagesInSector)
int
getNumPagesUsed()
int
getLastPageUsed()
void
setAsyncMode(boolean asyncModeEnabled)
boolean
isAsyncModeEnabled()
String
toString()
-
-
Constructor Detail
-
MarauderReadSectorInfo
MarauderReadSectorInfo()
-
MarauderReadSectorInfo
MarauderReadSectorInfo(Array<byte> characteristicValue)
- Parameters:
characteristicValue
- value of the characteristic, including the command byte
-
-
Method Detail
-
isWellInitialized
boolean isWellInitialized()
-
getVersionTag
byte getVersionTag()
-
getCaptureTime
long getCaptureTime()
-
setCaptureTime
void setCaptureTime(long captureTime)
-
getCaptureTimeHuman
String getCaptureTimeHuman()
-
getSector
int getSector()
-
setSector
void setSector(int sector)
-
getConfigLength
byte getConfigLength()
-
setConfigLength
void setConfigLength(byte config_length)
-
getFrequency
int getFrequency()
-
setFrequency
void setFrequency(int frequency)
-
getComputedDataRate
int getComputedDataRate()
-
setComputedDataRate
void setComputedDataRate(int datarate)
-
getSamplingRate
int getSamplingRate()
-
setSamplingRate
void setSamplingRate(int samplingRate)
-
getBandwidthHz
int getBandwidthHz()
-
setBandwidthHz
void setBandwidthHz(int bandwidthHz)
-
getDeviation
int getDeviation()
-
setDeviation
void setDeviation(int deviation)
-
getModulation
byte getModulation()
-
getStringModulation
String getStringModulation()
-
setModulation
void setModulation(byte modulation)
-
getPowerAmp
byte getPowerAmp()
-
setPowerAmp
void setPowerAmp(byte power_amp)
-
isRxRleEnabled
boolean isRxRleEnabled()
-
setRxRleEnabled
void setRxRleEnabled(boolean rxRleEnabled)
-
getDataLength
int getDataLength()
-
setDataLength
void setDataLength(int data_length)
-
isEmpty
boolean isEmpty()
-
setEmpty
void setEmpty()
-
isSameAsOriginalSector
boolean isSameAsOriginalSector()
Indicate if fetched sector is same as embedded sector hosted in marauder memory
-
setSameAsOriginalSector
void setSameAsOriginalSector(boolean state)
Update state to indicates if fetched sector is same as embedded sector hosted in marauder memory
-
setDeviceInfo
void setDeviceInfo(@Nullable() DeviceInfo deviceInfo)
-
getDeviceInfo
@Nullable() DeviceInfo getDeviceInfo()
-
setNumPage
void setNumPage(byte numPagesInSector)
-
getNumPagesUsed
int getNumPagesUsed()
-
getLastPageUsed
int getLastPageUsed()
-
setAsyncMode
void setAsyncMode(boolean asyncModeEnabled)
-
isAsyncModeEnabled
boolean isAsyncModeEnabled()
-
-
-
-