Struct stm32_eth::stm32::SPI2

source ·
pub struct SPI2 { /* private fields */ }
Expand description

Serial peripheral interface

Implementations§

source§

impl SPI2

source

pub const PTR: *const RegisterBlock = {0x40003800 as *const stm32f4xx_hal::pac::spi1::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Trait Implementations§

source§

impl Debug for SPI2

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for SPI2

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SPI2 as Deref>::Target

Dereferences the value.
source§

impl Enable for SPI2

source§

impl I2sFreq for SPI2

source§

fn i2s_freq(clocks: &Clocks) -> Rate<u32, 1, 1>

source§

impl LPEnable for SPI2

source§

impl PeriAddress for SPI2

source§

fn address(&self) -> u32

Returns the address to be used by the DMA stream.
§

type MemSize = u8

Memory size of the peripheral.
source§

impl RccBus for SPI2

§

type Bus = APB1

Bus type;
source§

impl Reset for SPI2

source§

impl DMASet<StreamX<DMA1, 3>, 0, PeripheralToMemory> for SPI2

source§

impl DMASet<StreamX<DMA1, 4>, 0, MemoryToPeripheral> for SPI2

source§

impl Instance for SPI2

source§

impl Instance for SPI2

source§

impl Send for SPI2

Auto Trait Implementations§

§

impl RefUnwindSafe for SPI2

§

impl !Sync for SPI2

§

impl Unpin for SPI2

§

impl UnwindSafe for SPI2

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<SPI> I2sExt for SPIwhere
    SPI: Instance,

source§

fn i2s<WS, CK, MCLK, SD>(
    self,
    pins: (WS, CK, MCLK, SD),
    clocks: &Clocks
) -> I2s<SPI, (WS, CK, MCLK, SD)>where
    (WS, CK, MCLK, SD): Pins<SPI>,

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<SPI> SpiExt for SPIwhere
    SPI: Instance,

source§

fn spi<SCK, MISO, MOSI>(
    self,
    pins: (SCK, MISO, MOSI),
    mode: impl Into<Mode>,
    freq: Rate<u32, 1, 1>,
    clocks: &Clocks
) -> Spi<SPI, (SCK, MISO, MOSI), false, u8, Master>where
    (SCK, MISO, MOSI): Pins<SPI>,

source§

fn spi_bidi<SCK, MISO, MOSI>(
    self,
    pins: (SCK, MISO, MOSI),
    mode: impl Into<Mode>,
    freq: Rate<u32, 1, 1>,
    clocks: &Clocks
) -> Spi<SPI, (SCK, MISO, MOSI), true, u8, Master>where
    (SCK, MISO, MOSI): Pins<SPI>,

source§

fn spi_slave<SCK, MISO, MOSI>(
    self,
    pins: (SCK, MISO, MOSI),
    mode: impl Into<Mode>,
    freq: Rate<u32, 1, 1>,
    clocks: &Clocks
) -> Spi<SPI, (SCK, MISO, MOSI), false, u8, Slave>where
    (SCK, MISO, MOSI): Pins<SPI>,

source§

fn spi_bidi_slave<SCK, MISO, MOSI>(
    self,
    pins: (SCK, MISO, MOSI),
    mode: impl Into<Mode>,
    freq: Rate<u32, 1, 1>,
    clocks: &Clocks
) -> Spi<SPI, (SCK, MISO, MOSI), true, u8, Slave>where
    (SCK, MISO, MOSI): Pins<SPI>,

source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.