|
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
com.ridgesoft.robotics.I2CEEPROM
public class I2CEEPROM
Class to interface to and I2C EEPROM.
| Constructor Summary | |
|---|---|
I2CEEPROM(I2CMaster i2cMaster,
int i2cAddress,
int size,
int writeDelay)
Constructs an I2CEEPROM object. |
|
| Method Summary | |
|---|---|
byte |
readByte(int address)
Reads a byte of data from the EEPROM. |
int |
size()
Returns the accessible size of the EEPROM in bytes. |
void |
write(int address,
byte value)
Writes a byte into EEPROM memory. |
| Methods inherited from class com.ridgesoft.io.EEPROM |
|---|
read, read, readInt, readShort, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
|---|
public I2CEEPROM(I2CMaster i2cMaster,
int i2cAddress,
int size,
int writeDelay)
i2cMaster - reference to the I2CMaster object for the bus this device is oni2cAddress - I2C address for this devicesize - number of bytes the device holdswriteDelay - milliseconds to delay after a write - calling thread sleeps during
this time| Method Detail |
|---|
public byte readByte(int address)
throws IOException
readByte in class EEPROMaddress - address to read
IOExceptionpublic int size()
size in class EEPROM
public void write(int address,
byte value)
throws IOException
write in class EEPROMaddress - 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 | |||||||