Type Alias 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>,

Source§

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>,

Source§

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