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 byteversionTagpublic longcaptureTimeMspublic StringcaptureTimeHumanpublic longstartTimepublic intsectorpublic byteconfig_lengthpublic intfrequencypublic intmSamplingRatepublic intmComputedDataRatepublic intbandwidthHzpublic intdeviationpublic bytemodulationpublic Stringstring_modulationpublic bytepower_amppublic booleanrxRleEnabledpublic intdata_lengthpublic DeviceInfomDeviceInfo
-
Constructor Summary
Constructors Constructor Description MarauderReadSectorInfo()MarauderReadSectorInfo(Array<byte> characteristicValue)
-
Method Summary
Modifier and Type Method Description booleaninit(Array<byte> characteristicValue)booleanisWellInitialized()bytegetVersionTag()longgetCaptureTime()voidsetCaptureTime(long captureTime)StringgetCaptureTimeHuman()intgetSector()voidsetSector(int sector)bytegetConfigLength()voidsetConfigLength(byte config_length)intgetFrequency()voidsetFrequency(int frequency)intgetComputedDataRate()voidsetComputedDataRate(int datarate)intgetSamplingRate()voidsetSamplingRate(int samplingRate)intgetBandwidthHz()voidsetBandwidthHz(int bandwidthHz)intgetDeviation()voidsetDeviation(int deviation)bytegetModulation()StringgetStringModulation()voidsetModulation(byte modulation)bytegetPowerAmp()voidsetPowerAmp(byte power_amp)booleanisRxRleEnabled()voidsetRxRleEnabled(boolean rxRleEnabled)intgetDataLength()voidsetDataLength(int data_length)booleanisEmpty()voidsetEmpty()booleanisSameAsOriginalSector()Indicate if fetched sector is same as embedded sector hosted in marauder memory voidsetSameAsOriginalSector(boolean state)Update state to indicates if fetched sector is same as embedded sector hosted in marauder memory voidsetDeviceInfo(@Nullable() DeviceInfo deviceInfo)DeviceInfogetDeviceInfo()voidsetNumPage(byte numPagesInSector)intgetNumPagesUsed()intgetLastPageUsed()voidsetAsyncMode(boolean asyncModeEnabled)booleanisAsyncModeEnabled()StringtoString()-
-
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()
-
-
-
-