Trait r3_support_rp2040::usbstdio::Options
source · pub trait Options: 'static + Send + Sync {
// Provided methods
fn handle_input(_s: &[u8]) { ... }
fn product_name() -> &'static str { ... }
fn should_pause_output() -> bool { ... }
}
Expand description
The options for the USB serial device configured by configure
.
Provided Methods§
sourcefn handle_input(_s: &[u8])
fn handle_input(_s: &[u8])
Handle incoming data.
This method may be called with interrupts disabled. It’s safe to write bytes to the USB serial device here.
sourcefn product_name() -> &'static str
fn product_name() -> &'static str
Get the product name to indicate in the USB device descriptor.
sourcefn should_pause_output() -> bool
fn should_pause_output() -> bool
Return a flag indicating whether the output data should be withheld from transmission.
If this flag is changed to false
, poll
must be called to flush
the data in the transmission buffer.