Trait serpente::prelude::_embedded_hal_serial_Write[][src]

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

Write half of a serial interface

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

Implement Write for Spi

Write is only implemented when the Pads are Tx but NotRx. If the Pads are both Tx and Rx, then use FullDuplex.

Because Write is only implemented when the Pads are NotRx, this implementation never reads the DATA register and ignores all buffer overflow errors.