[−][src]Struct stm32l4xx_hal::spi::Spi
SPI peripheral operating in full duplex master mode
Methods
impl<PINS> Spi<SPI1, PINS>
[src]
pub fn spi1<F>(
spi: SPI1,
pins: PINS,
mode: Mode,
freq: F,
clocks: Clocks,
apb2: &mut APB2
) -> Self where
F: Into<Hertz>,
PINS: Pins<SPI1>,
[src]
spi: SPI1,
pins: PINS,
mode: Mode,
freq: F,
clocks: Clocks,
apb2: &mut APB2
) -> Self where
F: Into<Hertz>,
PINS: Pins<SPI1>,
Configures the SPI peripheral to operate in full duplex master mode
pub fn free(self) -> (SPI1, PINS)
[src]
Releases the SPI peripheral and associated pins
impl<PINS> Spi<SPI3, PINS>
[src]
pub fn spi3<F>(
spi: SPI3,
pins: PINS,
mode: Mode,
freq: F,
clocks: Clocks,
apb2: &mut APB1R1
) -> Self where
F: Into<Hertz>,
PINS: Pins<SPI3>,
[src]
spi: SPI3,
pins: PINS,
mode: Mode,
freq: F,
clocks: Clocks,
apb2: &mut APB1R1
) -> Self where
F: Into<Hertz>,
PINS: Pins<SPI3>,
Configures the SPI peripheral to operate in full duplex master mode
pub fn free(self) -> (SPI3, PINS)
[src]
Releases the SPI peripheral and associated pins
Trait Implementations
impl<PINS> Default<u8> for Spi<SPI1, PINS>
[src]
impl<PINS> Default<u8> for Spi<SPI3, PINS>
[src]
impl<PINS> Default<u8> for Spi<SPI1, PINS>
[src]
impl<PINS> Default<u8> for Spi<SPI3, PINS>
[src]
impl<PINS> FullDuplex<u8> for Spi<SPI1, PINS>
[src]
type Error = Error
An enumeration of SPI errors
fn read(&mut self) -> Result<u8, Error>
[src]
fn send(&mut self, byte: u8) -> Result<(), Error>
[src]
impl<PINS> FullDuplex<u8> for Spi<SPI3, PINS>
[src]
Auto Trait Implementations
impl<SPI, PINS> Send for Spi<SPI, PINS> where
PINS: Send,
SPI: Send,
PINS: Send,
SPI: Send,
impl<SPI, PINS> Sync for Spi<SPI, PINS> where
PINS: Sync,
SPI: Sync,
PINS: Sync,
SPI: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<W, S> Transfer for S where
S: Default<W>,
W: Clone,
[src]
S: Default<W>,
W: Clone,
type Error = <S as FullDuplex<W>>::Error
Error type
fn transfer(
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
[src]
&mut self,
words: &'w mut [W]
) -> Result<&'w [W], <S as FullDuplex<W>>::Error>
impl<W, S> Write for S where
S: Default<W>,
W: Clone,
[src]
S: Default<W>,
W: Clone,
type Error = <S as FullDuplex<W>>::Error
Error type
fn write(&mut self, words: &[W]) -> Result<(), <S as FullDuplex<W>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self