pub struct UHCI0 { /* private fields */ }
Expand description
Universal Host Controller Interface 0
Implementations§
source§impl UHCI0
impl UHCI0
sourcepub const PTR: *const RegisterBlock = {0x3f414000 as *const uhci0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f414000 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 dma_out_status(&self) -> &DMA_OUT_STATUS
pub fn dma_out_status(&self) -> &DMA_OUT_STATUS
0x14 - DMA data-output status register
sourcepub fn dma_out_push(&self) -> &DMA_OUT_PUSH
pub fn dma_out_push(&self) -> &DMA_OUT_PUSH
0x18 - Push control register of TX FIFO
sourcepub fn dma_in_status(&self) -> &DMA_IN_STATUS
pub fn dma_in_status(&self) -> &DMA_IN_STATUS
0x1c - UHCI data-input status register
sourcepub fn dma_in_pop(&self) -> &DMA_IN_POP
pub fn dma_in_pop(&self) -> &DMA_IN_POP
0x20 - Pop control register of RX FIFO
sourcepub fn dma_out_link(&self) -> &DMA_OUT_LINK
pub fn dma_out_link(&self) -> &DMA_OUT_LINK
0x24 - Link descriptor address and control
sourcepub fn dma_in_link(&self) -> &DMA_IN_LINK
pub fn dma_in_link(&self) -> &DMA_IN_LINK
0x28 - Link descriptor address and control
sourcepub fn dma_out_eof_des_addr(&self) -> &DMA_OUT_EOF_DES_ADDR
pub fn dma_out_eof_des_addr(&self) -> &DMA_OUT_EOF_DES_ADDR
0x38 - Outlink descriptor address when EOF occurs
sourcepub fn dma_in_suc_eof_des_addr(&self) -> &DMA_IN_SUC_EOF_DES_ADDR
pub fn dma_in_suc_eof_des_addr(&self) -> &DMA_IN_SUC_EOF_DES_ADDR
0x3c - Inlink descriptor address when EOF occurs
sourcepub fn dma_in_err_eof_des_addr(&self) -> &DMA_IN_ERR_EOF_DES_ADDR
pub fn dma_in_err_eof_des_addr(&self) -> &DMA_IN_ERR_EOF_DES_ADDR
0x40 - Inlink descriptor address when errors occur
sourcepub fn dma_out_eof_bfr_des_addr(&self) -> &DMA_OUT_EOF_BFR_DES_ADDR
pub fn dma_out_eof_bfr_des_addr(&self) -> &DMA_OUT_EOF_BFR_DES_ADDR
0x44 - Outlink descriptor address before the last transmit descriptor
sourcepub fn dma_in_dscr(&self) -> &DMA_IN_DSCR
pub fn dma_in_dscr(&self) -> &DMA_IN_DSCR
0x4c - The third word of the next receive descriptor
sourcepub fn dma_in_dscr_bf0(&self) -> &DMA_IN_DSCR_BF0
pub fn dma_in_dscr_bf0(&self) -> &DMA_IN_DSCR_BF0
0x50 - The third word of current receive descriptor
sourcepub fn dma_out_dscr(&self) -> &DMA_OUT_DSCR
pub fn dma_out_dscr(&self) -> &DMA_OUT_DSCR
0x58 - The third word of the next transmit descriptor
sourcepub fn dma_out_dscr_bf0(&self) -> &DMA_OUT_DSCR_BF0
pub fn dma_out_dscr_bf0(&self) -> &DMA_OUT_DSCR_BF0
0x5c - The third word of current transmit descriptor
sourcepub fn escape_conf(&self) -> &ESCAPE_CONF
pub fn escape_conf(&self) -> &ESCAPE_CONF
0x64 - Escape character configuration
sourcepub fn quick_sent(&self) -> &QUICK_SENT
pub fn quick_sent(&self) -> &QUICK_SENT
0x74 - UHCI quick_sent configuration register
sourcepub fn q_iter(&self) -> impl Iterator<Item = &Q>
pub fn q_iter(&self) -> impl Iterator<Item = &Q>
Iterator for array of: 0x78..0xb0 - Cluster Q%s, containing Q?_WORD0, Q?_WORD1
sourcepub fn esc_conf(&self, n: usize) -> &ESC_CONF
pub fn esc_conf(&self, n: usize) -> &ESC_CONF
0xb0..0xc0 - 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: 0xb0..0xc0 - Escape sequence configuration register %s