Serial transport for the bootloader: a Circuits.UART opened with SLIP framing,
so reads yield whole decoded frames.
Summary
Functions
Drops pending input, including frames Circuits.UART has already queued.
Reads the next decoded frame.
USB vendor and product id of port, if it is a USB device.
Writes one packet; the framing adds the SLIP delimiters and escapes.
Functions
@spec close(pid()) :: :ok
@spec flush(pid()) :: :ok
Drops pending input, including frames Circuits.UART has already queued.
@spec open(String.t(), pos_integer()) :: {:ok, pid()} | {:error, term()}
@spec read_frame(pid(), non_neg_integer()) :: {:ok, term()} | {:error, term()}
Reads the next decoded frame.
@spec set_baud(pid(), pos_integer()) :: :ok | {:error, term()}
@spec usb_ids(String.t(), map()) :: {non_neg_integer(), non_neg_integer()} | nil
USB vendor and product id of port, if it is a USB device.
Writes one packet; the framing adds the SLIP delimiters and escapes.