public class ScaleSettings
extends java.lang.Object
Constructor and Description |
---|
ScaleSettings(int baudRate,
int dataBits,
int stopBits,
int parity,
boolean cts,
boolean dtr)
Define scale serial port settings and keep
|
Modifier and Type | Method and Description |
---|---|
int |
getBaudRate() |
int |
getDataBits() |
int |
getParity()
Parity.
|
int |
getStopBits()
Stop Bits.
|
boolean |
isCtsEnabled() |
boolean |
isDtrEnabled() |
public ScaleSettings(int baudRate, int dataBits, int stopBits, int parity, boolean cts, boolean dtr)
baudRate
- Baud rate of the scale serial port.dataBits
- Number of data bits (5 to 8).stopBits
- Number of stop bits (1: 1 bit, 2: 2 bits, 3: 1.5 bits).parity
- Type of parity (0: none, 1: odd, 2: even, 3: mark, 4: space).cts
- True to use the CTS line.dtr
- True to use the DTR line.public int getBaudRate()
public int getDataBits()
public int getStopBits()
public int getParity()
public boolean isCtsEnabled()
public boolean isDtrEnabled()