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) -> &BlockSize
pub fn block_size(&self) -> &BlockSize
0x04 - Block Size Register
sourcepub fn block_count(&self) -> &BlockCount
pub fn block_count(&self) -> &BlockCount
0x06 - Block Count Register
sourcepub fn transfer_mode(&self) -> &TransferMode
pub fn transfer_mode(&self) -> &TransferMode
0x0c - Transfer Mode Register
sourcepub fn data_buffer(&self) -> &DataBuffer
pub fn data_buffer(&self) -> &DataBuffer
0x20 - Data Buffer Register
sourcepub fn present_state(&self) -> &PresentState
pub fn present_state(&self) -> &PresentState
0x24 - Present State Register
sourcepub fn power_ctrl(&self) -> &PowerCtrl
pub fn power_ctrl(&self) -> &PowerCtrl
0x29 - Power Control Register
sourcepub fn block_gap_ctrl(&self) -> &BlockGapCtrl
pub fn block_gap_ctrl(&self) -> &BlockGapCtrl
0x2a - Block Gap Control Register
sourcepub fn wakeup_ctrl(&self) -> &WakeupCtrl
pub fn wakeup_ctrl(&self) -> &WakeupCtrl
0x2b - Wake-up Control Register
sourcepub fn clock_ctrl(&self) -> &ClockCtrl
pub fn clock_ctrl(&self) -> &ClockCtrl
0x2c - Clock Control Register
sourcepub fn timeout_ctrl(&self) -> &TimeoutCtrl
pub fn timeout_ctrl(&self) -> &TimeoutCtrl
0x2e - Timeout Control Register
sourcepub fn int_status_norm(&self) -> &IntStatusNorm
pub fn int_status_norm(&self) -> &IntStatusNorm
0x30 - Normal Interrupt Status Register
sourcepub fn int_status_err(&self) -> &IntStatusErr
pub fn int_status_err(&self) -> &IntStatusErr
0x32 - Error Interrupt Status Register
sourcepub fn en_int_status_norm(&self) -> &EnIntStatusNorm
pub fn en_int_status_norm(&self) -> &EnIntStatusNorm
0x34 - Normal Interrupt Status Enable Register
sourcepub fn en_int_status_err(&self) -> &EnIntStatusErr
pub fn en_int_status_err(&self) -> &EnIntStatusErr
0x36 - Error Interrupt Status Enable Register
sourcepub fn en_int_signal_norm(&self) -> &EnIntSignalNorm
pub fn en_int_signal_norm(&self) -> &EnIntSignalNorm
0x38 - Normal Interrupt Signal Enable Register
sourcepub fn en_int_signal_err(&self) -> &EnIntSignalErr
pub fn en_int_signal_err(&self) -> &EnIntSignalErr
0x3a - Error Interrupt Signal Enable Register
sourcepub fn acmd_err_status(&self) -> &AcmdErrStatus
pub fn acmd_err_status(&self) -> &AcmdErrStatus
0x3c - Auto CMD Error Status Register
sourcepub fn capabilities(&self) -> &Capabilities
pub fn capabilities(&self) -> &Capabilities
0x40 - Capabilities Register
sourcepub fn capabilities_hi(&self) -> &CapabilitiesHi
pub fn capabilities_hi(&self) -> &CapabilitiesHi
0x44 - Capabilities Register High
sourcepub fn max_current_cap(&self) -> &MaxCurrentCap
pub fn max_current_cap(&self) -> &MaxCurrentCap
0x48 - Maximum Current Capabilities Register
sourcepub fn force_event_acmd_err_status(&self) -> &ForceEventAcmdErrStatus
pub fn force_event_acmd_err_status(&self) -> &ForceEventAcmdErrStatus
0x50 - Force Event Register for Auto CMD Error Status
sourcepub fn force_event_err_status(&self) -> &ForceEventErrStatus
pub fn force_event_err_status(&self) -> &ForceEventErrStatus
0x52 - Force Event Register for Error Interrupt Status
sourcepub fn slot_int_status(&self) -> &SlotIntStatus
pub fn slot_int_status(&self) -> &SlotIntStatus
0xfc - Slot Interrupt Status Register