pub struct UHCI1 { /* private fields */ }
Expand description
Universal Host Controller Interface 1
Implementations§
source§impl UHCI1
impl UHCI1
sourcepub const PTR: *const RegisterBlock = {0x6000c000 as *const uhci0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x6000c000 as *const uhci0::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 escape_conf(&self) -> &ESCAPE_CONF
pub fn escape_conf(&self) -> &ESCAPE_CONF
0x20 - a
sourcepub fn quick_sent(&self) -> &QUICK_SENT
pub fn quick_sent(&self) -> &QUICK_SENT
0x30 - a
sourcepub fn reg_q(&self, n: usize) -> ®_Q
pub fn reg_q(&self, n: usize) -> ®_Q
0x34..0x6c - Cluster REG_Q%s, containing REG_Q?_WORD0, REG_Q?_WORD1
sourcepub fn reg_q_iter(&self) -> impl Iterator<Item = ®_Q>
pub fn reg_q_iter(&self) -> impl Iterator<Item = ®_Q>
Iterator for array of: 0x34..0x6c - Cluster REG_Q%s, containing REG_Q?_WORD0, REG_Q?_WORD1
sourcepub fn esc_conf_iter(&self) -> impl Iterator<Item = &ESC_CONF>
pub fn esc_conf_iter(&self) -> impl Iterator<Item = &ESC_CONF>
Iterator for array of: 0x6c..0x7c - a