|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.io.SerialPortSpecs
SerialPortOptions is a single object that specifies all the currently supported Serial Port options. To open a Serial Port, create one of these objects, setup the
| Field Summary | |
int |
baudRate
The baud rate for communications - defaults to 9600. |
int |
bits
The number of data bits - defaults to 8. |
int |
parity
This should be one of the SerialPort Parity options - e.g. |
String |
portName
The name of the port. |
int |
stopBits
The number of stop bits - defaults to 1. |
| Constructor Summary | |
SerialPortSpecs()
|
|
| Method Summary | |
SerialPort |
connect()
This attempts to create a new Serial Port with the current options. |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, toString |
| Field Detail |
public String portName
public int baudRate
public int stopBits
public int parity
public int bits
| Constructor Detail |
public SerialPortSpecs()
| Method Detail |
public SerialPort connect()
throws IOException
IOException - if the Serial Port could not be opened.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||