Type Alias atmega_hal::usart::UsartReader

source ·
pub type UsartReader<USART, RX, TX, CLOCK> = UsartReader<Atmega, USART, RX, TX, CLOCK>;

Aliased Type§

struct UsartReader<USART, RX, TX, CLOCK> { /* private fields */ }

Implementations

source§

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

source

pub fn reunite( self, other: UsartWriter<H, USART, RX, TX, CLOCK> ) -> Usart<H, USART, RX, TX, CLOCK>

Merge this UsartReader with a UsartWriter back into a single Usart peripheral.

Trait Implementations

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

Read error
source§

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

Reads a single word from the serial interface