|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgnu.io.CommPort
gnu.io.RS485Port
gnu.io.RS485
final class RS485
入れ子のクラスの概要 | |
---|---|
(package private) class |
RS485.MonitorThread
|
(package private) class |
RS485.RS485InputStream
Inner class for RS485InputStream |
(package private) class |
RS485.RS485OutputStream
Inner class for RS485OutputStream |
フィールドの概要 | |
---|---|
private int |
dataAvailable
|
private int |
dataBits
Data bits port parameter |
(package private) static boolean |
dsrFlag
DSR flag |
private int |
fd
File descriptor |
private int |
flowmode
Flow control |
private RS485.RS485InputStream |
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... |
private RS485.MonitorThread |
monThread
Thread to monitor data |
private RS485.RS485OutputStream |
out
Output stream |
private int |
OutputBuffer
|
private int |
parity
Parity port parameter |
private int |
speed
Line speed in bits-per-second |
private RS485PortEventListener |
SPEventListener
RS485 Port Event listener |
private int |
stopBits
Stop bits port parameter |
private int |
threshold
Receive threshold control |
private int |
timeout
Receive timeout control |
クラス gnu.io.CommPort から継承されたフィールド |
---|
name |
コンストラクタの概要 | |
---|---|
RS485(java.lang.String name)
Open the named port |
メソッドの概要 | |
---|---|
void |
addEventListener(RS485PortEventListener lsnr)
Add an event listener |
void |
close()
|
void |
disableReceiveFraming()
|
void |
disableReceiveThreshold()
|
void |
disableReceiveTimeout()
|
private void |
drain()
|
void |
enableReceiveFraming(int f)
Receive framing control |
void |
enableReceiveThreshold(int thresh)
|
void |
enableReceiveTimeout(int time)
|
(package private) void |
eventLoop()
Process RS485PortEvents |
protected void |
finalize()
Finalize the port |
int |
getBaudRate()
|
int |
getDataBits()
|
int |
getFlowControlMode()
|
int |
getInputBufferSize()
|
java.io.InputStream |
getInputStream()
|
int |
getOutputBufferSize()
|
java.io.OutputStream |
getOutputStream()
|
int |
getParity()
|
int |
getReceiveFramingByte()
|
int |
getReceiveThreshold()
|
int |
getReceiveTimeout()
|
int |
getStopBits()
|
private static void |
Initialize()
Initialize the native library |
boolean |
isCD()
|
boolean |
isCTS()
|
boolean |
isDSR()
|
boolean |
isDTR()
Line status methods |
boolean |
isReceiveFramingEnabled()
|
boolean |
isReceiveThresholdEnabled()
|
boolean |
isReceiveTimeoutEnabled()
|
boolean |
isRI()
|
boolean |
isRTS()
|
private int |
nativeavailable()
RS485 read methods |
private void |
nativeClose()
Close the port |
void |
NativeEnableReceiveTimeoutThreshold(int time,
int threshold,
int InputBuffer)
|
int |
NativegetReceiveTimeout()
|
boolean |
NativeisReceiveTimeoutEnabled()
|
private void |
nativeSetRS485PortParams(int speed,
int dataBits,
int stopBits,
int parity)
Set the native RS485 port parameters |
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)
|
private int |
readArray(byte[] b,
int off,
int len)
|
private int |
readByte()
|
void |
removeEventListener()
Remove the RS485 port event listener |
void |
sendBreak(int duration)
Write to the port |
void |
sendEvent(int event,
boolean state)
|
private void |
setDSR(boolean state)
|
void |
setDTR(boolean state)
|
(package private) void |
setflowcontrol(int flowcontrol)
|
void |
setFlowControlMode(int flowcontrol)
|
void |
setInputBufferSize(int size)
|
void |
setOutputBufferSize(int size)
|
void |
setRS485PortParams(int b,
int d,
int s,
int p)
Set the RS485Port parameters |
void |
setRTS(boolean state)
|
private void |
writeArray(byte[] b,
int off,
int len)
|
private void |
writeByte(int b)
|
クラス gnu.io.CommPort から継承されたメソッド |
---|
getName, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
private int fd
static boolean dsrFlag
private final RS485.RS485OutputStream out
private final RS485.RS485InputStream 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 RS485PortEventListener SPEventListener
private RS485.MonitorThread monThread
private int dataAvailable
コンストラクタの詳細 |
---|
public RS485(java.lang.String name) throws PortInUseException
PortInUseException
メソッドの詳細 |
---|
private static void Initialize()
private int open(java.lang.String name) throws PortInUseException
PortInUseException
public java.io.OutputStream getOutputStream()
CommPort
内の getOutputStream
public java.io.InputStream getInputStream()
CommPort
内の getInputStream
public void setRS485PortParams(int b, int d, int s, int p) throws UnsupportedCommOperationException
RS485Port
内の setRS485PortParams
UnsupportedCommOperationException
private void nativeSetRS485PortParams(int speed, int dataBits, int stopBits, int parity) throws UnsupportedCommOperationException
UnsupportedCommOperationException
public int getBaudRate()
RS485Port
内の getBaudRate
public int getDataBits()
RS485Port
内の getDataBits
public int getStopBits()
RS485Port
内の getStopBits
public int getParity()
RS485Port
内の getParity
public void setFlowControlMode(int flowcontrol)
RS485Port
内の setFlowControlMode
public int getFlowControlMode()
RS485Port
内の getFlowControlMode
void setflowcontrol(int flowcontrol) throws java.io.IOException
java.io.IOException
public void enableReceiveFraming(int f) throws UnsupportedCommOperationException
CommPort
内の enableReceiveFraming
UnsupportedCommOperationException
public void disableReceiveFraming()
CommPort
内の disableReceiveFraming
public boolean isReceiveFramingEnabled()
CommPort
内の isReceiveFramingEnabled
public int getReceiveFramingByte()
CommPort
内の getReceiveFramingByte
public int NativegetReceiveTimeout()
public boolean NativeisReceiveTimeoutEnabled()
public void NativeEnableReceiveTimeoutThreshold(int time, int threshold, int InputBuffer)
public void disableReceiveTimeout()
CommPort
内の disableReceiveTimeout
public void enableReceiveTimeout(int time)
CommPort
内の enableReceiveTimeout
public boolean isReceiveTimeoutEnabled()
CommPort
内の isReceiveTimeoutEnabled
public int getReceiveTimeout()
CommPort
内の getReceiveTimeout
public void enableReceiveThreshold(int thresh)
CommPort
内の enableReceiveThreshold
public void disableReceiveThreshold()
CommPort
内の disableReceiveThreshold
public int getReceiveThreshold()
CommPort
内の getReceiveThreshold
public boolean isReceiveThresholdEnabled()
CommPort
内の isReceiveThresholdEnabled
public void setInputBufferSize(int size)
CommPort
内の setInputBufferSize
public int getInputBufferSize()
CommPort
内の getInputBufferSize
public void setOutputBufferSize(int size)
CommPort
内の setOutputBufferSize
public int getOutputBufferSize()
CommPort
内の getOutputBufferSize
public boolean isDTR()
RS485Port
内の isDTR
public void setDTR(boolean state)
RS485Port
内の setDTR
public void setRTS(boolean state)
RS485Port
内の setRTS
private void setDSR(boolean state)
public boolean isCTS()
RS485Port
内の isCTS
public boolean isDSR()
RS485Port
内の isDSR
public boolean isCD()
RS485Port
内の isCD
public boolean isRI()
RS485Port
内の isRI
public boolean isRTS()
RS485Port
内の isRTS
public void sendBreak(int duration)
RS485Port
内の sendBreak
private void writeByte(int b) throws java.io.IOException
java.io.IOException
private void writeArray(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
private void drain() throws java.io.IOException
java.io.IOException
private int nativeavailable() throws java.io.IOException
java.io.IOException
private int readByte() throws java.io.IOException
java.io.IOException
private int readArray(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
void eventLoop()
public void sendEvent(int event, boolean state)
public void addEventListener(RS485PortEventListener lsnr) throws java.util.TooManyListenersException
RS485Port
内の addEventListener
java.util.TooManyListenersException
public void removeEventListener()
RS485Port
内の removeEventListener
public void notifyOnDataAvailable(boolean enable)
RS485Port
内の notifyOnDataAvailable
public void notifyOnOutputEmpty(boolean enable)
RS485Port
内の notifyOnOutputEmpty
public void notifyOnCTS(boolean enable)
RS485Port
内の notifyOnCTS
public void notifyOnDSR(boolean enable)
RS485Port
内の notifyOnDSR
public void notifyOnRingIndicator(boolean enable)
RS485Port
内の notifyOnRingIndicator
public void notifyOnCarrierDetect(boolean enable)
RS485Port
内の notifyOnCarrierDetect
public void notifyOnOverrunError(boolean enable)
RS485Port
内の notifyOnOverrunError
public void notifyOnParityError(boolean enable)
RS485Port
内の notifyOnParityError
public void notifyOnFramingError(boolean enable)
RS485Port
内の notifyOnFramingError
public void notifyOnBreakInterrupt(boolean enable)
RS485Port
内の notifyOnBreakInterrupt
private void nativeClose()
public void close()
CommPort
内の close
protected void finalize()
java.lang.Object
内の finalize
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |