Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait`

Field Detail

### MAX_USER_PAGES

    public static final int MAX_USER_PAGES

  Maximum number of pages available to user flash memory. Change this if the start of user flash memory in the firmware changes.

  See Also:
    Constant Field Values

### BYTES_PER_PAGE

    public static short BYTES_PER_PAGE

  Indicates the # of bytes per page in a page of Flash memory.

Method Detail

### readPage

    public static void readPage(byte[] buf,
                                int pageNum)

### writePage

    public static void writePage(byte[] buf,
                                 int pageNum)

### exec

    public static void exec(int pageNum,
                            int size)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD