#[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn diepmsk(&self) -> &DIEPMSK
pub const fn diepmsk(&self) -> &DIEPMSK
0x10 - OTG_FS device IN endpoint common interrupt mask register (OTG_FS_DIEPMSK)
Sourcepub const fn doepmsk(&self) -> &DOEPMSK
pub const fn doepmsk(&self) -> &DOEPMSK
0x14 - OTG_FS device OUT endpoint common interrupt mask register (OTG_FS_DOEPMSK)
Sourcepub const fn daint(&self) -> &DAINT
pub const fn daint(&self) -> &DAINT
0x18 - OTG_FS device all endpoints interrupt register (OTG_FS_DAINT)
Sourcepub const fn daintmsk(&self) -> &DAINTMSK
pub const fn daintmsk(&self) -> &DAINTMSK
0x1c - OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK)
Sourcepub const fn dvbuspulse(&self) -> &DVBUSPULSE
pub const fn dvbuspulse(&self) -> &DVBUSPULSE
0x2c - OTG_FS device VBUS pulsing time register
Sourcepub const fn diepempmsk(&self) -> &DIEPEMPMSK
pub const fn diepempmsk(&self) -> &DIEPEMPMSK
0x34 - OTG_FS device IN endpoint FIFO empty interrupt mask register
Sourcepub const fn diep(&self, n: usize) -> &DIEP
pub const fn diep(&self, n: usize) -> &DIEP
0x120..0x180 - Device IN endpoint X
`n` is the index of cluster in the array. `n == 0` corresponds to `DIEP1` cluster.
Sourcepub fn diep_iter(&self) -> impl Iterator<Item = &DIEP>
pub fn diep_iter(&self) -> impl Iterator<Item = &DIEP>
Iterator for array of: 0x120..0x180 - Device IN endpoint X
Sourcepub const fn doep(&self, n: usize) -> &DOEP
pub const fn doep(&self, n: usize) -> &DOEP
0x320..0x380 - Device IN endpoint X
`n` is the index of cluster in the array. `n == 0` corresponds to `DOEP1` cluster.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more