Trait grand_central_m4::prelude::_embedded_hal_blocking_spi_Transfer[][src]

pub trait _embedded_hal_blocking_spi_Transfer<W> {
    type Error;
    fn transfer(&mut self, words: &'w mut [W]) -> Result<&'w [W], Self::Error>;
}
Expand description

Blocking transfer

Associated Types

Error type

Required methods

Sends words to the slave. Returns the words received from the slave

Implementors

Implement Transfer for longer Spi transaction Lengths

The Spi Pads must be Rx and the transaction Length must be > 4. The transfer accepts a slice of u8 with a length equal to the transaction Length. If the slice length is incorrect, it will panic.

Implement Transfer for short Spi transaction Lengths

The Spi Pads must be Rx and the transaction Length must be <= 4. The transfer accepts a slice of primitive integers, depending on the Length (u8, u16 or u32).

Implement Transfer for short Spi transaction Lengths

The Spi Pads must be Rx and the transaction Length must be <= 4. The transfer accepts a slice of primitive integers, depending on the Length (u8, u16 or u32).

Implement Transfer for short Spi transaction Lengths

The Spi Pads must be Rx and the transaction Length must be <= 4. The transfer accepts a slice of primitive integers, depending on the Length (u8, u16 or u32).

Implement Transfer for short Spi transaction Lengths

The Spi Pads must be Rx and the transaction Length must be <= 4. The transfer accepts a slice of primitive integers, depending on the Length (u8, u16 or u32).

Implement Transfer for Spi types with DynLength

The Spi Pads must be Rx. The transfer accepts a slice of u8 with a length equal to the run-time dynamic transaction length. If the slice length does not match the result of Spi::get_dyn_length, it will panic.