pub trait _embedded_hal_blocking_spi_Transfer<W> {
type Error;
// Required method
fn transfer<'w>(
&mut self,
words: &'w mut [W],
) -> Result<&'w [W], Self::Error>;
}Expand description
Blocking transfer
Required Associated Types§
Required Methods§
Implementors§
Source§impl<P, M, A> Transfer<<UInt<UInt<UInt<UTerm, B1>, B0>, B0> as Length>::Word> for Spi<Config<P, M, U4>, A>
Implement embedded_hal 0.2 Transfer for Spi structs that
can Receive and have an AtomicSize
impl<P, M, A> Transfer<<UInt<UInt<UInt<UTerm, B1>, B0>, B0> as Length>::Word> for Spi<Config<P, M, U4>, A>
Implement embedded_hal 0.2 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).
Source§impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B0> as Length>::Word> for Spi<Config<P, M, U2>, A>
Implement embedded_hal 0.2 Transfer for Spi structs that
can Receive and have an AtomicSize
impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B0> as Length>::Word> for Spi<Config<P, M, U2>, A>
Implement embedded_hal 0.2 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).
Source§impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B1> as Length>::Word> for Spi<Config<P, M, U3>, A>
Implement embedded_hal 0.2 Transfer for Spi structs that
can Receive and have an AtomicSize
impl<P, M, A> Transfer<<UInt<UInt<UTerm, B1>, B1> as Length>::Word> for Spi<Config<P, M, U3>, A>
Implement embedded_hal 0.2 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).
Source§impl<P, M, A> Transfer<<UInt<UTerm, B1> as Length>::Word> for Spi<Config<P, M, U1>, A>
Implement embedded_hal 0.2 Transfer for Spi structs that
can Receive and have an AtomicSize
impl<P, M, A> Transfer<<UInt<UTerm, B1> as Length>::Word> for Spi<Config<P, M, U1>, A>
Implement embedded_hal 0.2 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).
Source§impl<P, M, A> Transfer<u8> for Spi<Config<P, M, DynLength>, A>
impl<P, M, A> Transfer<u8> for Spi<Config<P, M, DynLength>, A>
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.