|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--de.wagner_ibw.iow.i2c.AbstractI2CDevice
|
+--de.wagner_ibw.iow.i2c.PCF8574A
This is the implemenation of the PCF8574A device, "Remote 8-Bit I/O Expander". !!!! under construction !!!!
| Field Summary | |
static int |
CLASS
Group 1 part of slave address for PCF8574A (PCF8574A device specific constant). |
static java.lang.String |
NAME
PCF8574A device specific constants. |
| Fields inherited from class de.wagner_ibw.iow.i2c.AbstractI2CDevice |
MAX_I2C_LENGTH |
| Constructor Summary | |
PCF8574A(int deviceAddress)
Constructor |
|
PCF8574A(int deviceAddress,
int intPort,
int intBit)
Constructor for interrupt using. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other PCF8574A object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for this PCF8574A object. |
void |
portChanged(IowPort port)
|
int |
readPort()
Reads the port. |
void |
setIowDevice(AbstractIowDevice iow)
Sets the reference to an IO-Warrior device for write report operations. |
java.lang.String |
toString()
Returns Information about this PCF8574A as String. |
void |
writePort(int data)
Writes the port. |
| Methods inherited from class de.wagner_ibw.iow.i2c.AbstractI2CDevice |
getI2cAddress, getName, readI2C, reportReceived, setMonitor, writeI2C |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME
public static final int CLASS
| Constructor Detail |
public PCF8574A(int deviceAddress)
throws java.lang.Exception
deviceAddress - Group 2 part of slave address (possible values 0...7).
java.lang.Exception - If anything goes wrong.
public PCF8574A(int deviceAddress,
int intPort,
int intBit)
throws java.lang.Exception
deviceAddress - Group 2 part of slave address (possible values 0...7).intPort - port number for interrupt signal.intBit - bit number for interrupt signal.
java.lang.Exception - If anything goes wrong.| Method Detail |
public int readPort()
throws java.lang.Exception
java.lang.Exception - If any transmission error occurred.
public void writePort(int data)
throws java.lang.Exception
data -
java.lang.Exception - If any transmission error occurred.public void setIowDevice(AbstractIowDevice iow)
I2CDevice
setIowDevice in interface I2CDevicesetIowDevice in class AbstractI2CDeviceiow - Instance of an IO-Warrior device.public java.lang.String toString()
toString in class AbstractI2CDevicepublic boolean equals(java.lang.Object o)
equals in class AbstractI2CDevicepublic int hashCode()
hashCode in class AbstractI2CDevicepublic void portChanged(IowPort port)
portChanged in interface IowPortChangeListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||