Servertec
Foundation Classes
1.3.3 09/04/2005

stec.sfc.Win32
Class IOPort

java.lang.Object
  extended by stec.sfc.Win32.IOPort

public final class IOPort
extends java.lang.Object

Used to read and write to IO ports.

Since:
1.0.0 01/07/2001

Constructor Summary
IOPort()
           
 
Method Summary
static int inByte(int port)
          Reads an unsigned byte from the specified IO port.
static int inInt(int port)
          Reads an unsigned double word from the specified IO port.
static int inShort(int port)
          Reads an unsigned word from the specified IO port.
static int outByte(int port, int data)
          Writes an unsigned byte to the specified IO port.
static int outInt(int port, int data)
          Writes an unsigned double word to the specified IO port.
static int outShort(int port, int data)
          Writes an unsigned word to the specified IO port.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOPort

public IOPort()
Method Detail

outByte

public static final int outByte(int port,
                                int data)
Writes an unsigned byte to the specified IO port.

Parameters:
port - the IO port number, an unsigned short value.
data - the unsigned byte to write.
Returns:
the unsigned byte written.

outShort

public static final int outShort(int port,
                                 int data)
Writes an unsigned word to the specified IO port.

Parameters:
port - the IO port number, an unsigned short value.
data - the unsigned word to write.
Returns:
the unsigned word written.

outInt

public static final int outInt(int port,
                               int data)
Writes an unsigned double word to the specified IO port.

Parameters:
port - the IO port number, an unsigned short value.
data - the unsigned double word to write.
Returns:
the unsigned double word written.

inByte

public static final int inByte(int port)
Reads an unsigned byte from the specified IO port.

Parameters:
port - the IO port number, an unsigned short value.
Returns:
the unsigned byte read.

inShort

public static final int inShort(int port)
Reads an unsigned word from the specified IO port.

Parameters:
port - the IO port number, an unsigned short value.
Returns:
the unsigned word read.

inInt

public static final int inInt(int port)
Reads an unsigned double word from the specified IO port.

Parameters:
port - the IO port number, an unsigned short value.
Returns:
the unsigned double word read.

Servertec
Foundation Classes
1.3.3 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.