public interface SerialParameters
| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_BAUD_RATE |
A default baud rate.
|
static int |
DEFAULT_DATA_BITS |
The default databits value.
|
static SerialParity |
DEFAULT_PARITY |
The default parity value.
|
static int |
DEFAULT_READ_TIMEOUT |
The default read timeout.
|
static int |
DEFAULT_RS485_AFTER_SEND_DELAY |
The default RS-485 RTS before send delay.
|
static int |
DEFAULT_RS485_BEFORE_SEND_DELAY |
The default RS-485 RTS before send delay.
|
static boolean |
DEFAULT_RS485_RTS_HIGH_ENABLED |
The default RS-485 RTS high enabled value.
|
static SerialStopBits |
DEFAULT_STOP_BITS |
The default stopbits value.
|
static String |
RS485_AFTER_SEND_DELAY_FLAG |
The RS-485 after send delay flag.
|
static String |
RS485_BEFORE_SEND_DELAY_FLAG |
The RS-485 before send delay flag.
|
static String |
RS485_ECHO_FLAG |
The RS-485 echo flag.
|
static String |
RS485_RTS_HIGH_FLAG |
The RS-485 RTS high flag.
|
static String |
RS485_TERMINATION_FLAG |
The RS-485 termination flag.
|
| Modifier and Type | Method | Description |
|---|---|---|
default String |
bitsShortcut() |
Get a "shortcut" bits value in the form DPS for data bits,
parity, and stop bits.
|
default int |
getBaudRate() |
Get the baud rate.
|
default int |
getDataBits() |
Get the data bits.
|
default Set<SerialFlowControl> |
getFlowControl() |
Get the flow control.
|
default SerialParity |
getParity() |
Get the parity.
|
default int |
getReadTimeout() |
Get the read timeout.
|
default int |
getRs485AfterSendDelay() |
Get a time to wait after sending data before disabling transmit mode when
in RS-485 mode.
|
default int |
getRs485BeforeSendDelay() |
Get a time to wait after enabling transmit mode before sending data when
in RS-485 mode.
|
default Boolean |
getRs485ModeEnabled() |
Get the RS-485 mode.
|
default SerialStopBits |
getStopBits() |
Get the stop bits.
|
default int |
getWaitTime() |
Get the wait time.
|
default boolean |
isRs485EchoEnabled() |
Get the RS-485 "echo" mode.
|
default boolean |
isRs485RtsHighEnabled() |
Get the RS-485 RTS "high" mode.
|
default boolean |
isRs485TerminationEnabled() |
Get the RS-485 termination mode.
|
default String |
rs485Flags() |
Get a comma-delimited list of the enabled RS-485 settings, using the
RS485_*_FLAG constants. |
static final int DEFAULT_BAUD_RATE
static final SerialStopBits DEFAULT_STOP_BITS
static final int DEFAULT_DATA_BITS
static final SerialParity DEFAULT_PARITY
static final int DEFAULT_READ_TIMEOUT
static final boolean DEFAULT_RS485_RTS_HIGH_ENABLED
static final int DEFAULT_RS485_BEFORE_SEND_DELAY
static final int DEFAULT_RS485_AFTER_SEND_DELAY
static final String RS485_RTS_HIGH_FLAG
static final String RS485_TERMINATION_FLAG
static final String RS485_ECHO_FLAG
static final String RS485_BEFORE_SEND_DELAY_FLAG
static final String RS485_AFTER_SEND_DELAY_FLAG
default int getBaudRate()
DEFAULT_BAUD_RATEdefault int getDataBits()
DEFAULT_DATA_BITSdefault SerialStopBits getStopBits()
DEFAULT_STOP_BITSdefault SerialParity getParity()
DEFAULT_PARITYdefault Set<SerialFlowControl> getFlowControl()
default int getWaitTime()
default int getReadTimeout()
DEFAULT_READ_TIMEOUTdefault String bitsShortcut()
default Boolean getRs485ModeEnabled()
When this is set to true then the other getRs485*
settings are used. This is only needed for some RS-485 hardware, and the
other getRs485* settings may not be supported across all
platforms.
default boolean isRs485RtsHighEnabled()
This setting is only applicable when getRs485ModeEnabled() is
true.
DEFAULT_RS485_RTS_HIGH_ENABLEDdefault boolean isRs485TerminationEnabled()
This setting is only applicable when getRs485ModeEnabled() is
true.
default boolean isRs485EchoEnabled()
This setting is only applicable when getRs485ModeEnabled() is
true.
default int getRs485BeforeSendDelay()
This setting is only applicable when getRs485ModeEnabled() is
true.
DEFAULT_RS485_BEFORE_SEND_DELAYdefault int getRs485AfterSendDelay()
This setting is only applicable when getRs485ModeEnabled() is
true.
DEFAULT_RS485_AFTER_SEND_DELAYdefault String rs485Flags()
RS485_*_FLAG constants.