Trait _embedded_hal_serial_Read

Source
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

Implementors§

Source§

impl Read<u8> for Rx<UART4>

Source§

impl Read<u8> for Rx<UART5>

Source§

impl Read<u8> for Rx<UART7>

Source§

impl Read<u8> for Rx<UART8>

Source§

impl Read<u8> for Rx<USART1>

Source§

impl Read<u8> for Rx<USART2>

Source§

impl Read<u8> for Rx<USART3>

Source§

impl Read<u8> for Rx<USART6>

Source§

impl<PINS> Read<u8> for Serial<UART4, PINS>

Source§

impl<PINS> Read<u8> for Serial<UART5, PINS>

Source§

impl<PINS> Read<u8> for Serial<UART7, PINS>

Source§

impl<PINS> Read<u8> for Serial<UART8, PINS>

Source§

impl<PINS> Read<u8> for Serial<USART1, PINS>

Source§

impl<PINS> Read<u8> for Serial<USART2, PINS>

Source§

impl<PINS> Read<u8> for Serial<USART3, PINS>

Source§

impl<PINS> Read<u8> for Serial<USART6, PINS>