SDMMC1

Struct SDMMC1 

Source
pub struct SDMMC1 { /* private fields */ }
Expand description

Secure digital input/output MultiMediaCard interface

Implementations§

Source§

impl SDMMC1

Source

pub const PTR: *const RegisterBlock = {0x46008000 as *const stm32h573::sdmmc1::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn power(&self) -> &POWER

0x00 - SDMMC_POWER

Source

pub fn clkcr(&self) -> &CLKCR

0x04 - SDMMC clock control register

Source

pub fn argr(&self) -> &ARGR

0x08 - SDMMC argument register

Source

pub fn cmdr(&self) -> &CMDR

0x0c - SDMMC command register

Source

pub fn respcmdr(&self) -> &RESPCMDR

0x10 - SDMMC command response register

Source

pub fn resp1r(&self) -> &RESP1R

0x14 - SDMMC response 1 register

Source

pub fn resp2r(&self) -> &RESP2R

0x18 - SDMMC response 2 register

Source

pub fn resp3r(&self) -> &RESP3R

0x1c - SDMMC response 3 register

Source

pub fn resp4r(&self) -> &RESP4R

0x20 - SDMMC response 4 register

Source

pub fn dtimer(&self) -> &DTIMER

0x24 - SDMMC data timer register

Source

pub fn dlenr(&self) -> &DLENR

0x28 - SDMMC data length register

Source

pub fn dctrl(&self) -> &DCTRL

0x2c - SDMMC data control register

Source

pub fn dcntr(&self) -> &DCNTR

0x30 - SDMMC data counter register

Source

pub fn star(&self) -> &STAR

0x34 - SDMMC status register

Source

pub fn icr(&self) -> &ICR

0x38 - SDMMC interrupt clear register

Source

pub fn maskr(&self) -> &MASKR

0x3c - SDMMC mask register

Source

pub fn acktimer(&self) -> &ACKTIMER

0x40 - SDMMC acknowledgment timer register

Source

pub fn idmactrlr(&self) -> &IDMACTRLR

0x50 - SDMMC DMA control register

Source

pub fn idmabsizer(&self) -> &IDMABSIZER

0x54 - SDMMC IDMA buffer size register

Source

pub fn idmabaser(&self) -> &IDMABASER

0x58 - SDMMC IDMA buffer base address register

Source

pub fn idmalar(&self) -> &IDMALAR

0x64 - SDMMC_IDMALAR

Source

pub fn idmabar(&self) -> &IDMABAR

0x68 - SDMMC_IDMABAR

Source

pub fn fifor0(&self) -> &FIFOR0

0x80 - SDMMC data FIFO registers 0

Source

pub fn fifor1(&self) -> &FIFOR1

0x84 - SDMMC data FIFO registers 1

Source

pub fn fifor2(&self) -> &FIFOR2

0x88 - SDMMC data FIFO registers 2

Source

pub fn fifor3(&self) -> &FIFOR3

0x8c - SDMMC data FIFO registers 3

Source

pub fn fifor4(&self) -> &FIFOR4

0x90 - SDMMC data FIFO registers 4

Source

pub fn fifor5(&self) -> &FIFOR5

0x94 - SDMMC data FIFO registers 5

Source

pub fn fifor6(&self) -> &FIFOR6

0x98 - SDMMC data FIFO registers 6

Source

pub fn fifor7(&self) -> &FIFOR7

0x9c - SDMMC data FIFO registers 7

Source

pub fn fifor8(&self) -> &FIFOR8

0xa0 - SDMMC data FIFO registers 8

Source

pub fn fifor9(&self) -> &FIFOR9

0xa4 - SDMMC data FIFO registers 9

Source

pub fn fifor10(&self) -> &FIFOR10

0xa8 - SDMMC data FIFO registers 10

Source

pub fn fifor11(&self) -> &FIFOR11

0xac - SDMMC data FIFO registers 11

Source

pub fn fifor12(&self) -> &FIFOR12

0xb0 - SDMMC data FIFO registers 12

Source

pub fn fifor13(&self) -> &FIFOR13

0xb4 - SDMMC data FIFO registers 13

Source

pub fn fifor14(&self) -> &FIFOR14

0xb8 - SDMMC data FIFO registers 14

Source

pub fn fifor15(&self) -> &FIFOR15

0xbc - SDMMC data FIFO registers 15

Trait Implementations§

Source§

impl Debug for SDMMC1

Source§

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

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

impl Deref for SDMMC1

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for SDMMC1

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.