pub struct SerialPortProfile {
pub dlci: u8,
pub connected: bool,
pub baud_rate: u32,
pub data_bits: u8,
pub stop_bits: u8,
pub parity: u8,
pub read_buf: [u8; 256],
pub read_len: usize,
}Expand description
Serial Port Profile: wraps an RFCOMM channel for serial communication
Fields§
§dlci: u8RFCOMM DLCI for this serial port
connected: boolWhether the serial port is connected
baud_rate: u32Baud rate (informational, not enforced over Bluetooth)
data_bits: u8Data bits (5-8)
stop_bits: u8Stop bits (1 or 2)
parity: u8Parity: 0=none, 1=odd, 2=even
read_buf: [u8; 256]Read buffer
read_len: usizeNumber of valid bytes in read buffer