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§

source

type Error

Read error

Required Methods§

source

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

Reads a single word from the serial interface

Implementations on Foreign Types§

source§

impl<H, USART, RX, TX, CLOCK> Read<u8> for Usart<H, USART, RX, TX, CLOCK>
where USART: UsartOps<H, RX, TX>,

§

type Error = Infallible

source§

fn read( &mut self ) -> Result<u8, Error<<Usart<H, USART, RX, TX, CLOCK> as Read<u8>>::Error>>

source§

impl<H, USART, RX, TX, CLOCK> Read<u8> for UsartReader<H, USART, RX, TX, CLOCK>
where USART: UsartOps<H, RX, TX>,

§

type Error = Infallible

source§

fn read( &mut self ) -> Result<u8, Error<<UsartReader<H, USART, RX, TX, CLOCK> as Read<u8>>::Error>>

Implementors§