Skip to main content

open_port

Function open_port 

Source
pub fn open_port(
    transport: SharedTransport,
    port_index: usize,
) -> Result<SerialPortHandle>
Expand description

Open port port_index (0 for single-port chips like CH340).

Claims / initializes the matching vendor driver on transport. The reader is not started here — call crate::SerialPortHandle::start_reader after line config / DTR.