lejos.nxt
Class Flash
java.lang.Object
lejos.nxt.Flash
public class Flash
- extends Object
Read and write access to flash memory in pages.
- Author:
- Lawrie Griffiths.
Field Summary |
static short |
BYTES_PER_PAGE
Indicates the # of bytes per page in a page of Flash memory. |
static int |
MAX_USER_PAGES
Maximum number of pages available to user flash memory. |
Method Summary |
static void |
exec(int pageNum,
int size)
|
static void |
readPage(byte[] buf,
int pageNum)
|
static void |
writePage(byte[] buf,
int pageNum)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_USER_PAGES
public static final int MAX_USER_PAGES
- Maximum number of pages available to user flash memory.
This value is obtained automatically from the firmware.
BYTES_PER_PAGE
public static short BYTES_PER_PAGE
- Indicates the # of bytes per page in a page of Flash memory.
readPage
public static void readPage(byte[] buf,
int pageNum)
throws FlashError
- Throws:
FlashError
writePage
public static void writePage(byte[] buf,
int pageNum)
throws FlashError
- Throws:
FlashError
exec
public static void exec(int pageNum,
int size)
throws FlashError
- Throws:
FlashError