Trait lpc55_hal::prelude::_embedded_hal_serial_Read[][src]

pub trait _embedded_hal_serial_Read<Word> {
    type Error;
    pub 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[src]

Read error

Loading content...

Required methods

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

Reads a single word from the serial interface

Loading content...

Implementors

impl<TX, RX, USART, PINS> Read<u8> for Serial<TX, RX, USART, PINS> where
    TX: PinId,
    RX: PinId,
    USART: Usart,
    PINS: UsartPins<TX, RX, USART>, 
[src]

type Error = Error

impl<USART: Usart> Read<u8> for Rx<USART>[src]

type Error = Error

Loading content...