pub struct UHCI0 { /* private fields */ }
Expand description
Universal Host Controller Interface 0
Implementations§
Source§impl UHCI0
impl UHCI0
Sourcepub const PTR: *const RegisterBlock = {0x60014000 as *const uhci0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60014000 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 app_int_set(&self) -> &APP_INT_SET
pub fn app_int_set(&self) -> &APP_INT_SET
0x14 - Software interrupt trigger source
Sourcepub fn escape_conf(&self) -> &ESCAPE_CONF
pub fn escape_conf(&self) -> &ESCAPE_CONF
0x24 - Escape character configuration
Sourcepub fn quick_sent(&self) -> &QUICK_SENT
pub fn quick_sent(&self) -> &QUICK_SENT
0x34 - UHCI quick send configuration register
Sourcepub fn reg_q(&self, n: usize) -> ®_Q
pub fn reg_q(&self, n: usize) -> ®_Q
0x38..0x70 - 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: 0x38..0x70 - Cluster REG_Q%s, containing REG_Q?_WORD0, REG_Q?_WORD1
Sourcepub fn esc_conf(&self, n: usize) -> &ESC_CONF
pub fn esc_conf(&self, n: usize) -> &ESC_CONF
0x70..0x80 - Escape sequence configuration register %s
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: 0x70..0x80 - Escape sequence configuration register %s