jmce - 1_02

jmce.viara.diseqc
Class DiseqcI2cBus

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.sim.I2cBus
              extended by jmce.viara.diseqc.DiseqcI2cBus
All Implemented Interfaces:
Hardware, MemoryWriteListener, Peripheral

public class DiseqcI2cBus
extends I2cBus

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.

Version:
1.00
Author:
Mario Viara

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

DiseqcI2cBus

public DiseqcI2cBus()
Method Detail

init

public void init(Hardware parent)
          throws SIMException
Description copied from interface: Hardware
Initialize the hardware. This method must be called before any use of the interface. Only set ... / get ... method are allowed to be called before the intialization.

Specified by:
init in interface Hardware
Overrides:
init in class AbstractHardware
Parameters:
parent - Parent of this hardware.
Throws:
SIMException

registerCPU

public void registerCPU(CPU cpu)
                 throws SIMException
Description copied from interface: Peripheral
Register a parent CPU for future reference.

Specified by:
registerCPU in interface Peripheral
Overrides:
registerCPU in class AbstractPeripheral
Throws:
SIMException

getPosition

public int getPosition()
                throws SIMException
Throws:
SIMException

jmce - 1_02