|
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.I2cBus
jmce.viara.diseqc.DiseqcI2cBus
public class DiseqcI2cBus
I2C Bus for diseqc.
This class implements the I2C bus for the Diseqc project. The bus is implemented not using one I2C controller buf only 2 open collector pin.
Field Summary |
---|
Fields inherited from class jmce.sim.I2cBus |
---|
SCL, SDA |
Fields inherited from class jmce.sim.AbstractPeripheral |
---|
cpu |
Constructor Summary | |
---|---|
DiseqcI2cBus()
|
Method Summary | |
---|---|
int |
getPosition()
|
void |
init(Hardware parent)
Initialize the hardware. |
void |
registerCPU(CPU cpu)
Register a parent CPU for future reference. |
Methods inherited from class jmce.sim.I2cBus |
---|
bus, i2cFail, i2cRecv, i2cRecv, i2cRise, i2cSend, i2cStart, i2cStop, reset, setScl, setSda, writeMemory |
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, toString |
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, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName |
Constructor Detail |
---|
public DiseqcI2cBus()
Method Detail |
---|
public void init(Hardware parent) throws SIMException
Hardware
init
in interface Hardware
init
in class AbstractHardware
parent
- Parent of this hardware.
SIMException
public void registerCPU(CPU cpu) throws SIMException
Peripheral
registerCPU
in interface Peripheral
registerCPU
in class AbstractPeripheral
SIMException
public int getPosition() throws SIMException
SIMException
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |