Struct alt_stm32f30x_hal::spi::Spi
source · [−]pub struct Spi<SPI, PINS> { /* private fields */ }
Expand description
SPI peripheral operating in full duplex master mode
Implementations
Trait Implementations
sourceimpl<PINS> FullDuplex<u8> for Spi<SPI1, PINS>
impl<PINS> FullDuplex<u8> for Spi<SPI1, PINS>
sourceimpl<PINS> FullDuplex<u8> for Spi<SPI2, PINS>
impl<PINS> FullDuplex<u8> for Spi<SPI2, PINS>
sourceimpl<PINS> FullDuplex<u8> for Spi<SPI3, PINS>
impl<PINS> FullDuplex<u8> for Spi<SPI3, PINS>
impl<PINS> Default<u8> for Spi<SPI1, PINS>
impl<PINS> Default<u8> for Spi<SPI1, PINS>
impl<PINS> Default<u8> for Spi<SPI2, PINS>
impl<PINS> Default<u8> for Spi<SPI2, PINS>
impl<PINS> Default<u8> for Spi<SPI3, PINS>
impl<PINS> Default<u8> for Spi<SPI3, PINS>
Auto Trait Implementations
impl<SPI, PINS> RefUnwindSafe for Spi<SPI, PINS> where
PINS: RefUnwindSafe,
SPI: RefUnwindSafe,
impl<SPI, PINS> Send for Spi<SPI, PINS> where
PINS: Send,
SPI: Send,
impl<SPI, PINS> Sync for Spi<SPI, PINS> where
PINS: Sync,
SPI: Sync,
impl<SPI, PINS> Unpin for Spi<SPI, PINS> where
PINS: Unpin,
SPI: Unpin,
impl<SPI, PINS> UnwindSafe for Spi<SPI, PINS> where
PINS: UnwindSafe,
SPI: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone,
impl<W, S> Transfer<W> for S where
S: Default<W>,
W: Clone,
type Error = <S as FullDuplex<W>>::Error
type Error = <S as FullDuplex<W>>::Error
Error type
sourcefn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
fn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
Sends words
to the slave. Returns the words
received from the slave