pub struct USB0 { /* private fields */ }
Expand description
USB OTG (On-The-Go)
Implementations§
Source§impl USB0
impl USB0
Sourcepub const PTR: *const RegisterBlock = {0x60080000 as *const usb0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60080000 as *const usb0::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 dieptxf(&self, n: usize) -> &DIEPTXF
pub fn dieptxf(&self, n: usize) -> &DIEPTXF
0x104..0x114 -
Sourcepub fn dieptxf_iter(&self) -> impl Iterator<Item = &DIEPTXF>
pub fn dieptxf_iter(&self) -> impl Iterator<Item = &DIEPTXF>
Iterator for array of: 0x104..0x114 -
Sourcepub fn hc(&self, n: usize) -> &HC
pub fn hc(&self, n: usize) -> &HC
0x500..0x600 - Cluster HC%s, containing HCCHAR?, HCINT?, HCINTMSK?, HCTSIZ?, HCDMA?, HCDMAB?
Sourcepub fn hc_iter(&self) -> impl Iterator<Item = &HC>
pub fn hc_iter(&self) -> impl Iterator<Item = &HC>
Iterator for array of: 0x500..0x600 - Cluster HC%s, containing HCCHAR?, HCINT?, HCINTMSK?, HCTSIZ?, HCDMA?, HCDMAB?
Sourcepub fn dvbuspulse(&self) -> &DVBUSPULSE
pub fn dvbuspulse(&self) -> &DVBUSPULSE
0x82c -
Sourcepub fn diepempmsk(&self) -> &DIEPEMPMSK
pub fn diepempmsk(&self) -> &DIEPEMPMSK
0x834 -
Sourcepub fn in_ep(&self, n: usize) -> &IN_EP
pub fn in_ep(&self, n: usize) -> &IN_EP
0x920..0x9e0 - Device IN endpoints 1-6
Sourcepub fn in_ep_iter(&self) -> impl Iterator<Item = &IN_EP>
pub fn in_ep_iter(&self) -> impl Iterator<Item = &IN_EP>
Iterator for array of: 0x920..0x9e0 - Device IN endpoints 1-6
Sourcepub fn out_ep(&self, n: usize) -> &OUT_EP
pub fn out_ep(&self, n: usize) -> &OUT_EP
0xb20..0xbe0 - Device OUT endpoints 1-6
Sourcepub fn out_ep_iter(&self) -> impl Iterator<Item = &OUT_EP>
pub fn out_ep_iter(&self) -> impl Iterator<Item = &OUT_EP>
Iterator for array of: 0xb20..0xbe0 - Device OUT endpoints 1-6