|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.comm.CommPort
|
+--javax.comm.SerialPort
Serial port
| Field Summary | |
static int |
DATABITS_5
5 data bits |
static int |
DATABITS_6
6 data bits |
static int |
DATABITS_7
7 data bits |
static int |
DATABITS_8
8 data bits |
static int |
FLOWCONTROL_NONE
No flow control |
static int |
FLOWCONTROL_RTSCTS_IN
RTS/CTS input flow control |
static int |
FLOWCONTROL_RTSCTS_OUT
RTS/CTS output flow control |
static int |
FLOWCONTROL_XONXOFF_IN
XON/XOFF input flow control |
static int |
FLOWCONTROL_XONXOFF_OUT
XON/XOFF output flow control |
static int |
PARITY_EVEN
Even parity bit |
static int |
PARITY_MARK
Mark parity |
static int |
PARITY_NONE
No parity bit |
static int |
PARITY_ODD
Odd parity bit |
static int |
PARITY_SPACE
Space parity |
static int |
STOPBITS_1
1 stop bit |
static int |
STOPBITS_1_5
1.5 stop bits |
static int |
STOPBITS_2
2 stop bits |
| Fields inherited from class javax.comm.CommPort |
name |
| Constructor Summary | |
SerialPort()
Create a new serial port |
|
| Method Summary | |
abstract void |
addEventListener(SerialPortEventListener listener)
Add an event listener |
abstract int |
getBaudRate()
Get the baud rate |
abstract int |
getDataBits()
Get the data bits |
abstract int |
getFlowControlMode()
Get the flow control mode |
abstract int |
getParity()
Get the parity |
abstract int |
getStopBits()
Get the stop bits |
abstract boolean |
isCD()
Gets the state of CD |
abstract boolean |
isCTS()
Gets the state of CTS |
abstract boolean |
isDSR()
Gets the state of DSR |
abstract boolean |
isDTR()
Gets the state of DTR |
abstract boolean |
isRI()
Gets the state of RI |
abstract boolean |
isRTS()
Gets the state of RTS |
abstract void |
notifyOnBreakInterrupt(boolean enable)
Set notification on break interrupt |
abstract void |
notifyOnCarrierDetect(boolean enable)
Set notification on carrier detect |
abstract void |
notifyOnCTS(boolean enable)
Set notification on CTS |
abstract void |
notifyOnDataAvailable(boolean enable)
Set notification on data available |
abstract void |
notifyOnDSR(boolean enable)
Set notification on DSR |
abstract void |
notifyOnFramingError(boolean enable)
Set notification on framing error |
abstract void |
notifyOnOutputEmpty(boolean enable)
Set notification on output empty |
abstract void |
notifyOnOverrunError(boolean enable)
Set notification on overrun error |
abstract void |
notifyOnParityError(boolean enable)
Set notification on parity error |
abstract void |
notifyOnRingIndicator(boolean enable)
Set notification on ring indicator |
abstract void |
removeEventListener(SerialPortEventListener listener)
Remove an event listener |
abstract void |
sendBreak(int millis)
Send a break |
abstract void |
setDTR(boolean dtr)
Set DTR |
abstract void |
setFlowControlMode(int mode)
Set the flow control mode |
abstract void |
setRTS(boolean rts)
Set RTS |
abstract void |
setSerialPortParams(int baudrate,
int dataBits,
int stopBits,
int parity)
Set the serial port parameters |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DATABITS_5
public static final int DATABITS_6
public static final int DATABITS_7
public static final int DATABITS_8
public static final int STOPBITS_1
public static final int STOPBITS_2
public static final int STOPBITS_1_5
public static final int PARITY_NONE
public static final int PARITY_ODD
public static final int PARITY_EVEN
public static final int PARITY_MARK
public static final int PARITY_SPACE
public static final int FLOWCONTROL_NONE
public static final int FLOWCONTROL_RTSCTS_IN
public static final int FLOWCONTROL_RTSCTS_OUT
public static final int FLOWCONTROL_XONXOFF_IN
public static final int FLOWCONTROL_XONXOFF_OUT
| Constructor Detail |
public SerialPort()
| Method Detail |
public abstract int getBaudRate()
public abstract int getDataBits()
public abstract int getStopBits()
public abstract int getParity()
public abstract void sendBreak(int millis)
millis - The duration in milliseconds
public abstract void setFlowControlMode(int mode)
throws UnsupportedCommOperationException
mode - The flow control mode
UnsupportedCommOperationException - if the operation failspublic abstract int getFlowControlMode()
public abstract void setSerialPortParams(int baudrate,
int dataBits,
int stopBits,
int parity)
throws UnsupportedCommOperationException
baudrate - The baud ratedataBits - The data bitsstopBits - The stop bitsparity - The parity
UnsupportedCommOperationException - if the operation failspublic abstract void setDTR(boolean dtr)
dtr - True to set dtr, false to clear itpublic abstract boolean isDTR()
public abstract void setRTS(boolean rts)
rts - True to set RTS, false to clear itpublic abstract boolean isRTS()
public abstract boolean isCTS()
public abstract boolean isDSR()
public abstract boolean isRI()
public abstract boolean isCD()
public abstract void addEventListener(SerialPortEventListener listener)
listener - The event listenerpublic abstract void removeEventListener(SerialPortEventListener listener)
listener - The event listener to removepublic abstract void notifyOnDataAvailable(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnOutputEmpty(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnCTS(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnDSR(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnRingIndicator(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnCarrierDetect(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnOverrunError(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnParityError(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnFramingError(boolean enable)
enable - True to enable, false to disablepublic abstract void notifyOnBreakInterrupt(boolean enable)
enable - True to enable, false to disable
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||