|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectikayaki.squid.SerialParameters
public class SerialParameters
Contains all the serial communication parameters which SerialIO uses when opening the port.
Field Summary | |
---|---|
private int |
baudRate
The baud rate. |
private int |
databits
The number of data bits. |
private int |
flowControlIn
Type of flow control for receiving. |
private int |
flowControlOut
Type of flow control for sending. |
private int |
parity
The type of parity. |
private String |
portName
The name of the serial port. |
private int |
stopbits
The number of stop bits. |
Constructor Summary | |
---|---|
SerialParameters(String portName)
Creates a SerialParameter object with default Serial settings for serial port communication. |
|
SerialParameters(String portName,
int baudRate,
int flowControlIn,
int flowControlOut,
int databits,
int stopbits,
int parity)
Creates a SerialParameter object containing settings for serial port communication. |
Method Summary | |
---|---|
int |
getBaudRate()
|
int |
getDatabits()
|
int |
getFlowControlIn()
|
int |
getFlowControlOut()
|
int |
getParity()
|
String |
getPortName()
|
int |
getStopbits()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String portName
private int baudRate
private int flowControlIn
private int flowControlOut
private int databits
private int stopbits
private int parity
Constructor Detail |
---|
public SerialParameters(String portName, int baudRate, int flowControlIn, int flowControlOut, int databits, int stopbits, int parity)
portName
- The name of the serial port.baudRate
- The baud rate.flowControlIn
- Type of flow control for receiving.flowControlOut
- Type of flow control for sending.databits
- The number of data bits.stopbits
- The number of stop bits.parity
- The type of parity.public SerialParameters(String portName)
portName
- The name of the serial port.Method Detail |
---|
public String getPortName()
public int getBaudRate()
public int getFlowControlIn()
public int getFlowControlOut()
public int getDatabits()
public int getStopbits()
public int getParity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |