SPI2

Type Alias SPI2 

Source
pub type SPI2 = Periph<RegisterBlock, 1073756160>;
Expand description

Serial peripheral interface

See peripheral structure

Aliased Type§

pub struct SPI2 { /* private fields */ }

Trait Implementations§

Source§

impl DualInstance for SPI2

Source§

type I2sExtPeripheral = Periph<RegisterBlock, 1073755136>

The I2SEXT peripheral that extend the SPI peripheral
Source§

impl Enable for SPI2

Source§

fn enable(rcc: &mut RCC)

Enables peripheral
Source§

fn disable(rcc: &mut RCC)

Disables peripheral
Source§

fn is_enabled() -> bool

Check if peripheral enabled
Source§

fn is_disabled() -> bool

Check if peripheral disabled
Source§

unsafe fn enable_unchecked()

Safety Read more
Source§

unsafe fn disable_unchecked()

Safety Read more
Source§

impl I2sCommon for SPI2

Source§

type Ck = Ck

Source§

type Sd = Sd

Source§

type Ws = Ws

Source§

impl I2sExtPin for SPI2

Source§

impl I2sMaster for SPI2

Source§

impl LPEnable for SPI2

Source§

fn enable_in_low_power(rcc: &mut RCC)

Enables peripheral in low power mode
Source§

fn disable_in_low_power(rcc: &mut RCC)

Disables peripheral in low power mode
Source§

fn is_enabled_in_low_power() -> bool

Check if peripheral enabled in low power mode
Source§

fn is_disabled_in_low_power() -> bool

Check if peripheral disabled in low power mode
Source§

unsafe fn enable_in_low_power_unchecked()

Safety Read more
Source§

unsafe fn disable_in_low_power_unchecked()

Safety Read more
Source§

impl PeriAddress for SPI2

Source§

type MemSize = u8

Memory size of the peripheral.
Source§

fn address(&self) -> u32

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

impl RccBus for SPI2

Source§

type Bus = APB1

Bus type;
Source§

impl Reset for SPI2

Source§

fn reset(rcc: &mut RCC)

Resets peripheral
Source§

unsafe fn reset_unchecked()

Safety Read more
Source§

impl SpiCommon for SPI2

Source§

impl DMASet<StreamX<Periph<RegisterBlock, 1073897472>, 3>, 0, PeripheralToMemory> for SPI2

Source§

impl DMASet<StreamX<Periph<RegisterBlock, 1073897472>, 4>, 0, MemoryToPeripheral> for SPI2

Source§

impl Instance for SPI2

Source§

impl Instance for SPI2