de.wagner_ibw.iow.i2c
Class Monitor

java.lang.Object
  |
  +--de.wagner_ibw.iow.i2c.Monitor

public class Monitor
extends java.lang.Object

Monitor for i2c bus operations.

Author:
Thomas Wagner

Field Summary
private static boolean CLASS_DEBUG
           
private  AbstractI2CDevice currentDevice
          Current i2c device.
 
Constructor Summary
Monitor()
           
 
Method Summary
 void abortTransmission(AbstractI2CDevice dev)
           
 void beginTransmission(AbstractI2CDevice dev)
           
private  void debug(java.lang.String msg)
           
 void endTransmission(AbstractI2CDevice dev)
           
 AbstractI2CDevice getCurrentDevice()
           
private  boolean resetCurrentDevice(AbstractI2CDevice dev)
           
private  boolean setCurrentDevice(AbstractI2CDevice dev)
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentDevice

private AbstractI2CDevice currentDevice
Current i2c device. If null, no pending operation.


CLASS_DEBUG

private static final boolean CLASS_DEBUG
See Also:
Constant Field Values
Constructor Detail

Monitor

public Monitor()
Method Detail

getCurrentDevice

public AbstractI2CDevice getCurrentDevice()

beginTransmission

public void beginTransmission(AbstractI2CDevice dev)
                       throws java.lang.Exception
java.lang.Exception

endTransmission

public void endTransmission(AbstractI2CDevice dev)

abortTransmission

public void abortTransmission(AbstractI2CDevice dev)

toString

public java.lang.String toString()
Returns a string representation of the object. It consists of different i2c device information.

Overrides:
toString in class java.lang.Object
Returns:
a string consisting of i2c devices information.

setCurrentDevice

private boolean setCurrentDevice(AbstractI2CDevice dev)

resetCurrentDevice

private boolean resetCurrentDevice(AbstractI2CDevice dev)
                            throws java.lang.IllegalStateException
java.lang.IllegalStateException

debug

private void debug(java.lang.String msg)