Struct xmc4800::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) -> &BLOCK_SIZE

0x04 - Block Size Register

source

pub fn block_count(&self) -> &BLOCK_COUNT

0x06 - Block Count Register

source

pub fn argument1(&self) -> &ARGUMENT1

0x08 - Argument1 Register

source

pub fn transfer_mode(&self) -> &TRANSFER_MODE

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) -> &DATA_BUFFER

0x20 - Data Buffer Register

source

pub fn present_state(&self) -> &PRESENT_STATE

0x24 - Present State Register

source

pub fn host_ctrl(&self) -> &HOST_CTRL

0x28 - Host Control Register

source

pub fn power_ctrl(&self) -> &POWER_CTRL

0x29 - Power Control Register

source

pub fn block_gap_ctrl(&self) -> &BLOCK_GAP_CTRL

0x2a - Block Gap Control Register

source

pub fn wakeup_ctrl(&self) -> &WAKEUP_CTRL

0x2b - Wake-up Control Register

source

pub fn clock_ctrl(&self) -> &CLOCK_CTRL

0x2c - Clock Control Register

source

pub fn timeout_ctrl(&self) -> &TIMEOUT_CTRL

0x2e - Timeout Control Register

source

pub fn sw_reset(&self) -> &SW_RESET

0x2f - Software Reset Register

source

pub fn int_status_norm(&self) -> &INT_STATUS_NORM

0x30 - Normal Interrupt Status Register

source

pub fn int_status_err(&self) -> &INT_STATUS_ERR

0x32 - Error Interrupt Status Register

source

pub fn en_int_status_norm(&self) -> &EN_INT_STATUS_NORM

0x34 - Normal Interrupt Status Enable Register

source

pub fn en_int_status_err(&self) -> &EN_INT_STATUS_ERR

0x36 - Error Interrupt Status Enable Register

source

pub fn en_int_signal_norm(&self) -> &EN_INT_SIGNAL_NORM

0x38 - Normal Interrupt Signal Enable Register

source

pub fn en_int_signal_err(&self) -> &EN_INT_SIGNAL_ERR

0x3a - Error Interrupt Signal Enable Register

source

pub fn acmd_err_status(&self) -> &ACMD_ERR_STATUS

0x3c - Auto CMD Error Status Register

source

pub fn capabilities(&self) -> &CAPABILITIES

0x40 - Capabilities Register

source

pub fn capabilities_hi(&self) -> &CAPABILITIES_HI

0x44 - Capabilities Register High

source

pub fn max_current_cap(&self) -> &MAX_CURRENT_CAP

0x48 - Maximum Current Capabilities Register

source

pub fn force_event_acmd_err_status(&self) -> &FORCE_EVENT_ACMD_ERR_STATUS

0x50 - Force Event Register for Auto CMD Error Status

source

pub fn force_event_err_status(&self) -> &FORCE_EVENT_ERR_STATUS

0x52 - Force Event Register for Error Interrupt Status

source

pub fn debug_sel(&self) -> &DEBUG_SEL

0x74 - Debug Selection Register

source

pub fn slot_int_status(&self) -> &SLOT_INT_STATUS

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 Freeze for SDMMC

§

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.