BaudRate
variants with numeric suffixes, e.g., Baud9600
, indicate standard baud ratesthat are widely-supported on many systems. While non-standard baud rates can be set withBaudOther
, their behavior is system-dependent. Some systems may not support arbitrary baudrates. Using the standard baud rates is more likely to result in portable applications.Baud110
Baud300
Baud600
Baud1200
Baud2400
Baud4800
Baud9600
Baud19200
Baud38400
Baud57600
Baud115200
BaudOther(usize)
BaudOther
can be used to set non-standard baud rates by setting its member to be thedesired baud rate.impl BaudRate
[src]fn from_speed(speed: usize) -> BaudRate
BaudRate
for a particular speed.BaudRate
variant from an integer containing thedesired baud rate.fn speed(&self) -> usize
impl Debug for BaudRate
[src]fn fmt(&self, __arg_0: &mut Formatter) -> Result
impl Copy for BaudRate
[src]impl Clone for BaudRate
[src]fn clone(&self) -> BaudRate
fn clone_from(&mut self, source: &Self)
impl PartialEq for BaudRate
[src]fn eq(&self, __arg_0: &BaudRate) -> bool
self
and other
values to be equal, and is used by . Read morefn ne(&self, __arg_0: &BaudRate) -> bool
impl Eq for BaudRate
[src]PacketLength
PacketVersion
ServiceMask
Reserved1
MaxTxQueue
MaxRxQueue
MaxBaud
Value | Description |
---|---|
SERIAL_BAUD_075 | 75 bps |
SERIAL_BAUD_110 | 110 bps |
SERIAL_BAUD_134_5 | 134.5 bps |
SERIAL_BAUD_150 | 150 bps |
SERIAL_BAUD_300 | 300 bps |
SERIAL_BAUD_600 | 600 bps |
SERIAL_BAUD_1200 | 1,200 bps |
SERIAL_BAUD_1800 | 1,800 bps |
SERIAL_BAUD_2400 | 2,400 bps |
SERIAL_BAUD_4800 | 4,800 bps |
SERIAL_BAUD_7200 | 7,200 bps |
SERIAL_BAUD_9600 | 9,600 bps |
SERIAL_BAUD_14400 | 14,400 bps |
SERIAL_BAUD_19200 | 19,200 bps |
SERIAL_BAUD_38400 | 38,400 bps |
SERIAL_BAUD_56K | 56,000 bps |
SERIAL_BAUD_57600 | 57,600 bps |
SERIAL_BAUD_115200 | 115,200 bps |
SERIAL_BAUD_128K | 128,000 bps |
SERIAL_BAUD_USER | Programmable baud rates are available. |
ProvSubType
Value | Meaning |
---|---|
SERIAL_SP_UNSPECIFIED | Unspecified |
SERIAL_SP_RS232 | RS-232 serial port |
SERIAL_SP_PARALLEL | Parallel port |
SERIAL_SP_RS422 | RS-422 serial port |
SERIAL_SP_RS423 | RS-423 serial port |
SERIAL_SP_RS449 | RS-449 serial port |
SERIAL_SP_MODEM | Modem device |
SERIAL_SP_FAX | FAX device |
SERIAL_SP_SCANNER | Scanner device |
SERIAL_SP_BRIDGE | Unspecified network bridge |
SERIAL_SP_LAT | LAT protocol |
SERIAL_SP_TELNET | TCP/IP TelnetĀ® protocol |
SERIAL_SP_X25 | X.25 standards |
ProvCapabilities
Value | Description |
---|---|
SERIAL_PCF_DTRDSR | DTR (data terminal ready) and DSR (data set ready) are supported. |
SERIAL_PCF_RTSCTS | RTS (request to send) and CTS (clear to send) are supported. |
SERIAL_PCF_CD | CD (carrier detect) is supported. |
SERIAL_PCF_PARITY_CHECK | Parity checking is supported. |
SERIAL_PCF_XONXOFF | XON (transmit on) and XOFF (transmit off) flow control are supported. |
SERIAL_PCF_SETXCHAR | The XON and XOFF characters are settable. |
SERIAL_PCF_TOTALTIMEOUTS | Total-elapsed-time time-outs are supported. |
SERIAL_PCF_INTTIMEOUTS | Interval time-outs are supported. |
SERIAL_PCF_SPECIALCHARS | Special characters are supported. |
SERIAL_PCF_16BITMODE | Special 16-bit mode is supported. |
SettableParams
Value | Description |
---|---|
SERIAL_SP_PARITY | Parity type (even or odd) |
SERIAL_SP_BAUD | Baud rate |
SERIAL_SP_DATABITS | Data bits |
SERIAL_SP_STOPBITS | Stop bits |
SERIAL_SP_HANDSHAKING | Handshaking (flow control) |
SERIAL_SP_PARITY_CHECK | Parity checking |
SERIAL_SP_CARRIER_DETECT | Carrier detect |
SettableBaud
SettableData
Value | Description |
---|---|
SERIAL_DATABITS_5 | 5 data bits |
SERIAL_DATABITS_6 | 6 data bits |
SERIAL_DATABITS_7 | 7 data bits |
SERIAL_DATABITS_8 | 8 data bits |
SERIAL_DATABITS_16 | 16 data bits |
SERIAL_DATABITS_16X | Special wide path through serial hardware lines |
SettableStopParity
Value | Description |
---|---|
SERIAL_STOPBITS_10 | One stop bit. |
SERIAL_STOPBITS_15 | One and a half stop bits. |
SERIAL_STOPBITS_20 | Two stop bits. |
SERIAL_PARITY_NONE | No parity bit is used. |
SERIAL_PARITY_ODD | Odd parity. The parity bit is 1 if the number of 1s in the character value is even. Otherwise, the parity bit is 0. |
SERIAL_PARITY_EVEN | Even parity. The parity bit is 1 if the number of 1s in the character value is odd. Otherwise, the parity bit is 0. |
SERIAL_PARITY_MARK | The parity bit is always set to 1. |
SERIAL_PARITY_SPACE | The parity bit is always set to 0. |
CurrentTxQueue
CurrentRxQueue
ProvSpec1
ProvSpec2
ProvChar
Header | ntddser.h |