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
type Error
type Error
Error type
Required methods
fn transfer(&mut self, words: &'w mut [W]) -> Result<&'w [W], Self::Error>
fn transfer(&mut self, words: &'w mut [W]) -> Result<&'w [W], Self::Error>
Sends words
to the slave. Returns the words
received from the slave
Implementors
Implement Transfer
for Spi
structs that can Receive
and have an AtomicSize
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
structs that can Receive
and have an AtomicSize
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
structs that can Receive
and have an AtomicSize
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
structs that can Receive
and have an AtomicSize
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
structs that can Receive
and have
DynLength
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.