pub trait Write<Word> {
    type Error;

    fn write(&mut self, word: Word) -> Result<(), Self::Error>;
    fn flush(&mut self) -> Result<(), Self::Error>;
}
Expand description

Write half of a serial interface

Required Associated Types

Write error

Required Methods

Writes a single word to the serial interface

Ensures that none of the previously written words are still buffered

Trait Implementations

Writes a string slice into this writer, returning whether the write succeeded. Read more
Writes a char into this writer, returning whether the write succeeded. Read more
Glue for usage of the write! macro with implementors of this trait. Read more

Implementors

impl<C> Write<<C as AnyConfig>::Word> for Spi<C, Tx>where
    C: ValidConfig,
    C::Word: PrimInt + AsPrimitive<u16>,

impl<C, D> Write<<C as AnyConfig>::Word> for Uart<C, D>where
    C: ValidConfig,
    D: Transmit,