esp_idf_hal::usb_serial

Type Alias UsbSerialConfig

Source
pub type UsbSerialConfig = Config;
Expand description

A type alias for the USB Serial driver configuration

Aliased Type§

struct UsbSerialConfig {
    pub tx_buffer_size: usize,
    pub rx_buffer_size: usize,
}

Fields§

§tx_buffer_size: usize§rx_buffer_size: usize

Implementations

Source§

impl Config

Source

pub const fn new() -> Self

Create a new configuration with default values

Source

pub fn tx_buffer_size(self, tx_buffer_size: usize) -> Self

Set the transmit buffer size

Source

pub fn rx_buffer_size(self, rx_buffer_size: usize) -> Self

Set the receive buffer size

Trait Implementations

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Config

Source§

fn default() -> Self

Returns the “default value” for a type. Read more