pub trait _embedded_hal_serial_Write<Word> {
type Error;
// Required methods
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
Required Associated Types§
Required Methods§
Trait Implementations§
source§impl<Word, Error> Write for dyn Write<Word, Error = Error>where
Word: From<u8>,
impl<Word, Error> Write for dyn Write<Word, Error = Error>where Word: From<u8>,
Implementors§
source§impl<C> Write<<C as AnyConfig>::Word> for Spi<C, Tx>where
C: ValidConfig,
C::Word: PrimInt + AsPrimitive<u16>,
impl<C> Write<<C as AnyConfig>::Word> for Spi<C, Tx>where C: ValidConfig, C::Word: PrimInt + AsPrimitive<u16>,
Implement serial::Write
for Tx
Spi
structs
serial::Write
is only implemented for Spi
structs with Tx
Capability
. Because the Capability
is Tx
, this implementation never
reads the DATA register and ignores all buffer overflow errors.