atsamd_hal::prelude

Trait _embedded_hal_blocking_spi_Write

Source
pub trait _embedded_hal_blocking_spi_Write<W> {
    type Error;

    // Required method
    fn write(&mut self, words: &[W]) -> Result<(), Self::Error>;
}
Expand description

Blocking write

Required Associated Types§

Source

type Error

Error type

Required Methods§

Source

fn write(&mut self, words: &[W]) -> Result<(), Self::Error>

Sends words to the slave, ignoring all the incoming words

Implementors§

Source§

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).

Source§

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.

Source§

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).

Source§

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.

Source§

impl<W, S> Write<W> for S
where S: Default<W>, W: Clone,

Source§

type Error = <S as FullDuplex<W>>::Error