Class Flash
java.lang.Object
|
+--Flash
- Direct Known Subclasses:
- DebuggableFlash
- public class Flash
- extends java.lang.Object
Instances of this class are flash memories of PICs
You can read the source of this class here.
Field Summary |
static int |
FlashSize
The size of the flash memory. |
Constructor Summary |
Flash()
Creates a new not-yet-programmed flash. |
Flash(CompiledProgram prog)
Creates a flash containing the prog prog. |
Method Summary |
int |
Read(int address)
Returns instruction at address address. |
void |
Reprogram(CompiledProgram prog)
Reprograms the flash memory. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FlashSize
public static final int FlashSize
- The size of the flash memory.
Flash
public Flash(CompiledProgram prog)
- Creates a flash containing the prog prog.
- Parameters:
prog
- Program to write to flash.
Flash
public Flash()
- Creates a new not-yet-programmed flash.
Read
public int Read(int address)
- Returns instruction at address address.
- Parameters:
address
- Address to read instruction from.
Reprogram
public void Reprogram(CompiledProgram prog)
- Reprograms the flash memory.
- Parameters:
prog
- Program to write to flash.