|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--de.wagner_ibw.iow.spi.AbstractSPIDevice
This is the abtract implementation of the SPIDevice.java interface
| Field Summary | |
private int |
flags
SPI data transfer flag. |
protected AbstractIowDevcie |
iow
Reference to the underlying IOW device. |
private java.lang.String |
name
Device name. |
protected sun.misc.Queue |
readQueue
|
| Constructor Summary | |
AbstractSPIDevice(java.lang.String name,
int flags)
|
|
| Method Summary | |
java.lang.String |
getName()
Returns the name of the spi device. |
private void |
printReport(java.lang.String dir,
int[] rep)
Only for debug purposes. |
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. |
java.lang.String |
toString()
Returns the name of the spi device as String. |
protected int[] |
transmit(int[] in)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AbstractIowDevcie iow
private java.lang.String name
private int flags
protected sun.misc.Queue readQueue
| Constructor Detail |
public AbstractSPIDevice(java.lang.String name,
int flags)
| Method Detail |
public java.lang.String getName()
SPIDevice
getName in interface SPIDevicepublic void reportReceived(int[] readBuffer)
SPIDevice
reportReceived in interface SPIDevicereadBuffer - Read buffer from a received report.public void setIowDevice(AbstractIowDevcie iow)
SPIDevice
setIowDevice in interface SPIDeviceiow - Instance of an iow device.
protected int[] transmit(int[] in)
throws java.lang.Exception
java.lang.Exception
private void printReport(java.lang.String dir,
int[] rep)
dir - rep - public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||