Top Description Fields Constructors Methods
org.osgi.service.serial

public Class SerialPortConfiguration

extends Object
Class Inheritance

An object represents the Serial port configuration.
Author
$Id: d80fb6b357111b60570a09b37f8f907748f9e410 $

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
SerialPortConfiguration(int
Baud rate.
baudRate
,
int
Data bits.
dataBits
,
int
Flow control.
flowControl
,
int
Parity.
parity
,
int
Stop bits.
stopBits
)

Creates an instance of the serial port configuration with the specified Baud rate, Data bits, Flow control, Parity and Stop bits.

public
SerialPortConfiguration(int
Baud rate.
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.

public
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.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The baud rate.
getBaudRate
()

Returns the baud rate.

public int

Returns:

The data bits.
getDataBits
()

Returns the data bits.

public int

Returns:

The flow control.
getFlowControl
()

Returns the flow control.

public int

Returns:

The parity.
getParity
()

Returns the parity.

public int

Returns:

The stop bits.
getStopBits
()

Returns the stop bits.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baudRateback to summary
private final int baudRate
dataBitsback to summary
private final int dataBits
flowControlback to summary
private final int flowControl
parityback to summary
private final int parity
stopBitsback to summary
private final int stopBits

Constructor Detail

SerialPortConfigurationback to summary
public 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.

Parameters
baudRate:int

Baud rate.

dataBits:int

Data bits.

flowControl:int

Flow control.

parity:int

Parity.

stopBits:int

Stop bits.

SerialPortConfigurationback to summary
public 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.

Parameters
baudRate:int

Baud rate.

SerialPortConfigurationback to summary
public 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.

Method Detail

getBaudRateback to summary
public int getBaudRate()

Returns the baud rate.

Returns:int

The baud rate.

getDataBitsback to summary
public int getDataBits()

Returns the data bits.

Returns:int

The data bits.

getFlowControlback to summary
public int getFlowControl()

Returns the flow control.

Returns:int

The flow control.

getParityback to summary
public int getParity()

Returns the parity.

Returns:int

The parity.

getStopBitsback to summary
public int getStopBits()

Returns the stop bits.

Returns:int

The stop bits.