|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITargetFlashAccess
ITargetFlashAccess provides sector-level access to the flash memory of a locally connected SPOT. This allows the IBootloaderTarget to reuse the FlashFile infrastructure executing on the host. Only intended as part of the implementation of bootloader commands, and subject to change without notice in future releases.
Method Summary | |
---|---|
void |
flashBytes(int sectorNumber,
int memoryOffset,
byte[] buffer,
int bufferOffset,
int length)
Write data to a sector |
byte[] |
readSector(int sectorNumber)
Read the contents of a flash sector |
Method Detail |
---|
void flashBytes(int sectorNumber, int memoryOffset, byte[] buffer, int bufferOffset, int length) throws IOException
sectorNumber
- the sector to write tomemoryOffset
- the offset in the sector at which to writebuffer
- the data to writebufferOffset
- the offset in buffer to start fromlength
- the number of bytes to write
IOException
byte[] readSector(int sectorNumber) throws IOException
sectorNumber
- the sector to read
IOException
|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |