pub struct SPI2 { /* private fields */ }
Expand description
Serial peripheral interface
Implementations
impl SPI2
impl SPI2
pub const PTR: *const RegisterBlock = {0x40003800 as *const stm32f4xx_hal::pac::spi1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40003800 as *const stm32f4xx_hal::pac::spi1::RegisterBlock}
Pointer to the register block
pub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations
sourceimpl Enable for SPI2
impl Enable for SPI2
fn enable(rcc: &RegisterBlock)
fn disable(rcc: &RegisterBlock)
sourceimpl LPEnable for SPI2
impl LPEnable for SPI2
fn low_power_enable(rcc: &RegisterBlock)
fn low_power_disable(rcc: &RegisterBlock)
sourceimpl PeriAddress for SPI2
impl PeriAddress for SPI2
impl DMASet<StreamX<DMA1, 3>, 0, PeripheralToMemory> for SPI2
impl DMASet<StreamX<DMA1, 4>, 0, MemoryToPeripheral> for SPI2
impl Instance for SPI2
impl Instance for SPI2
impl Send for SPI2
Auto Trait Implementations
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