Struct rk3399_pac::Usb3Otg1
source · pub struct Usb3Otg1 { /* private fields */ }
Expand description
USB 3.0/2.0 OTG Register 1 (USB3_OTG1) Registers
Implementations§
source§impl Usb3Otg1
impl Usb3Otg1
sourcepub const PTR: *const RegisterBlock = {0xfe900000 as *const usb3::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xfe900000 as *const usb3::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
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn gbuserraddrlo(&self) -> &Gbuserraddrlo
pub fn gbuserraddrlo(&self) -> &Gbuserraddrlo
0xc130 - Global SoC Bus Error Address Register - Low
sourcepub fn gbuserraddrhi(&self) -> &Gbuserraddrhi
pub fn gbuserraddrhi(&self) -> &Gbuserraddrhi
0xc134 - Global SoC Bus Error Address Register - High
sourcepub fn gprtbimaplo(&self) -> &Gprtbimaplo
pub fn gprtbimaplo(&self) -> &Gprtbimaplo
0xc138 - Global SS Port to Bus Instance Mapping Register - Low
sourcepub fn ghwparams0(&self) -> &Ghwparams0
pub fn ghwparams0(&self) -> &Ghwparams0
0xc140 - Global Hardware Parameters Register 0
sourcepub fn ghwparams1(&self) -> &Ghwparams1
pub fn ghwparams1(&self) -> &Ghwparams1
0xc144 - Global Hardware Parameters Register 1
sourcepub fn ghwparams2(&self) -> &Ghwparams2
pub fn ghwparams2(&self) -> &Ghwparams2
0xc148 - Global Hardware Parameters Register 2
sourcepub fn ghwparams3(&self) -> &Ghwparams3
pub fn ghwparams3(&self) -> &Ghwparams3
0xc14c - Global Hardware Parameters Register 3
sourcepub fn ghwparams4(&self) -> &Ghwparams4
pub fn ghwparams4(&self) -> &Ghwparams4
0xc150 - Global Hardware Parameters Register 4
sourcepub fn ghwparams5(&self) -> &Ghwparams5
pub fn ghwparams5(&self) -> &Ghwparams5
0xc154 - Global Hardware Parameters Register 5
sourcepub fn ghwparams6(&self) -> &Ghwparams6
pub fn ghwparams6(&self) -> &Ghwparams6
0xc158 - Global Hardware Parameters Register 6
sourcepub fn ghwparams7(&self) -> &Ghwparams7
pub fn ghwparams7(&self) -> &Ghwparams7
0xc15c - Global Hardware Parameters Register 7
sourcepub fn gdbgfifospace(&self) -> &Gdbgfifospace
pub fn gdbgfifospace(&self) -> &Gdbgfifospace
0xc160 - Global Debug Queue/FIFO Space Available Register
sourcepub fn gdbglspmux(&self) -> &Gdbglspmux
pub fn gdbglspmux(&self) -> &Gdbglspmux
0xc170 - Global Debug LSP MUX Register - Device
sourcepub fn gdbgepinfo0(&self) -> &Gdbgepinfo0
pub fn gdbgepinfo0(&self) -> &Gdbgepinfo0
0xc178 - Global Debug Endpoint Information Register 0
sourcepub fn gdbgepinfo1(&self) -> &Gdbgepinfo1
pub fn gdbgepinfo1(&self) -> &Gdbgepinfo1
0xc17c - Global Debug Endpoint Information Register 1
sourcepub fn gprtbimap_hslo(&self) -> &GprtbimapHslo
pub fn gprtbimap_hslo(&self) -> &GprtbimapHslo
0xc180 - Global High-Speed Port to Bus Instance Mapping Register - Low
sourcepub fn gprtbimap_fslo(&self) -> &GprtbimapFslo
pub fn gprtbimap_fslo(&self) -> &GprtbimapFslo
0xc188 - Global Full-Speed Port to Bus Instance Mapping Register - Low
sourcepub fn gusb2phycfg0(&self) -> &Gusb2phycfg0
pub fn gusb2phycfg0(&self) -> &Gusb2phycfg0
0xc200 - Global USB2 PHY Configuration Register 0
sourcepub fn gusb3pipectl0(&self) -> &Gusb3pipectl0
pub fn gusb3pipectl0(&self) -> &Gusb3pipectl0
0xc2c0 - Global USB3 PIPE Control Register 0
sourcepub fn gtxfifosiz(&self, n: usize) -> &Gtxfifosiz
pub fn gtxfifosiz(&self, n: usize) -> &Gtxfifosiz
0xc300..0xc31c - Global Transmit FIFO Size Register n
sourcepub fn gtxfifosiz_iter(&self) -> impl Iterator<Item = &Gtxfifosiz>
pub fn gtxfifosiz_iter(&self) -> impl Iterator<Item = &Gtxfifosiz>
Iterator for array of: 0xc300..0xc31c - Global Transmit FIFO Size Register n
sourcepub fn grxfifosiz(&self, n: usize) -> &Grxfifosiz
pub fn grxfifosiz(&self, n: usize) -> &Grxfifosiz
0xc380..0xc38c - Global Receive FIFO Size Register n
sourcepub fn grxfifosiz_iter(&self) -> impl Iterator<Item = &Grxfifosiz>
pub fn grxfifosiz_iter(&self) -> impl Iterator<Item = &Grxfifosiz>
Iterator for array of: 0xc380..0xc38c - Global Receive FIFO Size Register n
sourcepub fn gevntadrlo0(&self) -> &Gevntadrlo0
pub fn gevntadrlo0(&self) -> &Gevntadrlo0
0xc400 - Global Event Buffer Address (Low) Register 0
sourcepub fn gevntadrhi0(&self) -> &Gevntadrhi0
pub fn gevntadrhi0(&self) -> &Gevntadrhi0
0xc404 - Global Event Buffer Address (High) Register 0
sourcepub fn gevntcount0(&self) -> &Gevntcount0
pub fn gevntcount0(&self) -> &Gevntcount0
0xc40c - Global Event Buffer Count Register 0
sourcepub fn ghwparams8(&self) -> &Ghwparams8
pub fn ghwparams8(&self) -> &Ghwparams8
0xc600 - Global Hardware Parameters Register 8
sourcepub fn gtxfifopridev(&self) -> &Gtxfifopridev
pub fn gtxfifopridev(&self) -> &Gtxfifopridev
0xc610 - Global Device TX FIFO DMA Priority Register
sourcepub fn gtxfifoprihst(&self) -> &Gtxfifoprihst
pub fn gtxfifoprihst(&self) -> &Gtxfifoprihst
0xc618 - Global Host TX FIFO DMA Priority Register
sourcepub fn grxfifoprihst(&self) -> &Grxfifoprihst
pub fn grxfifoprihst(&self) -> &Grxfifoprihst
0xc61c - Global Host RX FIFO DMA Priority Register
sourcepub fn gfifopridbc(&self) -> &Gfifopridbc
pub fn gfifopridbc(&self) -> &Gfifopridbc
0xc620 - Global Host Debug Capability DMA Priority Register
sourcepub fn gdmahlratio(&self) -> &Gdmahlratio
pub fn gdmahlratio(&self) -> &Gdmahlratio
0xc624 - Global Host FIFO DMA High-Low Priority Ratio Register
sourcepub fn depcmdpar2(&self, n: usize) -> &Depcmdpar2
pub fn depcmdpar2(&self, n: usize) -> &Depcmdpar2
0xc800..0xc834 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn depcmdpar2_iter(&self) -> impl Iterator<Item = &Depcmdpar2>
pub fn depcmdpar2_iter(&self) -> impl Iterator<Item = &Depcmdpar2>
Iterator for array of: 0xc800..0xc834 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep0cmdpar2(&self) -> &Depcmdpar2
pub fn dep0cmdpar2(&self) -> &Depcmdpar2
0xc800 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep1cmdpar2(&self) -> &Depcmdpar2
pub fn dep1cmdpar2(&self) -> &Depcmdpar2
0xc810 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep2cmdpar2(&self) -> &Depcmdpar2
pub fn dep2cmdpar2(&self) -> &Depcmdpar2
0xc820 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep3cmdpar2(&self) -> &Depcmdpar2
pub fn dep3cmdpar2(&self) -> &Depcmdpar2
0xc830 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep4cmdpar2(&self) -> &Depcmdpar2
pub fn dep4cmdpar2(&self) -> &Depcmdpar2
0xc840 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep5cmdpar2(&self) -> &Depcmdpar2
pub fn dep5cmdpar2(&self) -> &Depcmdpar2
0xc850 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep6cmdpar2(&self) -> &Depcmdpar2
pub fn dep6cmdpar2(&self) -> &Depcmdpar2
0xc860 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep7cmdpar2(&self) -> &Depcmdpar2
pub fn dep7cmdpar2(&self) -> &Depcmdpar2
0xc870 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep8cmdpar2(&self) -> &Depcmdpar2
pub fn dep8cmdpar2(&self) -> &Depcmdpar2
0xc880 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep9cmdpar2(&self) -> &Depcmdpar2
pub fn dep9cmdpar2(&self) -> &Depcmdpar2
0xc890 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep10cmdpar2(&self) -> &Depcmdpar2
pub fn dep10cmdpar2(&self) -> &Depcmdpar2
0xc8a0 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep11cmdpar2(&self) -> &Depcmdpar2
pub fn dep11cmdpar2(&self) -> &Depcmdpar2
0xc8b0 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn dep12cmdpar2(&self) -> &Depcmdpar2
pub fn dep12cmdpar2(&self) -> &Depcmdpar2
0xc8c0 - Device Physical Endpoint-n Command Parameter 2 Register
sourcepub fn depcmdpar1(&self, n: usize) -> &Depcmdpar1
pub fn depcmdpar1(&self, n: usize) -> &Depcmdpar1
0xc804..0xc838 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn depcmdpar1_iter(&self) -> impl Iterator<Item = &Depcmdpar1>
pub fn depcmdpar1_iter(&self) -> impl Iterator<Item = &Depcmdpar1>
Iterator for array of: 0xc804..0xc838 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep0cmdpar1(&self) -> &Depcmdpar1
pub fn dep0cmdpar1(&self) -> &Depcmdpar1
0xc804 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep1cmdpar1(&self) -> &Depcmdpar1
pub fn dep1cmdpar1(&self) -> &Depcmdpar1
0xc814 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep2cmdpar1(&self) -> &Depcmdpar1
pub fn dep2cmdpar1(&self) -> &Depcmdpar1
0xc824 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep3cmdpar1(&self) -> &Depcmdpar1
pub fn dep3cmdpar1(&self) -> &Depcmdpar1
0xc834 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep4cmdpar1(&self) -> &Depcmdpar1
pub fn dep4cmdpar1(&self) -> &Depcmdpar1
0xc844 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep5cmdpar1(&self) -> &Depcmdpar1
pub fn dep5cmdpar1(&self) -> &Depcmdpar1
0xc854 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep6cmdpar1(&self) -> &Depcmdpar1
pub fn dep6cmdpar1(&self) -> &Depcmdpar1
0xc864 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep7cmdpar1(&self) -> &Depcmdpar1
pub fn dep7cmdpar1(&self) -> &Depcmdpar1
0xc874 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep8cmdpar1(&self) -> &Depcmdpar1
pub fn dep8cmdpar1(&self) -> &Depcmdpar1
0xc884 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep9cmdpar1(&self) -> &Depcmdpar1
pub fn dep9cmdpar1(&self) -> &Depcmdpar1
0xc894 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep10cmdpar1(&self) -> &Depcmdpar1
pub fn dep10cmdpar1(&self) -> &Depcmdpar1
0xc8a4 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep11cmdpar1(&self) -> &Depcmdpar1
pub fn dep11cmdpar1(&self) -> &Depcmdpar1
0xc8b4 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn dep12cmdpar1(&self) -> &Depcmdpar1
pub fn dep12cmdpar1(&self) -> &Depcmdpar1
0xc8c4 - Device Physical Endpoint-n Command Parameter 1 Register
sourcepub fn depcmdpar0(&self, n: usize) -> &Depcmdpar0
pub fn depcmdpar0(&self, n: usize) -> &Depcmdpar0
0xc808..0xc83c - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn depcmdpar0_iter(&self) -> impl Iterator<Item = &Depcmdpar0>
pub fn depcmdpar0_iter(&self) -> impl Iterator<Item = &Depcmdpar0>
Iterator for array of: 0xc808..0xc83c - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep0cmdpar0(&self) -> &Depcmdpar0
pub fn dep0cmdpar0(&self) -> &Depcmdpar0
0xc808 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep1cmdpar0(&self) -> &Depcmdpar0
pub fn dep1cmdpar0(&self) -> &Depcmdpar0
0xc818 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep2cmdpar0(&self) -> &Depcmdpar0
pub fn dep2cmdpar0(&self) -> &Depcmdpar0
0xc828 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep3cmdpar0(&self) -> &Depcmdpar0
pub fn dep3cmdpar0(&self) -> &Depcmdpar0
0xc838 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep4cmdpar0(&self) -> &Depcmdpar0
pub fn dep4cmdpar0(&self) -> &Depcmdpar0
0xc848 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep5cmdpar0(&self) -> &Depcmdpar0
pub fn dep5cmdpar0(&self) -> &Depcmdpar0
0xc858 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep6cmdpar0(&self) -> &Depcmdpar0
pub fn dep6cmdpar0(&self) -> &Depcmdpar0
0xc868 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep7cmdpar0(&self) -> &Depcmdpar0
pub fn dep7cmdpar0(&self) -> &Depcmdpar0
0xc878 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep8cmdpar0(&self) -> &Depcmdpar0
pub fn dep8cmdpar0(&self) -> &Depcmdpar0
0xc888 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep9cmdpar0(&self) -> &Depcmdpar0
pub fn dep9cmdpar0(&self) -> &Depcmdpar0
0xc898 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep10cmdpar0(&self) -> &Depcmdpar0
pub fn dep10cmdpar0(&self) -> &Depcmdpar0
0xc8a8 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep11cmdpar0(&self) -> &Depcmdpar0
pub fn dep11cmdpar0(&self) -> &Depcmdpar0
0xc8b8 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn dep12cmdpar0(&self) -> &Depcmdpar0
pub fn dep12cmdpar0(&self) -> &Depcmdpar0
0xc8c8 - Device Physical Endpoint-n Command Parameter 0 Register
sourcepub fn depcmd(&self, n: usize) -> &Depcmd
pub fn depcmd(&self, n: usize) -> &Depcmd
0xc80c..0xc840 - Device Physical Endpoint-n Command Register
sourcepub fn depcmd_iter(&self) -> impl Iterator<Item = &Depcmd>
pub fn depcmd_iter(&self) -> impl Iterator<Item = &Depcmd>
Iterator for array of: 0xc80c..0xc840 - Device Physical Endpoint-n Command Register