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 intMEMORY_FIRST_BLOCKpublic intblockpublic intsector
-
Constructor Summary
Constructors Constructor Description MarauderMemoryCleared(Array<byte> characteristicValue)
-
Method Summary
Modifier and Type Method Description intgetBlock()voidsetBlock(int block)intgetSector()voidsetSector(int sector)final static intgetNumBlock(HwRevision hwRevision)Based on HW revision, return num of blocks. booleanisBlockValid()booleanisLastBlock(HwRevision hwRevision)Based on HwRevision, indicates if current block is the last. booleanisSectorValid()StringtoString()-
-
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()
-
-
-
-