Trait esp_ward::_embedded_hal_serial_Read

pub trait _embedded_hal_serial_Read<Word> {
    type Error;

    // Required method
    fn read(&mut self) -> Result<Word, Error<Self::Error>>;
}
Expand description

Read half of a serial interface

Some serial interfaces support different data sizes (8 bits, 9 bits, etc.); This can be encoded in this trait via the Word type parameter.

Required Associated Types§

type Error

Read error

Required Methods§

fn read(&mut self) -> Result<Word, Error<Self::Error>>

Reads a single word from the serial interface

Implementations on Foreign Types§

§

impl Read<u8> for UsbSerialJtag<'_>

§

type Error = Infallible

§

fn read(&mut self) -> Result<u8, Error<<UsbSerialJtag<'_> as Read<u8>>::Error>>

§

impl Read<u8> for UsbSerialJtagRx<'_>

§

type Error = Infallible

§

fn read( &mut self ) -> Result<u8, Error<<UsbSerialJtagRx<'_> as Read<u8>>::Error>>

§

impl<T> Read<u8> for Uart<'_, T>
where T: Instance,

§

type Error = Error

§

fn read(&mut self) -> Result<u8, Error<<Uart<'_, T> as Read<u8>>::Error>>

§

impl<T> Read<u8> for UartRx<'_, T>
where T: Instance,

§

type Error = Error

§

fn read(&mut self) -> Result<u8, Error<<UartRx<'_, T> as Read<u8>>::Error>>

Implementors§