jAER project on SourceForge

ch.unizh.ini.jaer.projects.pencilbalancer
Class HWP_RS232

java.lang.Object
  extended by ch.unizh.ini.jaer.projects.pencilbalancer.HWPort
      extended by ch.unizh.ini.jaer.projects.pencilbalancer.HWP_RS232

public class HWP_RS232
extends HWPort


Nested Class Summary
 
Nested classes/interfaces inherited from class ch.unizh.ini.jaer.projects.pencilbalancer.HWPort
HWPort.PortAttribute, HWPort.PortIdentifier
 
Field Summary
protected  gnu.io.SerialPort serialPort
           
 
Fields inherited from class ch.unizh.ini.jaer.projects.pencilbalancer.HWPort
bytesInBuffer, inputBuffer, inputBufferMask, inputBufferReadPointer, inputBufferSize, inputBufferWritePointer, inputStream, outputStream
 
Constructor Summary
HWP_RS232()
           
 
Method Summary
 int close()
           
 java.util.Vector<HWPort.PortAttribute> getPortAttributeList()
           
 java.util.List<HWPort.PortIdentifier> getPortIdentifierList()
           
 boolean isOpen()
           
 int open(java.lang.String portName, HWPort.PortAttribute pa)
           
 int setAttribute(HWPort.PortAttribute pa)
           
 int setBaudRate(int baudRate)
           
 int setHardwareFlowControl(boolean flowControlFlag)
           
 void setSingleCharFlushTransfer(boolean singleCharFlushTransferFlag)
           
protected  int updateBuffer()
           
 int write(byte[] b)
           
 
Methods inherited from class ch.unizh.ini.jaer.projects.pencilbalancer.HWPort
byteCountAvailable, bytesAvailable, flushOutput, purgeInput, readByteLine, readByteLine, readBytes, readExactBytes, readLine, readLine, readLineFraction, sendCommand, sendCommand, sendCommand, write, writeChar, writeLn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialPort

protected gnu.io.SerialPort serialPort
Constructor Detail

HWP_RS232

public HWP_RS232()
Method Detail

getPortIdentifierList

public java.util.List<HWPort.PortIdentifier> getPortIdentifierList()
Specified by:
getPortIdentifierList in class HWPort

getPortAttributeList

public java.util.Vector<HWPort.PortAttribute> getPortAttributeList()
Specified by:
getPortAttributeList in class HWPort

open

public int open(java.lang.String portName,
                HWPort.PortAttribute pa)
Specified by:
open in class HWPort

isOpen

public boolean isOpen()
Specified by:
isOpen in class HWPort

close

public int close()
Specified by:
close in class HWPort

setAttribute

public int setAttribute(HWPort.PortAttribute pa)
Specified by:
setAttribute in class HWPort

setBaudRate

public int setBaudRate(int baudRate)

setHardwareFlowControl

public int setHardwareFlowControl(boolean flowControlFlag)

setSingleCharFlushTransfer

public void setSingleCharFlushTransfer(boolean singleCharFlushTransferFlag)

write

public int write(byte[] b)
Specified by:
write in class HWPort

updateBuffer

protected int updateBuffer()
Specified by:
updateBuffer in class HWPort

jAER project on SourceForge