de.wagner_ibw.iow.i2c
Interface I2CDevice

All Known Implementing Classes:
AbstractI2CDevice

public interface I2CDevice

Each I2C device implementation must implements this interface.

Author:
Thomas Wagner

Method Summary
 I2CAddress getI2cAddress()
          Returns the i2c device slave address.
 java.lang.String getName()
          Returns the name of the i2c device.
 void reportReceived(int[] readBuffer)
          Callback method is called when a matching report was received.
 void setIowDevice(AbstractIowDevcie iow)
          Sets the reference to an iow device for write report operations.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the i2c device.

Returns:
Name of the i2c device.

getI2cAddress

public I2CAddress getI2cAddress()
Returns the i2c device slave address.

Returns:
Slave address.

reportReceived

public void reportReceived(int[] readBuffer)
Callback method is called when a matching report was received.

Parameters:
readBuffer - Read buffer from a received report.

setIowDevice

public void setIowDevice(AbstractIowDevcie iow)
Sets the reference to an iow device for write report operations.

Parameters:
iow - Instance of an iow device.