com.dalsemi.system
Class BytePort

java.lang.Object
  |
  +--com.dalsemi.system.BytePort

public class BytePort
extends Object

This class allows byte wide access to available processor ports.


Field Summary
static byte Port5
          Port 5, pins 14-21.
 
Constructor Summary
BytePort(byte portname)
          Creates a new instance of BytePort using the port specified.
 
Method Summary
 int read()
          Reads a single byte from the port.
 void write(int value)
          Writes a single byte to the port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Port5

public static final byte Port5
Port 5, pins 14-21. Using this port will disable CAN 0, I2C pins, serial 1, the external 1-Wire port, and any external chip enables (/PCE0-/PCE3). When using this port be aware of your hardware setup!
Constructor Detail

BytePort

public BytePort(byte portname)
Creates a new instance of BytePort using the port specified.
Parameters:
bitname - descriptor of port to use (e.g. Port5)
Method Detail

write

public void write(int value)
Writes a single byte to the port.
Parameters:
value - single byte to write

read

public int read()
Reads a single byte from the port.
Returns:
byte read