Trait atsamd_hal::prelude::_embedded_hal_serial_Write
source · [−]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
Required Associated Types
Required Methods
Trait Implementations
sourceimpl<Word, Error> Write for dyn Write<Word, Error = Error> + 'staticwhere
Word: From<u8>,
impl<Word, Error> Write for dyn Write<Word, Error = Error> + 'staticwhere
Word: From<u8>,
Implementors
sourceimpl<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.