pub struct USB { /* private fields */ }
Expand description
USB device/host/OTG controller
Implementations
sourceimpl USB
impl USB
sourcepub const PTR: *const RegisterBlock = {0x50008000 as *const usb::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50008000 as *const usb::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
Methods from Deref<Target = RegisterBlock>
sourcepub fn i2c_wo(&self) -> &Reg<I2C_WO_SPEC>
pub fn i2c_wo(&self) -> &Reg<I2C_WO_SPEC>
0x300 - I2C Transmit
sourcepub fn i2c_rx(&self) -> &Reg<I2C_RX_SPEC>
pub fn i2c_rx(&self) -> &Reg<I2C_RX_SPEC>
0x300 - I2C Receive
sourcepub fn otgclkctrl(&self) -> &Reg<OTGCLKCTRL_SPEC>
pub fn otgclkctrl(&self) -> &Reg<OTGCLKCTRL_SPEC>
0xff4 - OTG clock controller
sourcepub fn usbclkctrl(&self) -> &Reg<USBCLKCTRL_SPEC>
pub fn usbclkctrl(&self) -> &Reg<USBCLKCTRL_SPEC>
0xff4 - USB Clock Control
sourcepub fn otgclkst(&self) -> &Reg<OTGCLKST_SPEC>
pub fn otgclkst(&self) -> &Reg<OTGCLKST_SPEC>
0xff8 - OTG clock status
sourcepub fn usbclkst(&self) -> &Reg<USBCLKST_SPEC>
pub fn usbclkst(&self) -> &Reg<USBCLKST_SPEC>
0xff8 - USB Clock Status
Trait Implementations
sourceimpl Deref for USB
impl Deref for USB
type Target = RegisterBlock
type Target = RegisterBlock
The resulting type after dereferencing.
impl Send for USB
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more