pub struct SDMMC { /* private fields */ }
Expand description
SD and Multimediacard Interface
Implementations§
source§impl SDMMC
impl SDMMC
sourcepub const PTR: *const RegisterBlock = {0x4801c000 as *const sdmmc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4801c000 as *const sdmmc::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn block_size(&self) -> &BLOCK_SIZE
pub fn block_size(&self) -> &BLOCK_SIZE
0x04 - Block Size Register
sourcepub fn block_count(&self) -> &BLOCK_COUNT
pub fn block_count(&self) -> &BLOCK_COUNT
0x06 - Block Count Register
sourcepub fn transfer_mode(&self) -> &TRANSFER_MODE
pub fn transfer_mode(&self) -> &TRANSFER_MODE
0x0c - Transfer Mode Register
sourcepub fn data_buffer(&self) -> &DATA_BUFFER
pub fn data_buffer(&self) -> &DATA_BUFFER
0x20 - Data Buffer Register
sourcepub fn present_state(&self) -> &PRESENT_STATE
pub fn present_state(&self) -> &PRESENT_STATE
0x24 - Present State Register
sourcepub fn power_ctrl(&self) -> &POWER_CTRL
pub fn power_ctrl(&self) -> &POWER_CTRL
0x29 - Power Control Register
sourcepub fn block_gap_ctrl(&self) -> &BLOCK_GAP_CTRL
pub fn block_gap_ctrl(&self) -> &BLOCK_GAP_CTRL
0x2a - Block Gap Control Register
sourcepub fn wakeup_ctrl(&self) -> &WAKEUP_CTRL
pub fn wakeup_ctrl(&self) -> &WAKEUP_CTRL
0x2b - Wake-up Control Register
sourcepub fn clock_ctrl(&self) -> &CLOCK_CTRL
pub fn clock_ctrl(&self) -> &CLOCK_CTRL
0x2c - Clock Control Register
sourcepub fn timeout_ctrl(&self) -> &TIMEOUT_CTRL
pub fn timeout_ctrl(&self) -> &TIMEOUT_CTRL
0x2e - Timeout Control Register
sourcepub fn int_status_norm(&self) -> &INT_STATUS_NORM
pub fn int_status_norm(&self) -> &INT_STATUS_NORM
0x30 - Normal Interrupt Status Register
sourcepub fn int_status_err(&self) -> &INT_STATUS_ERR
pub fn int_status_err(&self) -> &INT_STATUS_ERR
0x32 - Error Interrupt Status Register
sourcepub fn en_int_status_norm(&self) -> &EN_INT_STATUS_NORM
pub fn en_int_status_norm(&self) -> &EN_INT_STATUS_NORM
0x34 - Normal Interrupt Status Enable Register
sourcepub fn en_int_status_err(&self) -> &EN_INT_STATUS_ERR
pub fn en_int_status_err(&self) -> &EN_INT_STATUS_ERR
0x36 - Error Interrupt Status Enable Register
sourcepub fn en_int_signal_norm(&self) -> &EN_INT_SIGNAL_NORM
pub fn en_int_signal_norm(&self) -> &EN_INT_SIGNAL_NORM
0x38 - Normal Interrupt Signal Enable Register
sourcepub fn en_int_signal_err(&self) -> &EN_INT_SIGNAL_ERR
pub fn en_int_signal_err(&self) -> &EN_INT_SIGNAL_ERR
0x3a - Error Interrupt Signal Enable Register
sourcepub fn acmd_err_status(&self) -> &ACMD_ERR_STATUS
pub fn acmd_err_status(&self) -> &ACMD_ERR_STATUS
0x3c - Auto CMD Error Status Register
sourcepub fn capabilities(&self) -> &CAPABILITIES
pub fn capabilities(&self) -> &CAPABILITIES
0x40 - Capabilities Register
sourcepub fn capabilities_hi(&self) -> &CAPABILITIES_HI
pub fn capabilities_hi(&self) -> &CAPABILITIES_HI
0x44 - Capabilities Register High
sourcepub fn max_current_cap(&self) -> &MAX_CURRENT_CAP
pub fn max_current_cap(&self) -> &MAX_CURRENT_CAP
0x48 - Maximum Current Capabilities Register
sourcepub fn force_event_acmd_err_status(&self) -> &FORCE_EVENT_ACMD_ERR_STATUS
pub fn force_event_acmd_err_status(&self) -> &FORCE_EVENT_ACMD_ERR_STATUS
0x50 - Force Event Register for Auto CMD Error Status
sourcepub fn force_event_err_status(&self) -> &FORCE_EVENT_ERR_STATUS
pub fn force_event_err_status(&self) -> &FORCE_EVENT_ERR_STATUS
0x52 - Force Event Register for Error Interrupt Status
sourcepub fn slot_int_status(&self) -> &SLOT_INT_STATUS
pub fn slot_int_status(&self) -> &SLOT_INT_STATUS
0xfc - Slot Interrupt Status Register