|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ridgesoft.io.EEPROM
public abstract class EEPROM
Abstract class to interface to an EEPROM.
Constructor Summary | |
---|---|
protected |
EEPROM()
Constructor for sub-classes to use. |
Method Summary | |
---|---|
void |
read(int address,
byte[] buffer)
Reads an array of bytes from the EEPROM. |
void |
read(int address,
byte[] buffer,
int offset,
int count)
Reads an array of bytes from the EEPROM. |
abstract byte |
readByte(int address)
Reads a byte of data from the EEPROM. |
int |
readInt(int address)
Reads an int value from the EEPROM. |
short |
readShort(int address)
Reads a short value from the EEPROM. |
abstract int |
size()
Returns the accessible size of the EEPROM in bytes. |
abstract void |
write(int address,
byte value)
Writes a byte into the EEPROM. |
void |
write(int address,
byte[] buffer)
Writes a byte array into the EEPROM. |
void |
write(int address,
byte[] buffer,
int offset,
int count)
Writes data from a byte array into the EEPROM. |
void |
write(int address,
int value)
Writes an int into the EEPROM. |
void |
write(int address,
short value)
Writes a short into the EEPROM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
---|
protected EEPROM()
Method Detail |
---|
public void read(int address, byte[] buffer) throws IOException
address
- address to readbuffer
- buffer to fill with bytes read from the EEPROM
IOException
public void read(int address, byte[] buffer, int offset, int count) throws IOException
address
- address to readbuffer
- buffer to fill with bytes read from the EEPROMoffset
- offset of first location in buffer to fillcount
- number of bytes to read
IOException
public abstract byte readByte(int address) throws IOException
address
- address to read
IOException
public int readInt(int address) throws IOException
address
- address to read
IOException
public short readShort(int address) throws IOException
address
- address to read
IOException
public abstract int size()
public abstract void write(int address, byte value) throws IOException
address
- address to writevalue
- value to write
IOException
public void write(int address, byte[] buffer) throws IOException
address
- address to writebuffer
- buffer of data to write
IOException
public void write(int address, byte[] buffer, int offset, int count) throws IOException
address
- address to writebuffer
- byte array containing the data to writeoffset
- offset to the first byte in the buffer to writecount
- the number of bytes to write
IOException
public void write(int address, int value) throws IOException
address
- address to writevalue
- value to write
IOException
public void write(int address, short value) throws IOException
address
- address to writevalue
- value to write
IOException
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |