public class SerialPortConfiguration extends Object
Constructor and Description |
---|
SerialPortConfiguration()
Creates an instance of the serial port configuration with the following
configuration: Baud rate = auto, Data bits = 8, Flow control = none,
Parity = none, Stop bits = 1.
|
SerialPortConfiguration(int baudRate)
Creates an instance of the serial port configuration with the specified
Baud rate and the following configuration: Data bits = 8, Flow control =
none, Parity = none, Stop bits = 1.
|
SerialPortConfiguration(int baudRate,
int dataBits,
int flowControl,
int parity,
int stopBits)
Creates an instance of the serial port configuration with the specified
Baud rate, Data bits, Flow control, Parity and Stop bits.
|
Modifier and Type | Method and Description |
---|---|
int |
getBaudRate()
Returns the baud rate.
|
int |
getDataBits()
Returns the data bits.
|
int |
getFlowControl()
Returns the flow control.
|
int |
getParity()
Returns the parity.
|
int |
getStopBits()
Returns the stop bits.
|
public SerialPortConfiguration(int baudRate, int dataBits, int flowControl, int parity, int stopBits)
baudRate
- Baud rate.dataBits
- Data bits.flowControl
- Flow control.parity
- Parity.stopBits
- Stop bits.public SerialPortConfiguration(int baudRate)
baudRate
- Baud rate.public SerialPortConfiguration()
public int getBaudRate()
public int getDataBits()
public int getFlowControl()
public int getParity()
public int getStopBits()
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0