pub struct SMHC2 { /* private fields */ }Expand description
SD/MMC Host Controller
Implementations§
Source§impl SMHC2
impl SMHC2
Sourcepub const PTR: *const RegisterBlock = {0x4022000 as *const smhc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4022000 as *const smhc::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 smhc_clkdiv(&self) -> &SMHC_CLKDIV
pub fn smhc_clkdiv(&self) -> &SMHC_CLKDIV
0x04 - Clock Control Register
Sourcepub fn smhc_tmout(&self) -> &SMHC_TMOUT
pub fn smhc_tmout(&self) -> &SMHC_TMOUT
0x08 - Time Out Register
Sourcepub fn smhc_ctype(&self) -> &SMHC_CTYPE
pub fn smhc_ctype(&self) -> &SMHC_CTYPE
0x0c - Bus Width Register
Sourcepub fn smhc_blksiz(&self) -> &SMHC_BLKSIZ
pub fn smhc_blksiz(&self) -> &SMHC_BLKSIZ
0x10 - Block Size Register
Sourcepub fn smhc_bytcnt(&self) -> &SMHC_BYTCNT
pub fn smhc_bytcnt(&self) -> &SMHC_BYTCNT
0x14 - Byte Count Register
Sourcepub fn smhc_cmdarg(&self) -> &SMHC_CMDARG
pub fn smhc_cmdarg(&self) -> &SMHC_CMDARG
0x1c - Command Argument Register
Sourcepub fn smhc_resp0(&self) -> &SMHC_RESP0
pub fn smhc_resp0(&self) -> &SMHC_RESP0
0x20 - Response 0 Register
Sourcepub fn smhc_resp1(&self) -> &SMHC_RESP1
pub fn smhc_resp1(&self) -> &SMHC_RESP1
0x24 - Response 1 Register
Sourcepub fn smhc_resp2(&self) -> &SMHC_RESP2
pub fn smhc_resp2(&self) -> &SMHC_RESP2
0x28 - Response 2 Register
Sourcepub fn smhc_resp3(&self) -> &SMHC_RESP3
pub fn smhc_resp3(&self) -> &SMHC_RESP3
0x2c - Response 3 Register
Sourcepub fn smhc_intmask(&self) -> &SMHC_INTMASK
pub fn smhc_intmask(&self) -> &SMHC_INTMASK
0x30 - Interrupt Mask Register
Sourcepub fn smhc_mintsts(&self) -> &SMHC_MINTSTS
pub fn smhc_mintsts(&self) -> &SMHC_MINTSTS
0x34 - Masked Interrupt Status Register
Sourcepub fn smhc_rintsts(&self) -> &SMHC_RINTSTS
pub fn smhc_rintsts(&self) -> &SMHC_RINTSTS
0x38 - Raw Interrupt Status Register
Sourcepub fn smhc_status(&self) -> &SMHC_STATUS
pub fn smhc_status(&self) -> &SMHC_STATUS
0x3c - Status Register
Sourcepub fn smhc_fifoth(&self) -> &SMHC_FIFOTH
pub fn smhc_fifoth(&self) -> &SMHC_FIFOTH
0x40 - FIFO Water Level Register
Sourcepub fn smhc_tbc0(&self) -> &SMHC_TBC0
pub fn smhc_tbc0(&self) -> &SMHC_TBC0
0x48 - Transferred Byte Count between Controller and Card
Sourcepub fn smhc_tbc1(&self) -> &SMHC_TBC1
pub fn smhc_tbc1(&self) -> &SMHC_TBC1
0x4c - Transferred Byte Count between Host Memory and Internal FIFO
Sourcepub fn smhc_hwrst(&self) -> &SMHC_HWRST
pub fn smhc_hwrst(&self) -> &SMHC_HWRST
0x78 - Hardware Reset Register
Sourcepub fn smhc_idmac(&self) -> &SMHC_IDMAC
pub fn smhc_idmac(&self) -> &SMHC_IDMAC
0x80 - IDMAC Control Register
Sourcepub fn emmc_ddr_sbit_det(&self) -> &EMMC_DDR_SBIT_DET
pub fn emmc_ddr_sbit_det(&self) -> &EMMC_DDR_SBIT_DET
0x10c - eMMC4.5 DDR Start Bit Detection Control Register
Sourcepub fn smhc_ext_cmd(&self) -> &SMHC_EXT_CMD
pub fn smhc_ext_cmd(&self) -> &SMHC_EXT_CMD
0x138 - Extended Command Register
Sourcepub fn smhc_ext_resp(&self) -> &SMHC_EXT_RESP
pub fn smhc_ext_resp(&self) -> &SMHC_EXT_RESP
0x13c - Extended Response Register
Sourcepub fn smhc_drv_dl(&self) -> &SMHC_DRV_DL
pub fn smhc_drv_dl(&self) -> &SMHC_DRV_DL
0x140 - Drive Delay Control Register
Sourcepub fn smhc_smap_dl(&self) -> &SMHC_SMAP_DL
pub fn smhc_smap_dl(&self) -> &SMHC_SMAP_DL
0x144 - Sample Delay Control Register
Sourcepub fn smhc_ds_dl(&self) -> &SMHC_DS_DL
pub fn smhc_ds_dl(&self) -> &SMHC_DS_DL
0x148 - Data Strobe Delay Control Register
Sourcepub fn smhc_hs400_dl(&self) -> &SMHC_HS400_DL
pub fn smhc_hs400_dl(&self) -> &SMHC_HS400_DL
0x14c - HS400 Delay Control Register