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§
Implementors§
Source§impl<P, M, C> Write<<C as CharSize>::Word> for Spi<Config<P, M, C>, Tx>where
Config<P, M, C>: ValidConfig,
P: ValidPads,
M: OpMode,
C: CharSize,
C::Word: PrimInt + AsPrimitive<DataWidth>,
Implement serial::Write
for Tx
Spi
structs
impl<P, M, C> Write<<C as CharSize>::Word> for Spi<Config<P, M, C>, Tx>where
Config<P, M, C>: ValidConfig,
P: ValidPads,
M: OpMode,
C: CharSize,
C::Word: PrimInt + AsPrimitive<DataWidth>,
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.