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
Required Associated Types
Required Methods
Implementors
sourceimpl<P, M, A> Transfer<<UInt<UInt<UInt<UTerm, B1>, B0>, B0> as Length>::Word> for Spi<Config<P, M, U4>, A>where
Config<P, M, U4>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
impl<P, M, A> Transfer<<UInt<UInt<UInt<UTerm, B1>, B0>, B0> as Length>::Word> for Spi<Config<P, M, U4>, A>where
Config<P, M, U4>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
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
).
sourceimpl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B0> as Length>::Word> for Spi<Config<P, M, U2>, A>where
Config<P, M, U2>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B0> as Length>::Word> for Spi<Config<P, M, U2>, A>where
Config<P, M, U2>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
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
).
sourceimpl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B1> as Length>::Word> for Spi<Config<P, M, U3>, A>where
Config<P, M, U3>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B1> as Length>::Word> for Spi<Config<P, M, U3>, A>where
Config<P, M, U3>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
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
).
sourceimpl<P, M, A> Transfer<<UInt<UTerm, B1> as Length>::Word> for Spi<Config<P, M, U1>, A>where
Config<P, M, U1>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
impl<P, M, A> Transfer<<UInt<UTerm, B1> as Length>::Word> for Spi<Config<P, M, U1>, A>where
Config<P, M, U1>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
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
).
sourceimpl<P, M, A> Transfer<u8> for Spi<Config<P, M, DynLength>, A>where
Config<P, M, DynLength>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
impl<P, M, A> Transfer<u8> for Spi<Config<P, M, DynLength>, A>where
Config<P, M, DynLength>: ValidConfig,
P: ValidPads,
M: OpMode,
A: Receive,
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.