Skip to main content

Module serialport

Module serialport 

Source
Available on crate feature serial only.
Expand description

Convenience integration with the serialport crate.

serialport::SerialPort already implements std::io::Read + std::io::Write, so the blocking adapter works on it directly. This module provides a tiny open helper that configures sensible defaults for talking to Marlin in binary mode.

Functionsยง

builder
Return a SerialPortBuilder preconfigured with the same defaults as open, but unopened, so the caller can apply further tweaks before calling .open().
open
Open a serial port with defaults suitable for Marlin BFT: