Struct gd32vf103xx_hal::spi::Spi [−][src]
pub struct Spi<SPI, PINS> { /* fields omitted */ }
Implementations
Change the frequency of operation of the SPI bus. The maximum frequency for the SPI bus is the frequency of the APB1 bus which is half the system frequency configured with RCU.configure().sysclk(). Specifying a higher frequency causes panic.
Trait Implementations
Auto Trait Implementations
impl<SPI, PINS> RefUnwindSafe for Spi<SPI, PINS> where
PINS: RefUnwindSafe,
SPI: RefUnwindSafe,
impl<SPI, PINS> UnwindSafe for Spi<SPI, PINS> where
PINS: UnwindSafe,
SPI: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Error = <S as FullDuplex<W>>::Error
type Error = <S as FullDuplex<W>>::Error
Error type
pub fn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
pub 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