public final class SerialPortParameters extends Object
Parameters are stored as public variables so that they can be accessed and read from any class.
Modifier and Type | Field and Description |
---|---|
int |
baudrate |
int |
dataBits |
int |
flowControl |
int |
parity |
int |
stopBits |
Constructor and Description |
---|
SerialPortParameters(int baudrate,
int dataBits,
int stopBits,
int parity,
int flowControl)
Class constructor.
|
public final int baudrate
public final int dataBits
public final int flowControl
public final int parity
public final int stopBits
public SerialPortParameters(int baudrate, int dataBits, int stopBits, int parity, int flowControl)
SerialPortParameters
object
with the given parameters.baudrate
- Serial connection baud rate,dataBits
- Serial connection data bits.stopBits
- Serial connection stop bits.parity
- Serial connection parity.flowControl
- Serial connection flow control.IllegalArgumentException
- if baudrate < 0
or
if dataBits < 0
or
if stopBits < 0
or
if parity < 0
or
if flowControl < 0
.© Copyright 2014–2014 Digi International Inc. All rights reserved.