pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn gotgctl(&self) -> &Reg<GOTGCTLrs>
pub const fn gotgctl(&self) -> &Reg<GOTGCTLrs>
0x00 - OTG_FS control and status register (OTG_FS_GOTGCTL)
Sourcepub const fn gotgint(&self) -> &Reg<GOTGINTrs>
pub const fn gotgint(&self) -> &Reg<GOTGINTrs>
0x04 - OTG_FS interrupt register (OTG_FS_GOTGINT)
Sourcepub const fn gahbcfg(&self) -> &Reg<GAHBCFGrs>
pub const fn gahbcfg(&self) -> &Reg<GAHBCFGrs>
0x08 - OTG_FS AHB configuration register (OTG_FS_GAHBCFG)
Sourcepub const fn gusbcfg(&self) -> &Reg<GUSBCFGrs>
pub const fn gusbcfg(&self) -> &Reg<GUSBCFGrs>
0x0c - OTG_FS USB configuration register (OTG_FS_GUSBCFG)
Sourcepub const fn gintsts(&self) -> &Reg<GINTSTSrs>
pub const fn gintsts(&self) -> &Reg<GINTSTSrs>
0x14 - OTG_FS core interrupt register (OTG_FS_GINTSTS)
Sourcepub const fn gintmsk(&self) -> &Reg<GINTMSKrs>
pub const fn gintmsk(&self) -> &Reg<GINTMSKrs>
0x18 - OTG_FS interrupt mask register (OTG_FS_GINTMSK)
Sourcepub const fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOSTrs>
pub const fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOSTrs>
0x1c - OTG status debug read (host mode)
Sourcepub const fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICErs>
pub const fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICErs>
0x1c - OTG_FS Receive status debug read(Device mode)
Sourcepub const fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOSTrs>
pub const fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOSTrs>
0x20 - OTG status read and pop (host mode)
Sourcepub const fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICErs>
pub const fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICErs>
0x20 - OTG status read and pop (device mode)
Sourcepub const fn grxfsiz(&self) -> &Reg<GRXFSIZrs>
pub const fn grxfsiz(&self) -> &Reg<GRXFSIZrs>
0x24 - OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)
Sourcepub const fn hnptxfsiz(&self) -> &Reg<HNPTXFSIZrs>
pub const fn hnptxfsiz(&self) -> &Reg<HNPTXFSIZrs>
0x28 - OTG_FS non-periodic transmit FIFO size register (Host mode)
Sourcepub const fn dieptxf0(&self) -> &Reg<DIEPTXF0rs>
pub const fn dieptxf0(&self) -> &Reg<DIEPTXF0rs>
0x28 - OTG_FS non-periodic transmit FIFO size register (Device mode)
Sourcepub const fn gnptxsts(&self) -> &Reg<GNPTXSTSrs>
pub const fn gnptxsts(&self) -> &Reg<GNPTXSTSrs>
0x2c - OTG_FS non-periodic transmit FIFO/queue status register (OTG_FS_GNPTXSTS)
Sourcepub const fn gccfg(&self) -> &Reg<GCCFGrs>
pub const fn gccfg(&self) -> &Reg<GCCFGrs>
0x38 - OTG_FS general core configuration register (OTG_FS_GCCFG)
Sourcepub const fn hptxfsiz(&self) -> &Reg<HPTXFSIZrs>
pub const fn hptxfsiz(&self) -> &Reg<HPTXFSIZrs>
0x100 - OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ)
Sourcepub const fn dieptxf(&self, n: usize) -> &Reg<DIEPTXFrs>
pub const fn dieptxf(&self, n: usize) -> &Reg<DIEPTXFrs>
0x104..0x110 - OTG_FS device IN endpoint transmit FIFO size register
Sourcepub fn dieptxf_iter(&self) -> impl Iterator<Item = &Reg<DIEPTXFrs>>
pub fn dieptxf_iter(&self) -> impl Iterator<Item = &Reg<DIEPTXFrs>>
Iterator for array of: 0x104..0x110 - OTG_FS device IN endpoint transmit FIFO size register
Sourcepub const fn dieptxf1(&self) -> &Reg<DIEPTXFrs>
pub const fn dieptxf1(&self) -> &Reg<DIEPTXFrs>
0x104 - OTG_FS device IN endpoint transmit FIFO size register