#[repr(C)]pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn dcfg(&self) -> &Reg<DCFGrs>
pub const fn dcfg(&self) -> &Reg<DCFGrs>
0x00 - OTG_FS device configuration register (OTG_FS_DCFG)
Sourcepub const fn diepmsk(&self) -> &Reg<DIEPMSKrs>
pub const fn diepmsk(&self) -> &Reg<DIEPMSKrs>
0x10 - OTG_FS device IN endpoint common interrupt mask register (OTG_FS_DIEPMSK)
Sourcepub const fn doepmsk(&self) -> &Reg<DOEPMSKrs>
pub const fn doepmsk(&self) -> &Reg<DOEPMSKrs>
0x14 - OTG_FS device OUT endpoint common interrupt mask register (OTG_FS_DOEPMSK)
Sourcepub const fn daint(&self) -> &Reg<DAINTrs>
pub const fn daint(&self) -> &Reg<DAINTrs>
0x18 - OTG_FS device all endpoints interrupt register (OTG_FS_DAINT)
Sourcepub const fn daintmsk(&self) -> &Reg<DAINTMSKrs>
pub const fn daintmsk(&self) -> &Reg<DAINTMSKrs>
0x1c - OTG_FS all endpoints interrupt mask register (OTG_FS_DAINTMSK)
Sourcepub const fn dvbusdis(&self) -> &Reg<DVBUSDISrs>
pub const fn dvbusdis(&self) -> &Reg<DVBUSDISrs>
0x28 - OTG_FS device VBUS discharge time register
Sourcepub const fn dvbuspulse(&self) -> &Reg<DVBUSPULSErs>
pub const fn dvbuspulse(&self) -> &Reg<DVBUSPULSErs>
0x2c - OTG_FS device VBUS pulsing time register
Sourcepub const fn diepempmsk(&self) -> &Reg<DIEPEMPMSKrs>
pub const fn diepempmsk(&self) -> &Reg<DIEPEMPMSKrs>
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