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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Monitor
public Monitor()
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)