Class MarauderMemoryCleared
-
- All Implemented Interfaces:
-
java.io.Serializable
public class MarauderMemoryCleared implements Serializable
This class should mirror the struct ble_marauder_memory_clear_t of Gollum BLE Example value: (0x) 0B-00-00-00-3E-00-FF-FF
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
MEMORY_FIRST_BLOCK
public int
block
public int
sector
-
Constructor Summary
Constructors Constructor Description MarauderMemoryCleared(Array<byte> characteristicValue)
-
Method Summary
Modifier and Type Method Description int
getBlock()
void
setBlock(int block)
int
getSector()
void
setSector(int sector)
final static int
getNumBlock(HwRevision hwRevision)
Based on HW revision, return num of blocks. boolean
isBlockValid()
boolean
isLastBlock(HwRevision hwRevision)
Based on HwRevision, indicates if current block is the last. boolean
isSectorValid()
String
toString()
-
-
Constructor Detail
-
MarauderMemoryCleared
MarauderMemoryCleared(Array<byte> characteristicValue)
- Parameters:
characteristicValue
- value of the characteristic, including the command byte
-
-
Method Detail
-
getBlock
int getBlock()
-
setBlock
void setBlock(int block)
-
getSector
int getSector()
-
setSector
void setSector(int sector)
-
getNumBlock
final static int getNumBlock(HwRevision hwRevision)
Based on HW revision, return num of blocks.
-
isBlockValid
boolean isBlockValid()
-
isLastBlock
boolean isLastBlock(HwRevision hwRevision)
Based on HwRevision, indicates if current block is the last.
-
isSectorValid
boolean isSectorValid()
-
-
-
-