Trait embedded_hal::serial::Read[][src]

pub trait Read<Word> {
    type Error;
    fn read(&mut self) -> Result<Word, Self::Error>;
}

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.

Associated Types

type Error[src]

Read error

Loading content...

Required methods

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

Reads a single word from the serial interface

Loading content...

Implementors

Loading content...