Trait AsyncMinitelBaudrateControl

Source
pub trait AsyncMinitelBaudrateControl {
    // Required methods
    fn set_baudrate(&mut self, baudrate: Baudrate) -> Result<()>;
    fn read_byte_blocking(&mut self) -> Result<u8>;
}
Expand description

Ability to change the baudrate of the serial port

Required Methods§

Source

fn set_baudrate(&mut self, baudrate: Baudrate) -> Result<()>

Change the baudrate of the serial port

Source

fn read_byte_blocking(&mut self) -> Result<u8>

Read, non async

Implementors§

Source§

impl<'a, T> AsyncMinitelBaudrateControl for Port<'a, T>
where T: BorrowMut<UartDriver<'a>>,

Available on crate feature espdoc and (crate features esp or espdoc) only.