ch.unizh.ini.jaer.projects.pencilbalancer
Class HWP_RS232
java.lang.Object
ch.unizh.ini.jaer.projects.pencilbalancer.HWPort
ch.unizh.ini.jaer.projects.pencilbalancer.HWP_RS232
public class HWP_RS232
- extends HWPort
Field Summary |
protected gnu.io.SerialPort |
serialPort
|
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 |
serialPort
protected gnu.io.SerialPort serialPort
HWP_RS232
public HWP_RS232()
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