Class MarauderReadSectorData
-
- All Implemented Interfaces:
-
java.io.Serializable
public class MarauderReadSectorData implements Serializable
This class should mirror the struct ble_marauder_sector_data_t of Gollum BLE Example value: (0x) 09-00-00-00-00-00-01-FA-FF-FF-FF-E0-0F-FF-FF-FE-00-FF-FF-FF-E0-0F-F8-00-00-00-FF-FF-FF-E0-0F-F8-00-00-00-FF-80-00-00-0F-FC- 00-00-00-7F-FF-FF-F0-07-FC-00-00-00-7F-FF-FF-F0-07-FC-00-00-00-7F-FF-FF-F0-07-FF-FF-FF-00-7F-FF-FF-F0-07-FF-FF-FF-00-7F-C0-00-00-07-FC-00-00-00-7F- E0-00-00-03-FE-00-00-00-3F-E0-00-00-03-FF-00-00-00-1F-FF-FF-FC-01-FF-00-00-00-1F-F0-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00- 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-FF-FF-FF-F0-0F-FF-FF-FE-00-FF-FF-FF-E0-0F-F8-00-00-00-FF-FF-FF-E0-0F-F8-00-00-00-FF-C0-00-00-0F-FC- 00-00-00-7F-FF-FF-F0-07-FC-00-00-00-7F-FF-FF-F0-07-FC-00-00-00-7F-FF-FF-F8-07-FF-FF-FF-00-7F-FF-FF-F0-07-FF-FF-FF-00-7F-C0-00-00-07-FC-00-00-00-7F- E0-00-00-03-FE-00-00-00-3F-E0-00-00-03-FF-00-00-00-1F-FF-FF-FC
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
MAX_PAGE_DATA_LENGTH
public final static int
MAX_PAGE_DATA_LENGTH_V4
public final static byte
FIRST_DATA_PAGE
public final static byte
LAST_DATA_PAGE
public byte
versionTag
public int
sector
public byte
page
public int
data_length
public boolean
compressed
public Array<byte>
data
public String
hex_data_compressed
public RfDurations
mRfDurations
public String
hex_data
public boolean
mAsyncMode
public boolean
mFirstPulsePolarity
public boolean
isWellInitialized
-
Constructor Summary
Constructors Constructor Description MarauderReadSectorData()
MarauderReadSectorData(Array<byte> characteristicValue)
-
Method Summary
Modifier and Type Method Description Array<byte>
getData()
void
setData(Array<byte> data)
boolean
isWellInitialized()
boolean
init(Array<byte> characteristicValue)
byte
getVersionTag()
int
getSector()
void
setSector(int sector)
byte
getPage()
void
setPage(byte page)
int
getDataLength()
void
setDataLength(int data_length)
boolean
isCompressed()
void
setCompressed(boolean compressed)
boolean
isLastPageInSector()
Return true if this MarauderSectorData is the last page inside the sector, else return false String
toString()
-
-
Constructor Detail
-
MarauderReadSectorData
MarauderReadSectorData()
-
MarauderReadSectorData
MarauderReadSectorData(Array<byte> characteristicValue)
- Parameters:
characteristicValue
- value of the characteristic, including the command byte
-
-
Method Detail
-
isWellInitialized
boolean isWellInitialized()
-
getVersionTag
byte getVersionTag()
-
getSector
int getSector()
-
setSector
void setSector(int sector)
-
getPage
byte getPage()
-
setPage
void setPage(byte page)
-
getDataLength
int getDataLength()
-
setDataLength
void setDataLength(int data_length)
-
isCompressed
boolean isCompressed()
-
setCompressed
void setCompressed(boolean compressed)
-
isLastPageInSector
boolean isLastPageInSector()
Return true if this MarauderSectorData is the last page inside the sector, else return false
-
-
-
-