Struct stm32_hal2::pac::otg1_hs_global::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 20 fields
pub gotgctl: Reg<GOTGCTL_SPEC>,
pub gotgint: Reg<GOTGINT_SPEC>,
pub gahbcfg: Reg<GAHBCFG_SPEC>,
pub gusbcfg: Reg<GUSBCFG_SPEC>,
pub grstctl: Reg<GRSTCTL_SPEC>,
pub gintsts: Reg<GINTSTS_SPEC>,
pub gintmsk: Reg<GINTMSK_SPEC>,
pub grxfsiz: Reg<GRXFSIZ_SPEC>,
pub gnptxsts: Reg<GNPTXSTS_SPEC>,
pub gccfg: Reg<GCCFG_SPEC>,
pub cid: Reg<CID_SPEC>,
pub glpmcfg: Reg<GLPMCFG_SPEC>,
pub hptxfsiz: Reg<HPTXFSIZ_SPEC>,
pub dieptxf1: Reg<DIEPTXF1_SPEC>,
pub dieptxf2: Reg<DIEPTXF2_SPEC>,
pub dieptxf3: Reg<DIEPTXF3_SPEC>,
pub dieptxf4: Reg<DIEPTXF4_SPEC>,
pub dieptxf5: Reg<DIEPTXF5_SPEC>,
pub dieptxf6: Reg<DIEPTXF6_SPEC>,
pub dieptxf7: Reg<DIEPTXF7_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
gotgctl: Reg<GOTGCTL_SPEC>
0x00 - OTG_HS control and status register
gotgint: Reg<GOTGINT_SPEC>
0x04 - OTG_HS interrupt register
gahbcfg: Reg<GAHBCFG_SPEC>
0x08 - OTG_HS AHB configuration register
gusbcfg: Reg<GUSBCFG_SPEC>
0x0c - OTG_HS USB configuration register
grstctl: Reg<GRSTCTL_SPEC>
0x10 - OTG_HS reset register
gintsts: Reg<GINTSTS_SPEC>
0x14 - OTG_HS core interrupt register
gintmsk: Reg<GINTMSK_SPEC>
0x18 - OTG_HS interrupt mask register
grxfsiz: Reg<GRXFSIZ_SPEC>
0x24 - OTG_HS Receive FIFO size register
gnptxsts: Reg<GNPTXSTS_SPEC>
0x2c - OTG_HS nonperiodic transmit FIFO/queue status register
gccfg: Reg<GCCFG_SPEC>
0x38 - OTG_HS general core configuration register
cid: Reg<CID_SPEC>
0x3c - OTG_HS core ID register
glpmcfg: Reg<GLPMCFG_SPEC>
0x54 - OTG core LPM configuration register
hptxfsiz: Reg<HPTXFSIZ_SPEC>
0x100 - OTG_HS Host periodic transmit FIFO size register
dieptxf1: Reg<DIEPTXF1_SPEC>
0x104 - OTG_HS device IN endpoint transmit FIFO size register
dieptxf2: Reg<DIEPTXF2_SPEC>
0x108 - OTG_HS device IN endpoint transmit FIFO size register
dieptxf3: Reg<DIEPTXF3_SPEC>
0x11c - OTG_HS device IN endpoint transmit FIFO size register
dieptxf4: Reg<DIEPTXF4_SPEC>
0x120 - OTG_HS device IN endpoint transmit FIFO size register
dieptxf5: Reg<DIEPTXF5_SPEC>
0x124 - OTG_HS device IN endpoint transmit FIFO size register
dieptxf6: Reg<DIEPTXF6_SPEC>
0x128 - OTG_HS device IN endpoint transmit FIFO size register
dieptxf7: Reg<DIEPTXF7_SPEC>
0x12c - OTG_HS device IN endpoint transmit FIFO size register
Implementations
sourceimpl RegisterBlock
impl RegisterBlock
sourcepub fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICE_SPEC>
pub fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICE_SPEC>
0x1c - OTG_HS Receive status debug read register (peripheral mode mode)
sourcepub fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOST_SPEC>
pub fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOST_SPEC>
0x1c - OTG_HS Receive status debug read register (host mode)
sourcepub fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICE_SPEC>
pub fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICE_SPEC>
0x20 - OTG_HS status read and pop register (peripheral mode)
sourcepub fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOST_SPEC>
pub fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOST_SPEC>
0x20 - OTG_HS status read and pop register (host mode)
sourcepub fn dieptxf0_device(&self) -> &Reg<DIEPTXF0_DEVICE_SPEC>
pub fn dieptxf0_device(&self) -> &Reg<DIEPTXF0_DEVICE_SPEC>
0x28 - Endpoint 0 transmit FIFO size (peripheral mode)
sourcepub fn hnptxfsiz_host(&self) -> &Reg<HNPTXFSIZ_HOST_SPEC>
pub fn hnptxfsiz_host(&self) -> &Reg<HNPTXFSIZ_HOST_SPEC>
0x28 - OTG_HS nonperiodic transmit FIFO size register (host mode)