|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.i2c.I2CAddress
This class represents an i2c slave address. It contains the group 1 part (4 bit long, further called 'device class') and the group 2 part (3 bit long, further called device address) of the slave address.
Constructor Summary | |
I2CAddress(int deviceClass,
int deviceAddress)
Creates an new I2CAddress . |
Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other I2CAddress object is "equal to" this one.
|
int |
getDeviceAddress()
Returns the device address. |
int |
getDeviceClass()
Returns the device class. |
int |
getReadAddress()
Returns the slave address for read operations (bit 0 is set). |
int |
getWriteAddress()
Returns the slave address for write operations (bit 0 is clear). |
int |
hashCode()
Returns a hash code value for this I2CAddress object. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public I2CAddress(int deviceClass, int deviceAddress) throws java.lang.IllegalArgumentException
I2CAddress
.
deviceClass
- Group 1 part (device class) of the i2c slave address.deviceAddress
- Group 2 part (device address) of the i2c slave address.Method Detail |
public int getDeviceClass()
public int getDeviceAddress()
public int getReadAddress()
public int getWriteAddress()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
I2CAddress
object is "equal to" this one.
Criterias are the i2c device class and i2c device address.
equals
in class java.lang.Object
public int hashCode()
I2CAddress
object. It is derived from the
i2c device class and i2c device address.
hashCode
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |