pub trait _embedded_hal_blocking_spi_Write<W> {
type Error;
fn write(&mut self, words: &[W]) -> Result<(), Self::Error>;
}Expand description
Blocking write
Required Associated Types
Required Methods
Implementors
sourceimpl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Duplex>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Duplex>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement Write for Spi structs with Duplex
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize (u8 or u16).
sourceimpl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Tx>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<EightBit as CharSize>::Word> for Spi<Config<P, M, EightBit>, Tx>where
Config<P, M, EightBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement Write for Spi structs with Tx
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize (u8 or u16).
Because the Capability is Tx, this implementation never
reads the DATA register and ignores all buffer overflow errors.
sourceimpl<P, M> Write<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Duplex>where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Duplex>where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement Write for Spi structs with Duplex
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize (u8 or u16).
sourceimpl<P, M> Write<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Tx>where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
impl<P, M> Write<<NineBit as CharSize>::Word> for Spi<Config<P, M, NineBit>, Tx>where
Config<P, M, NineBit>: ValidConfig,
P: ValidPads,
M: OpMode,
Implement Write for Spi structs with Tx
Capability
The transfer accepts a slice of primitive integers, depending on
the CharSize (u8 or u16).
Because the Capability is Tx, this implementation never
reads the DATA register and ignores all buffer overflow errors.