de.wagner_ibw.iow
Interface IowInterface


public interface IowInterface

This Interface contains basic methods for each Iow device.

Author:
Thomas Wagner

Method Summary
 void clearBit(int port, int bit)
          Clear the given bit froma the given port.
 long getHandle()
           
 int getId()
           
 Monitor getMonitor()
           
 java.lang.String getName()
           
 int getRev()
           
 java.lang.String getSerial()
           
 long readIOPorts()
           
 int[] readReport(int pipe)
           
 void setBit(int port, int bit)
          Set the given bit froma the given port.
 void setDirection(int port, int direction)
          Set the direction mask to the given port.
 void writeIOPorts()
          Write the preseted ports.
 long writeReport(int pipe, int[] wbuf)
           
 

Method Detail

readIOPorts

public long readIOPorts()
Since:
0.9.3 with long return value

readReport

public int[] readReport(int pipe)
Parameters:
pipe -
Returns:
Array of int.

writeReport

public long writeReport(int pipe,
                        int[] wbuf)
Parameters:
pipe -
wbuf -
Returns:
Array of int.

getHandle

public long getHandle()
Returns:
Handle as long

getSerial

public java.lang.String getSerial()
Returns:
Serialnomber as string.

getId

public int getId()
Returns:
Id as int.

getRev

public int getRev()
Returns:
Revision as int.
Since:
0.9.3

getName

public java.lang.String getName()
Returns:
Name as string.

getMonitor

public Monitor getMonitor()
Returns:
Since:
0.9.4

setDirection

public void setDirection(int port,
                         int direction)
                  throws java.lang.IllegalArgumentException
Set the direction mask to the given port.

Parameters:
port - Port number (0...3).
direction - 0-output, 1-input
java.lang.IllegalArgumentException
Since:
0.9.4

setBit

public void setBit(int port,
                   int bit)
            throws java.lang.IllegalArgumentException
Set the given bit froma the given port.

Parameters:
port - Port number (0...1).
bit - Bit number (0...7).
java.lang.IllegalArgumentException
Since:
0.9.4

clearBit

public void clearBit(int port,
                     int bit)
              throws java.lang.IllegalArgumentException
Clear the given bit froma the given port.

Parameters:
port - Port number (0...1).
bit - Bit number (0...7).
java.lang.IllegalArgumentException
Since:
0.9.4

writeIOPorts

public void writeIOPorts()
Write the preseted ports.

Since:
0.9.4