|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.io.CommPort
gnu.io.SerialPort
gnu.io.RXTXPort
An extension of gnu.io.SerialPort
SerialPort
Nested Class Summary | |
(package private) class |
RXTXPort.MonitorThread
|
(package private) class |
RXTXPort.SerialInputStream
Inner class for SerialInputStream |
(package private) class |
RXTXPort.SerialOutputStream
Inner class for SerialOutputStream |
Field Summary | |
(package private) boolean |
closeLock
|
private int |
dataBits
Data bits port parameter |
protected static boolean |
debug
|
protected static boolean |
debug_events
|
protected static boolean |
debug_read
|
protected static boolean |
debug_read_results
|
protected static boolean |
debug_verbose
|
protected static boolean |
debug_write
|
(package private) static boolean |
dsrFlag
DSR flag |
(package private) int |
eis
a pointer to the event info structure used to share information between threads so write threads can send output buffer empty from a pthread if need be. |
private int |
fd
File descriptor |
private int |
flowmode
Flow control |
private RXTXPort.SerialInputStream |
in
Input stream |
private int |
InputBuffer
FIXME I think this refers to FOPEN(3)/SETBUF(3)/FREAD(3)/FCLOSE(3) taj@www.linux.org.uk These are native stubs... |
(package private) int |
IOLocked
|
(package private) boolean |
MonitorThreadAlive
|
(package private) boolean |
MonitorThreadCloseLock
|
(package private) boolean |
MonitorThreadLock
Add an event listener |
private RXTXPort.MonitorThread |
monThread
Thread to monitor data |
(package private) boolean |
monThreadisInterrupted
|
private RXTXPort.SerialOutputStream |
out
Output stream |
private int |
OutputBuffer
|
private int |
parity
Parity port parameter |
(package private) int |
pid
pid for lock files |
private int |
speed
Line speed in bits-per-second |
private SerialPortEventListener |
SPEventListener
Serial Port Event listener |
private int |
stopBits
Stop bits port parameter |
private int |
threshold
Receive threshold control |
private int |
timeout
Receive timeout control |
private static Zystem |
z
|
Fields inherited from class gnu.io.SerialPort |
DATABITS_5, DATABITS_6, DATABITS_7, DATABITS_8, FLOWCONTROL_NONE, FLOWCONTROL_RTSCTS_IN, FLOWCONTROL_RTSCTS_OUT, FLOWCONTROL_XONXOFF_IN, FLOWCONTROL_XONXOFF_OUT, PARITY_EVEN, PARITY_MARK, PARITY_NONE, PARITY_ODD, PARITY_SPACE, STOPBITS_1, STOPBITS_1_5, STOPBITS_2 |
Fields inherited from class gnu.io.CommPort |
name |
Constructor Summary | |
RXTXPort(java.lang.String name)
Open the named port |
Method Summary | |
void |
addEventListener(SerialPortEventListener lsnr)
|
boolean |
checkMonitorThread()
|
void |
close()
|
void |
disableReceiveFraming()
|
void |
disableReceiveThreshold()
|
void |
disableReceiveTimeout()
|
void |
enableReceiveFraming(int f)
Receive framing control |
void |
enableReceiveThreshold(int thresh)
|
void |
enableReceiveTimeout(int time)
|
(package private) void |
eventLoop()
Process SerialPortEvents |
protected void |
finalize()
Finalize the port |
int |
getBaudBase()
Extension to CommAPI |
int |
getBaudRate()
|
boolean |
getCallOutHangup()
Extension to CommAPI returns boolean true on success |
int |
getDataBits()
|
int |
getDivisor()
Extension to CommAPI |
byte |
getEndOfInputChar()
Extension to CommAPI This is an extension to CommAPI. |
int |
getFlowControlMode()
|
int |
getInputBufferSize()
|
java.io.InputStream |
getInputStream()
get the InputStream |
boolean |
getLowLatency()
Extension to CommAPI returns boolean true on success |
int |
getOutputBufferSize()
|
java.io.OutputStream |
getOutputStream()
get the OutputStream |
int |
getParity()
|
byte |
getParityErrorChar()
Extension to CommAPI This is an extension to CommAPI. |
int |
getReceiveFramingByte()
|
int |
getReceiveThreshold()
|
int |
getReceiveTimeout()
|
int |
getStopBits()
|
java.lang.String |
getUARTType()
Extension to CommAPI This is an extension to CommAPI. |
private static void |
Initialize()
Initialize the native library |
private void |
interruptEventLoop()
|
boolean |
isCD()
|
boolean |
isCTS()
|
boolean |
isDSR()
|
boolean |
isDTR()
|
boolean |
isReceiveFramingEnabled()
|
boolean |
isReceiveThresholdEnabled()
|
boolean |
isReceiveTimeoutEnabled()
|
boolean |
isRI()
|
boolean |
isRTS()
|
protected int |
nativeavailable()
RXTXPort read methods |
private void |
nativeClose(java.lang.String name)
Close the port |
protected boolean |
nativeDrain(boolean i)
|
private void |
NativeEnableReceiveTimeoutThreshold(int time,
int threshold,
int InputBuffer)
|
private int |
nativeGetBaudBase()
|
private boolean |
nativeGetCallOutHangup()
|
private int |
nativeGetDivisor()
|
private byte |
nativeGetEndOfInputChar()
|
private int |
nativeGetFlowControlMode(int fd)
|
private boolean |
nativeGetLowLatency()
|
private int |
nativeGetParity(int fd)
Set the SerialPort parameters 1.5 stop bits requires 5 databits |
private byte |
nativeGetParityErrorChar()
|
int |
NativegetReceiveTimeout()
|
(package private) java.lang.String |
nativeGetUartType()
|
private boolean |
NativeisReceiveTimeoutEnabled()
|
private boolean |
nativeSetBaudBase(int BaudBase)
|
private boolean |
nativeSetCallOutHangup(boolean NoHup)
|
private boolean |
nativeSetDivisor(int Divisor)
|
private boolean |
nativeSetEndOfInputChar(byte b)
|
private void |
nativeSetEventFlag(int fd,
int event,
boolean flag)
|
private boolean |
nativeSetLowLatency()
|
private boolean |
nativeSetParityErrorChar(byte b)
|
private boolean |
nativeSetSerialPortParams(int speed,
int dataBits,
int stopBits,
int parity)
Set the native serial port parameters If speed is not a predifined speed it is assumed to be the actual speed desired. |
private boolean |
nativeSetUartType(java.lang.String type,
boolean test)
|
private static int |
nativeStaticGetBaudRate(java.lang.String port)
|
private static int |
nativeStaticGetDataBits(java.lang.String port)
|
private static int |
nativeStaticGetParity(java.lang.String port)
|
private static int |
nativeStaticGetStopBits(java.lang.String port)
|
private static boolean |
nativeStaticIsCD(java.lang.String port)
|
private static boolean |
nativeStaticIsCTS(java.lang.String port)
|
private static boolean |
nativeStaticIsDSR(java.lang.String port)
|
private static boolean |
nativeStaticIsDTR(java.lang.String port)
|
private static boolean |
nativeStaticIsRI(java.lang.String port)
|
private static boolean |
nativeStaticIsRTS(java.lang.String port)
|
private static boolean |
nativeStaticSetDSR(java.lang.String port,
boolean flag)
|
private static boolean |
nativeStaticSetDTR(java.lang.String port,
boolean flag)
|
private static boolean |
nativeStaticSetRTS(java.lang.String port,
boolean flag)
|
private static void |
nativeStaticSetSerialPortParams(java.lang.String f,
int b,
int d,
int s,
int p)
|
void |
notifyOnBreakInterrupt(boolean enable)
|
void |
notifyOnCarrierDetect(boolean enable)
|
void |
notifyOnCTS(boolean enable)
|
void |
notifyOnDataAvailable(boolean enable)
|
void |
notifyOnDSR(boolean enable)
|
void |
notifyOnFramingError(boolean enable)
|
void |
notifyOnOutputEmpty(boolean enable)
|
void |
notifyOnOverrunError(boolean enable)
|
void |
notifyOnParityError(boolean enable)
|
void |
notifyOnRingIndicator(boolean enable)
|
private int |
open(java.lang.String name)
|
protected int |
readArray(byte[] b,
int off,
int len)
|
protected int |
readByte()
|
protected int |
readTerminatedArray(byte[] b,
int off,
int len,
byte[] t)
|
void |
removeEventListener()
Remove the serial port event listener |
void |
sendBreak(int duration)
Write to the port |
boolean |
sendEvent(int event,
boolean state)
|
boolean |
setBaudBase(int BaudBase)
Extension to CommAPI |
boolean |
setCallOutHangup(boolean NoHup)
Extension to CommAPI returns boolean true on success |
boolean |
setDivisor(int Divisor)
Extension to CommAPI |
private void |
setDSR(boolean state)
|
void |
setDTR(boolean state)
|
boolean |
setEndOfInputChar(byte b)
Extension to CommAPI This is an extension to CommAPI. |
(package private) void |
setflowcontrol(int flowcontrol)
|
void |
setFlowControlMode(int flowcontrol)
|
void |
setInputBufferSize(int size)
|
boolean |
setLowLatency()
Extension to CommAPI returns boolean true on success |
void |
setOutputBufferSize(int size)
|
boolean |
setParityErrorChar(byte b)
Extension to CommAPI This is an extension to CommAPI. |
void |
setRcvFifoTrigger(int trigger)
Deprecated. deprecated but used in Kaffe |
void |
setRTS(boolean state)
|
void |
setSerialPortParams(int b,
int d,
int s,
int p)
|
boolean |
setUARTType(java.lang.String type,
boolean test)
Extension to CommAPI This is an extension to CommAPI. |
static int |
staticGetBaudRate(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static int |
staticGetDataBits(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static int |
staticGetParity(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static int |
staticGetStopBits(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticIsCD(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticIsCTS(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticIsDSR(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticIsDTR(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticIsRI(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticIsRTS(java.lang.String port)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticSetDSR(java.lang.String port,
boolean flag)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticSetDTR(java.lang.String port,
boolean flag)
Extension to CommAPI This is an extension to CommAPI. |
static boolean |
staticSetRTS(java.lang.String port,
boolean flag)
Extension to CommAPI This is an extension to CommAPI. |
static void |
staticSetSerialPortParams(java.lang.String f,
int b,
int d,
int s,
int p)
Extension to CommAPI This is an extension to CommAPI. |
protected void |
waitForTheNativeCodeSilly()
Give the native code a chance to start listening to the hardware or should we say give the native code control of the issue. |
protected void |
writeArray(byte[] b,
int off,
int len,
boolean i)
|
protected void |
writeByte(int b,
boolean i)
|
Methods inherited from class gnu.io.CommPort |
getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final boolean debug
protected static final boolean debug_read
protected static final boolean debug_read_results
protected static final boolean debug_write
protected static final boolean debug_events
protected static final boolean debug_verbose
private static Zystem z
boolean MonitorThreadAlive
int IOLocked
private int fd
int eis
int pid
static boolean dsrFlag
private final RXTXPort.SerialOutputStream out
private final RXTXPort.SerialInputStream in
private int speed
private int dataBits
private int stopBits
private int parity
private int flowmode
private int timeout
private int threshold
private int InputBuffer
private int OutputBuffer
private SerialPortEventListener SPEventListener
private RXTXPort.MonitorThread monThread
boolean monThreadisInterrupted
boolean MonitorThreadLock
boolean MonitorThreadCloseLock
boolean closeLock
Constructor Detail |
public RXTXPort(java.lang.String name) throws PortInUseException
name
- the name of the device to open
PortInUseException
SerialPort
Method Detail |
private static void Initialize()
private int open(java.lang.String name) throws PortInUseException
PortInUseException
public java.io.OutputStream getOutputStream()
getOutputStream
in class CommPort
public java.io.InputStream getInputStream()
getInputStream
in class CommPort
InputStream
private int nativeGetParity(int fd)
UnsupportedCommOperationException
If speed is not a predifined speed it is assumed to be
the actual speed desired.
private int nativeGetFlowControlMode(int fd)
public void setSerialPortParams(int b, int d, int s, int p) throws UnsupportedCommOperationException
setSerialPortParams
in class SerialPort
UnsupportedCommOperationException
private boolean nativeSetSerialPortParams(int speed, int dataBits, int stopBits, int parity) throws UnsupportedCommOperationException
UnsupportedCommOperationException
public int getBaudRate()
getBaudRate
in class SerialPort
public int getDataBits()
getDataBits
in class SerialPort
public int getStopBits()
getStopBits
in class SerialPort
public int getParity()
getParity
in class SerialPort
public void setFlowControlMode(int flowcontrol)
setFlowControlMode
in class SerialPort
flowcontrol
- FLOWCONTROL_NONE is defaultSerialPort.FLOWCONTROL_NONE
public int getFlowControlMode()
getFlowControlMode
in class SerialPort
void setflowcontrol(int flowcontrol) throws java.io.IOException
java.io.IOException
public void enableReceiveFraming(int f) throws UnsupportedCommOperationException
enableReceiveFraming
in class CommPort
f
- framming
UnsupportedCommOperationException
public void disableReceiveFraming()
disableReceiveFraming
in class CommPort
public boolean isReceiveFramingEnabled()
isReceiveFramingEnabled
in class CommPort
public int getReceiveFramingByte()
getReceiveFramingByte
in class CommPort
public int NativegetReceiveTimeout()
private boolean NativeisReceiveTimeoutEnabled()
private void NativeEnableReceiveTimeoutThreshold(int time, int threshold, int InputBuffer)
time
- threshold
- InputBuffer
- public void disableReceiveTimeout()
disableReceiveTimeout
in class CommPort
public void enableReceiveTimeout(int time)
enableReceiveTimeout
in class CommPort
time
- public boolean isReceiveTimeoutEnabled()
isReceiveTimeoutEnabled
in class CommPort
public int getReceiveTimeout()
getReceiveTimeout
in class CommPort
public void enableReceiveThreshold(int thresh)
enableReceiveThreshold
in class CommPort
thresh
- thresholdpublic void disableReceiveThreshold()
disableReceiveThreshold
in class CommPort
public int getReceiveThreshold()
getReceiveThreshold
in class CommPort
public boolean isReceiveThresholdEnabled()
isReceiveThresholdEnabled
in class CommPort
public void setInputBufferSize(int size)
setInputBufferSize
in class CommPort
size
- public int getInputBufferSize()
getInputBufferSize
in class CommPort
public void setOutputBufferSize(int size)
setOutputBufferSize
in class CommPort
size
- public int getOutputBufferSize()
getOutputBufferSize
in class CommPort
public boolean isDTR()
isDTR
in class SerialPort
public void setDTR(boolean state)
setDTR
in class SerialPort
state
- public void setRTS(boolean state)
setRTS
in class SerialPort
state
- private void setDSR(boolean state)
public boolean isCTS()
isCTS
in class SerialPort
public boolean isDSR()
isDSR
in class SerialPort
public boolean isCD()
isCD
in class SerialPort
public boolean isRI()
isRI
in class SerialPort
public boolean isRTS()
isRTS
in class SerialPort
public void sendBreak(int duration)
sendBreak
in class SerialPort
duration
- protected void writeByte(int b, boolean i) throws java.io.IOException
java.io.IOException
protected void writeArray(byte[] b, int off, int len, boolean i) throws java.io.IOException
java.io.IOException
protected boolean nativeDrain(boolean i) throws java.io.IOException
java.io.IOException
protected int nativeavailable() throws java.io.IOException
java.io.IOException
protected int readByte() throws java.io.IOException
java.io.IOException
protected int readArray(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
protected int readTerminatedArray(byte[] b, int off, int len, byte[] t) throws java.io.IOException
java.io.IOException
void eventLoop()
private void interruptEventLoop()
public boolean checkMonitorThread()
public boolean sendEvent(int event, boolean state)
event
- state
-
public void addEventListener(SerialPortEventListener lsnr) throws java.util.TooManyListenersException
addEventListener
in class SerialPort
java.util.TooManyListenersException
public void removeEventListener()
removeEventListener
in class SerialPort
protected void waitForTheNativeCodeSilly()
private void nativeSetEventFlag(int fd, int event, boolean flag)
public void notifyOnDataAvailable(boolean enable)
notifyOnDataAvailable
in class SerialPort
public void notifyOnOutputEmpty(boolean enable)
notifyOnOutputEmpty
in class SerialPort
enable
- public void notifyOnCTS(boolean enable)
notifyOnCTS
in class SerialPort
enable
- public void notifyOnDSR(boolean enable)
notifyOnDSR
in class SerialPort
enable
- public void notifyOnRingIndicator(boolean enable)
notifyOnRingIndicator
in class SerialPort
enable
- public void notifyOnCarrierDetect(boolean enable)
notifyOnCarrierDetect
in class SerialPort
enable
- public void notifyOnOverrunError(boolean enable)
notifyOnOverrunError
in class SerialPort
enable
- public void notifyOnParityError(boolean enable)
notifyOnParityError
in class SerialPort
enable
- public void notifyOnFramingError(boolean enable)
notifyOnFramingError
in class SerialPort
enable
- public void notifyOnBreakInterrupt(boolean enable)
notifyOnBreakInterrupt
in class SerialPort
enable
- private void nativeClose(java.lang.String name)
public void close()
close
in class CommPort
protected void finalize()
public void setRcvFifoTrigger(int trigger)
private static void nativeStaticSetSerialPortParams(java.lang.String f, int b, int d, int s, int p) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticSetDSR(java.lang.String port, boolean flag) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticSetDTR(java.lang.String port, boolean flag) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticSetRTS(java.lang.String port, boolean flag) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticIsDSR(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticIsDTR(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticIsRTS(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticIsCTS(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticIsCD(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static boolean nativeStaticIsRI(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static int nativeStaticGetBaudRate(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static int nativeStaticGetDataBits(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static int nativeStaticGetParity(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private static int nativeStaticGetStopBits(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private byte nativeGetParityErrorChar() throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeSetParityErrorChar(byte b) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private byte nativeGetEndOfInputChar() throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeSetEndOfInputChar(byte b) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeSetUartType(java.lang.String type, boolean test) throws UnsupportedCommOperationException
UnsupportedCommOperationException
java.lang.String nativeGetUartType() throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeSetBaudBase(int BaudBase) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private int nativeGetBaudBase() throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeSetDivisor(int Divisor) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private int nativeGetDivisor() throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeSetLowLatency() throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeGetLowLatency() throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeSetCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException
UnsupportedCommOperationException
private boolean nativeGetCallOutHangup() throws UnsupportedCommOperationException
UnsupportedCommOperationException
public static int staticGetBaudRate(java.lang.String port) throws UnsupportedCommOperationException
port
- the name of the port thats been preopened
UnsupportedCommOperationException;
- This will not behave as expected with custom speeds
UnsupportedCommOperationException
public static int staticGetDataBits(java.lang.String port) throws UnsupportedCommOperationException
port
- the name of the port thats been preopened
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static int staticGetParity(java.lang.String port) throws UnsupportedCommOperationException
port
- the name of the port thats been preopened
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static int staticGetStopBits(java.lang.String port) throws UnsupportedCommOperationException
port
- the name of the port thats been preopened
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static void staticSetSerialPortParams(java.lang.String f, int b, int d, int s, int p) throws UnsupportedCommOperationException
f
- filenameb
- baudrated
- databitss
- stopbitsp
- parity
UnsupportedCommOperationException
UnsupportedCommOperationException
public static boolean staticSetDSR(java.lang.String port, boolean flag) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticSetDTR(java.lang.String port, boolean flag) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticSetRTS(java.lang.String port, boolean flag) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticIsRTS(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticIsCD(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticIsCTS(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticIsDSR(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticIsDTR(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public static boolean staticIsRI(java.lang.String port) throws UnsupportedCommOperationException
UnsupportedCommOperationException;
UnsupportedCommOperationException
public byte getParityErrorChar() throws UnsupportedCommOperationException
getParityErrorChar
in class SerialPort
UnsupportedCommOperationException;
- Anyone know how to do this in Unix?
UnsupportedCommOperationException
public boolean setParityErrorChar(byte b) throws UnsupportedCommOperationException
setParityErrorChar
in class SerialPort
b
- Parity Error Character
UnsupportedCommOperationException;
- Anyone know how to do this in Unix?
UnsupportedCommOperationException
public byte getEndOfInputChar() throws UnsupportedCommOperationException
getEndOfInputChar
in class SerialPort
UnsupportedCommOperationException;
- Anyone know how to do this in Unix?
UnsupportedCommOperationException
public boolean setEndOfInputChar(byte b) throws UnsupportedCommOperationException
setEndOfInputChar
in class SerialPort
b
- End Of Input Character
UnsupportedCommOperationException;
UnsupportedCommOperationException
public boolean setUARTType(java.lang.String type, boolean test) throws UnsupportedCommOperationException
setUARTType
in class SerialPort
type
- String representation of the UART type which mayb
be "none", "8250", "16450", "16550", "16550A", "16650", "16550V2"
or "16750".test
- boolean flag to determin if the UART should be tested.
UnsupportedCommOperationException;
UnsupportedCommOperationException
public java.lang.String getUARTType() throws UnsupportedCommOperationException
getUARTType
in class SerialPort
UnsupportedCommOperationException;
UnsupportedCommOperationException
public boolean setBaudBase(int BaudBase) throws UnsupportedCommOperationException
setBaudBase
in class SerialPort
UnsupportedCommOperationException
public int getBaudBase() throws UnsupportedCommOperationException
getBaudBase
in class SerialPort
UnsupportedCommOperationException
public boolean setDivisor(int Divisor) throws UnsupportedCommOperationException
setDivisor
in class SerialPort
UnsupportedCommOperationException
public int getDivisor() throws UnsupportedCommOperationException
getDivisor
in class SerialPort
UnsupportedCommOperationException
public boolean setLowLatency() throws UnsupportedCommOperationException
setLowLatency
in class SerialPort
UnsupportedCommOperationException
public boolean getLowLatency() throws UnsupportedCommOperationException
getLowLatency
in class SerialPort
UnsupportedCommOperationException
public boolean setCallOutHangup(boolean NoHup) throws UnsupportedCommOperationException
setCallOutHangup
in class SerialPort
UnsupportedCommOperationException
public boolean getCallOutHangup() throws UnsupportedCommOperationException
getCallOutHangup
in class SerialPort
UnsupportedCommOperationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |