pub struct USB1 { /* private fields */ }Expand description
USB2.0 HOST
Implementations§
Source§impl USB1
impl USB1
Sourcepub const PTR: *const RegisterBlock = {0x4200000 as *const usb1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4200000 as *const usb1::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 ehci_capability(&self) -> &EHCI_CAPABILITY
pub fn ehci_capability(&self) -> &EHCI_CAPABILITY
0x00..0x10 - EHCI Capability Register
Sourcepub fn ehci_operational(&self) -> &EHCI_OPERATIONAL
pub fn ehci_operational(&self) -> &EHCI_OPERATIONAL
0x10..0x58 - EHCI Operational Register
Sourcepub fn ohci_control_status_partition(&self) -> &OHCI_CONTROL_STATUS_PARTITION
pub fn ohci_control_status_partition(&self) -> &OHCI_CONTROL_STATUS_PARTITION
0x404..0x418 - OHCI Control and Status Partition Register
Sourcepub fn ohci_memory_pointer_partition(&self) -> &OHCI_MEMORY_POINTER_PARTITION
pub fn ohci_memory_pointer_partition(&self) -> &OHCI_MEMORY_POINTER_PARTITION
0x418..0x434 - OHCI Memory Pointer Partition Register
Sourcepub fn ohci_frame_counter_partition(&self) -> &OHCI_FRAME_COUNTER_PARTITION
pub fn ohci_frame_counter_partition(&self) -> &OHCI_FRAME_COUNTER_PARTITION
0x434..0x448 - OHCI Frame Counter Partition Register
Sourcepub fn ohci_root_hub_partition(&self) -> &OHCI_ROOT_HUB_PARTITION
pub fn ohci_root_hub_partition(&self) -> &OHCI_ROOT_HUB_PARTITION
0x448..0x458 - OHCI Root Hub Partition Register
Sourcepub fn hci_controller_phy_interface(&self) -> &HCI_CONTROLLER_PHY_INTERFACE
pub fn hci_controller_phy_interface(&self) -> &HCI_CONTROLLER_PHY_INTERFACE
0x800..0x82c - HCI Controller and PHY Interface Register