Struct xmc4500::Sdmmc

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

SD and Multimediacard Interface

Implementations§

source§

impl Sdmmc

source

pub const PTR: *const RegisterBlock = {0x4801c000 as *const sdmmc::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 block_size(&self) -> &BlockSize

0x04 - Block Size Register

source

pub fn block_count(&self) -> &BlockCount

0x06 - Block Count Register

source

pub fn argument1(&self) -> &Argument1

0x08 - Argument1 Register

source

pub fn transfer_mode(&self) -> &TransferMode

0x0c - Transfer Mode Register

source

pub fn command(&self) -> &Command

0x0e - Command Register

source

pub fn response0(&self) -> &Response0

0x10 - Response 0 Register

source

pub fn response2(&self) -> &Response2

0x14 - Response 2 Register

source

pub fn response4(&self) -> &Response4

0x18 - Response 4 Register

source

pub fn response6(&self) -> &Response6

0x1c - Response 6 Register

source

pub fn data_buffer(&self) -> &DataBuffer

0x20 - Data Buffer Register

source

pub fn present_state(&self) -> &PresentState

0x24 - Present State Register

source

pub fn host_ctrl(&self) -> &HostCtrl

0x28 - Host Control Register

source

pub fn power_ctrl(&self) -> &PowerCtrl

0x29 - Power Control Register

source

pub fn block_gap_ctrl(&self) -> &BlockGapCtrl

0x2a - Block Gap Control Register

source

pub fn wakeup_ctrl(&self) -> &WakeupCtrl

0x2b - Wake-up Control Register

source

pub fn clock_ctrl(&self) -> &ClockCtrl

0x2c - Clock Control Register

source

pub fn timeout_ctrl(&self) -> &TimeoutCtrl

0x2e - Timeout Control Register

source

pub fn sw_reset(&self) -> &SwReset

0x2f - Software Reset Register

source

pub fn int_status_norm(&self) -> &IntStatusNorm

0x30 - Normal Interrupt Status Register

source

pub fn int_status_err(&self) -> &IntStatusErr

0x32 - Error Interrupt Status Register

source

pub fn en_int_status_norm(&self) -> &EnIntStatusNorm

0x34 - Normal Interrupt Status Enable Register

source

pub fn en_int_status_err(&self) -> &EnIntStatusErr

0x36 - Error Interrupt Status Enable Register

source

pub fn en_int_signal_norm(&self) -> &EnIntSignalNorm

0x38 - Normal Interrupt Signal Enable Register

source

pub fn en_int_signal_err(&self) -> &EnIntSignalErr

0x3a - Error Interrupt Signal Enable Register

source

pub fn acmd_err_status(&self) -> &AcmdErrStatus

0x3c - Auto CMD Error Status Register

source

pub fn capabilities(&self) -> &Capabilities

0x40 - Capabilities Register

source

pub fn capabilities_hi(&self) -> &CapabilitiesHi

0x44 - Capabilities Register High

source

pub fn max_current_cap(&self) -> &MaxCurrentCap

0x48 - Maximum Current Capabilities Register

source

pub fn force_event_acmd_err_status(&self) -> &ForceEventAcmdErrStatus

0x50 - Force Event Register for Auto CMD Error Status

source

pub fn force_event_err_status(&self) -> &ForceEventErrStatus

0x52 - Force Event Register for Error Interrupt Status

source

pub fn debug_sel(&self) -> &DebugSel

0x74 - Debug Selection Register

source

pub fn spi(&self) -> &Spi

0xf0 - SPI Interrupt Support Register

source

pub fn slot_int_status(&self) -> &SlotIntStatus

0xfc - Slot Interrupt Status Register

Trait Implementations§

source§

impl Debug for Sdmmc

source§

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

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

impl Deref for Sdmmc

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for Sdmmc

Auto Trait Implementations§

§

impl RefUnwindSafe for Sdmmc

§

impl !Sync for Sdmmc

§

impl Unpin for Sdmmc

§

impl UnwindSafe for Sdmmc

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.