Type Alias atmega_hal::usart::UsartWriter

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

Aliased Type§

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

Implementations

source§

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

source

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

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

Trait Implementations

source§

impl<H, USART, RX, TX, CLOCK> Write<u8> for UsartWriter<H, USART, RX, TX, CLOCK>
where USART: UsartOps<H, RX, TX>,

§

type Error = Infallible

Write error
source§

fn write( &mut self, byte: u8 ) -> Result<(), Error<<UsartWriter<H, USART, RX, TX, CLOCK> as Write<u8>>::Error>>

Writes a single word to the serial interface
source§

fn flush( &mut self ) -> Result<(), Error<<UsartWriter<H, USART, RX, TX, CLOCK> as Write<u8>>::Error>>

Ensures that none of the previously written words are still buffered
source§

impl<H, USART, RX, TX, CLOCK> uWrite for UsartWriter<H, USART, RX, TX, CLOCK>
where USART: UsartOps<H, RX, TX>,

§

type Error = Infallible

The error associated to this writer
source§

fn write_str( &mut self, s: &str ) -> Result<(), <UsartWriter<H, USART, RX, TX, CLOCK> as uWrite>::Error>

Writes a string slice into this writer, returning whether the write succeeded. Read more
source§

fn write_char(&mut self, c: char) -> Result<(), Self::Error>

Writes a char into this writer, returning whether the write succeeded. Read more