[]Trait gemma_m0::prelude::_embedded_hal_serial_Read

pub trait _embedded_hal_serial_Read<Word> {
    type Error;
    fn read(&mut self) -> Result<Word, Error<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

Read error

Loading content...

Required methods

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

Reads a single word from the serial interface

Loading content...

Implementors

impl Read<u8> for UART0[src]

type Error = ()

impl Read<u8> for UART1[src]

type Error = ()

impl Read<u8> for UART2[src]

type Error = ()

impl Read<u8> for UART3[src]

type Error = ()

Loading content...