|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.AbstractHardware
jmce.sim.AbstractPeripheral
jmce.sim.memory.AbstractMemory
jmce.sim.memory.PlainMemory
jmce.sim.memory.PersistentMemory
jmce.atmel.AT24C16
public class AT24C16
Atmel AT24C16 2048 byte EEprom. I2c Memory at address A0-AF
I2cBus
Field Summary |
---|
Fields inherited from class jmce.sim.memory.PlainMemory |
---|
memory, tmpMemory |
Fields inherited from class jmce.sim.memory.AbstractMemory |
---|
size, vms |
Fields inherited from class jmce.sim.AbstractPeripheral |
---|
cpu |
Constructor Summary | |
---|---|
AT24C16()
|
Method Summary | |
---|---|
boolean |
i2cAddress(int address)
Check if the address is managed by this peripheral |
int |
i2cRead(int count)
Read one byte |
boolean |
i2cWrite(int count,
int value)
Write one byte. |
Methods inherited from class jmce.sim.memory.PersistentMemory |
---|
filename, getFilename, init, load, registerCPU, reset, setFilename, timerExpired, writeMemory |
Methods inherited from class jmce.sim.memory.PlainMemory |
---|
allocMemory, copyMemory, get, reset, set, setSize |
Methods inherited from class jmce.sim.AbstractPeripheral |
---|
idle, setIdle, setLive |
Methods inherited from class jmce.sim.AbstractHardware |
---|
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmce.sim.Hardware |
---|
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
Methods inherited from interface jmce.sim.Peripheral |
---|
idle |
Constructor Detail |
---|
public AT24C16()
Method Detail |
---|
public boolean i2cAddress(int address)
I2cSlave
i2cAddress
in interface I2cSlave
address
- - Address to check.
public boolean i2cWrite(int count, int value) throws SIMException
I2cSlave
i2cWrite
in interface I2cSlave
SIMException
public int i2cRead(int count) throws SIMException
I2cSlave
i2cRead
in interface I2cSlave
SIMException
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |