Struct rk3399_pac::Emmccore
source · pub struct Emmccore { /* private fields */ }
Expand description
eMMC Controller (EMMCCORE) Registers
Implementations§
source§impl Emmccore
impl Emmccore
sourcepub const PTR: *const RegisterBlock = {0xfe330000 as *const emmccore::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xfe330000 as *const emmccore::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 blkgapctrl(&self) -> &Blkgapctrl
pub fn blkgapctrl(&self) -> &Blkgapctrl
0x2a - Block gap control register
sourcepub fn norintstsena(&self) -> &Norintstsena
pub fn norintstsena(&self) -> &Norintstsena
0x34 - Normal interrupt status enable register
sourcepub fn errintstsena(&self) -> &Errintstsena
pub fn errintstsena(&self) -> &Errintstsena
0x36 - Error interrupt status enable register
sourcepub fn norintsigena(&self) -> &Norintsigena
pub fn norintsigena(&self) -> &Norintsigena
0x38 - Normal interrupt signal enable register
sourcepub fn errintsigena(&self) -> &Errintsigena
pub fn errintsigena(&self) -> &Errintsigena
0x3a - Error interrupt signal enable register
sourcepub fn acmderrsts(&self) -> &Acmderrsts
pub fn acmderrsts(&self) -> &Acmderrsts
0x3c - Auto CMD error status register
sourcepub fn admaerrsts(&self) -> &Admaerrsts
pub fn admaerrsts(&self) -> &Admaerrsts
0x54 - ADMA error status register
sourcepub fn pvalsdr104(&self) -> &Pvalsdr104
pub fn pvalsdr104(&self) -> &Pvalsdr104
0x6c - Preset value register for SDR104
sourcepub fn boottimeout(&self) -> &Boottimeout
pub fn boottimeout(&self) -> &Boottimeout
0x70 - Boot timeout control register
sourcepub fn slotintsts(&self) -> &Slotintsts
pub fn slotintsts(&self) -> &Slotintsts
0xfc - Slot interrupt status register
sourcepub fn cqintstsena(&self) -> &Cqintstsena
pub fn cqintstsena(&self) -> &Cqintstsena
0x214 - Command queueing interrupt status enable register
sourcepub fn cqintsigena(&self) -> &Cqintsigena
pub fn cqintsigena(&self) -> &Cqintsigena
0x218 - Command queueing interrupt signal enable register
sourcepub fn cqtdlba(&self) -> &Cqtdlba
pub fn cqtdlba(&self) -> &Cqtdlba
0x220 - Command queueing task descriptor list base address register
sourcepub fn cqtdlbau(&self) -> &Cqtdlbau
pub fn cqtdlbau(&self) -> &Cqtdlbau
0x224 - Command queueing task descriptor list base address upper 32bits register