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

source

pub const PTR: *const RegisterBlock = {0xfe900000 as *const usb3::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

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>§

source

pub fn gsbuscfg0(&self) -> &Gsbuscfg0

0xc100 - Global SoC Bus Configuration Register 0

source

pub fn gsbuscfg1(&self) -> &Gsbuscfg1

0xc104 - Global SoC Bus Configuration Register 1

source

pub fn gtxthrcfg(&self) -> &Gtxthrcfg

0xc108 - Global Tx Threshold Control Register

source

pub fn grxthrcfg(&self) -> &Grxthrcfg

0xc10c - Global Rx Threshold Control Register

source

pub fn gctl(&self) -> &Gctl

0xc110 - Global Core Control Register

source

pub fn gpmsts(&self) -> &Gpmsts

0xc114 - Global Power Management Status Register

source

pub fn gsts(&self) -> &Gsts

0xc118 - Global Status Register

source

pub fn guctl1(&self) -> &Guctl1

0xc11c - Global User Control Register 1

source

pub fn gsnpsid(&self) -> &Gsnpsid

0xc120 - Global SNPS ID Register

source

pub fn ggpio(&self) -> &Ggpio

0xc124 - Global General Purpose Input/Output Register

source

pub fn guid(&self) -> &Guid

0xc128 - Global User ID Register

source

pub fn guctl(&self) -> &Guctl

0xc12c - Global User Control Register

source

pub fn gbuserraddrlo(&self) -> &Gbuserraddrlo

0xc130 - Global SoC Bus Error Address Register - Low

source

pub fn gbuserraddrhi(&self) -> &Gbuserraddrhi

0xc134 - Global SoC Bus Error Address Register - High

source

pub fn gprtbimaplo(&self) -> &Gprtbimaplo

0xc138 - Global SS Port to Bus Instance Mapping Register - Low

source

pub fn ghwparams0(&self) -> &Ghwparams0

0xc140 - Global Hardware Parameters Register 0

source

pub fn ghwparams1(&self) -> &Ghwparams1

0xc144 - Global Hardware Parameters Register 1

source

pub fn ghwparams2(&self) -> &Ghwparams2

0xc148 - Global Hardware Parameters Register 2

source

pub fn ghwparams3(&self) -> &Ghwparams3

0xc14c - Global Hardware Parameters Register 3

source

pub fn ghwparams4(&self) -> &Ghwparams4

0xc150 - Global Hardware Parameters Register 4

source

pub fn ghwparams5(&self) -> &Ghwparams5

0xc154 - Global Hardware Parameters Register 5

source

pub fn ghwparams6(&self) -> &Ghwparams6

0xc158 - Global Hardware Parameters Register 6

source

pub fn ghwparams7(&self) -> &Ghwparams7

0xc15c - Global Hardware Parameters Register 7

source

pub fn gdbgfifospace(&self) -> &Gdbgfifospace

0xc160 - Global Debug Queue/FIFO Space Available Register

source

pub fn gdbgltssm(&self) -> &Gdbgltssm

0xc164 - Global Debug LTSSM Register

source

pub fn gdbglnmcc(&self) -> &Gdbglnmcc

0xc168 - Global Debug LNMCC Register

source

pub fn gdbgbmu(&self) -> &Gdbgbmu

0xc16c - Global Debug BMU Register

source

pub fn gdbglspmux(&self) -> &Gdbglspmux

0xc170 - Global Debug LSP MUX Register - Device

source

pub fn gdbglsp(&self) -> &Gdbglsp

0xc174 - Global Debug LSP Register

source

pub fn gdbgepinfo0(&self) -> &Gdbgepinfo0

0xc178 - Global Debug Endpoint Information Register 0

source

pub fn gdbgepinfo1(&self) -> &Gdbgepinfo1

0xc17c - Global Debug Endpoint Information Register 1

source

pub fn gprtbimap_hslo(&self) -> &GprtbimapHslo

0xc180 - Global High-Speed Port to Bus Instance Mapping Register - Low

source

pub fn gprtbimap_fslo(&self) -> &GprtbimapFslo

0xc188 - Global Full-Speed Port to Bus Instance Mapping Register - Low

source

pub fn gusb2phycfg0(&self) -> &Gusb2phycfg0

0xc200 - Global USB2 PHY Configuration Register 0

source

pub fn gusb3pipectl0(&self) -> &Gusb3pipectl0

0xc2c0 - Global USB3 PIPE Control Register 0

source

pub fn gtxfifosiz(&self, n: usize) -> &Gtxfifosiz

0xc300..0xc31c - Global Transmit FIFO Size Register n

source

pub fn gtxfifosiz_iter(&self) -> impl Iterator<Item = &Gtxfifosiz>

Iterator for array of: 0xc300..0xc31c - Global Transmit FIFO Size Register n

source

pub fn grxfifosiz(&self, n: usize) -> &Grxfifosiz

0xc380..0xc38c - Global Receive FIFO Size Register n

source

pub fn grxfifosiz_iter(&self) -> impl Iterator<Item = &Grxfifosiz>

Iterator for array of: 0xc380..0xc38c - Global Receive FIFO Size Register n

source

pub fn gevntadrlo0(&self) -> &Gevntadrlo0

0xc400 - Global Event Buffer Address (Low) Register 0

source

pub fn gevntadrhi0(&self) -> &Gevntadrhi0

0xc404 - Global Event Buffer Address (High) Register 0

source

pub fn gevntsiz0(&self) -> &Gevntsiz0

0xc408 - Global Event Buffer Size Register 0

source

pub fn gevntcount0(&self) -> &Gevntcount0

0xc40c - Global Event Buffer Count Register 0

source

pub fn ghwparams8(&self) -> &Ghwparams8

0xc600 - Global Hardware Parameters Register 8

source

pub fn gtxfifopridev(&self) -> &Gtxfifopridev

0xc610 - Global Device TX FIFO DMA Priority Register

source

pub fn gtxfifoprihst(&self) -> &Gtxfifoprihst

0xc618 - Global Host TX FIFO DMA Priority Register

source

pub fn grxfifoprihst(&self) -> &Grxfifoprihst

0xc61c - Global Host RX FIFO DMA Priority Register

source

pub fn gfifopridbc(&self) -> &Gfifopridbc

0xc620 - Global Host Debug Capability DMA Priority Register

source

pub fn gdmahlratio(&self) -> &Gdmahlratio

0xc624 - Global Host FIFO DMA High-Low Priority Ratio Register

source

pub fn gfladj(&self) -> &Gfladj

0xc630 - Global Frame Length Adjustment Register

source

pub fn dcfg(&self) -> &Dcfg

0xc700 - Device Configuration Register

source

pub fn dctl(&self) -> &Dctl

0xc704 - Device Control Register

source

pub fn devten(&self) -> &Devten

0xc708 - Device Event Enable Register

source

pub fn dsts(&self) -> &Dsts

0xc70c - Device Status Register

source

pub fn dgcmdpar(&self) -> &Dgcmdpar

0xc710 - Device Generic Command Parameter Register

source

pub fn dgcmd(&self) -> &Dgcmd

0xc714 - Device Generic Command Register

source

pub fn dalepena(&self) -> &Dalepena

0xc720 - Device Active USB Endpoint Enable Register

source

pub fn depcmdpar2(&self, n: usize) -> &Depcmdpar2

0xc800..0xc834 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn depcmdpar2_iter(&self) -> impl Iterator<Item = &Depcmdpar2>

Iterator for array of: 0xc800..0xc834 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep0cmdpar2(&self) -> &Depcmdpar2

0xc800 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep1cmdpar2(&self) -> &Depcmdpar2

0xc810 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep2cmdpar2(&self) -> &Depcmdpar2

0xc820 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep3cmdpar2(&self) -> &Depcmdpar2

0xc830 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep4cmdpar2(&self) -> &Depcmdpar2

0xc840 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep5cmdpar2(&self) -> &Depcmdpar2

0xc850 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep6cmdpar2(&self) -> &Depcmdpar2

0xc860 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep7cmdpar2(&self) -> &Depcmdpar2

0xc870 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep8cmdpar2(&self) -> &Depcmdpar2

0xc880 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep9cmdpar2(&self) -> &Depcmdpar2

0xc890 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep10cmdpar2(&self) -> &Depcmdpar2

0xc8a0 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep11cmdpar2(&self) -> &Depcmdpar2

0xc8b0 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn dep12cmdpar2(&self) -> &Depcmdpar2

0xc8c0 - Device Physical Endpoint-n Command Parameter 2 Register

source

pub fn depcmdpar1(&self, n: usize) -> &Depcmdpar1

0xc804..0xc838 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn depcmdpar1_iter(&self) -> impl Iterator<Item = &Depcmdpar1>

Iterator for array of: 0xc804..0xc838 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep0cmdpar1(&self) -> &Depcmdpar1

0xc804 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep1cmdpar1(&self) -> &Depcmdpar1

0xc814 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep2cmdpar1(&self) -> &Depcmdpar1

0xc824 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep3cmdpar1(&self) -> &Depcmdpar1

0xc834 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep4cmdpar1(&self) -> &Depcmdpar1

0xc844 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep5cmdpar1(&self) -> &Depcmdpar1

0xc854 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep6cmdpar1(&self) -> &Depcmdpar1

0xc864 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep7cmdpar1(&self) -> &Depcmdpar1

0xc874 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep8cmdpar1(&self) -> &Depcmdpar1

0xc884 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep9cmdpar1(&self) -> &Depcmdpar1

0xc894 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep10cmdpar1(&self) -> &Depcmdpar1

0xc8a4 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep11cmdpar1(&self) -> &Depcmdpar1

0xc8b4 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn dep12cmdpar1(&self) -> &Depcmdpar1

0xc8c4 - Device Physical Endpoint-n Command Parameter 1 Register

source

pub fn depcmdpar0(&self, n: usize) -> &Depcmdpar0

0xc808..0xc83c - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn depcmdpar0_iter(&self) -> impl Iterator<Item = &Depcmdpar0>

Iterator for array of: 0xc808..0xc83c - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep0cmdpar0(&self) -> &Depcmdpar0

0xc808 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep1cmdpar0(&self) -> &Depcmdpar0

0xc818 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep2cmdpar0(&self) -> &Depcmdpar0

0xc828 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep3cmdpar0(&self) -> &Depcmdpar0

0xc838 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep4cmdpar0(&self) -> &Depcmdpar0

0xc848 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep5cmdpar0(&self) -> &Depcmdpar0

0xc858 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep6cmdpar0(&self) -> &Depcmdpar0

0xc868 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep7cmdpar0(&self) -> &Depcmdpar0

0xc878 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep8cmdpar0(&self) -> &Depcmdpar0

0xc888 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep9cmdpar0(&self) -> &Depcmdpar0

0xc898 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep10cmdpar0(&self) -> &Depcmdpar0

0xc8a8 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep11cmdpar0(&self) -> &Depcmdpar0

0xc8b8 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn dep12cmdpar0(&self) -> &Depcmdpar0

0xc8c8 - Device Physical Endpoint-n Command Parameter 0 Register

source

pub fn depcmd(&self, n: usize) -> &Depcmd

0xc80c..0xc840 - Device Physical Endpoint-n Command Register

source

pub fn depcmd_iter(&self) -> impl Iterator<Item = &Depcmd>

Iterator for array of: 0xc80c..0xc840 - Device Physical Endpoint-n Command Register

source

pub fn dep0cmd(&self) -> &Depcmd

0xc80c - Device Physical Endpoint-n Command Register

source

pub fn dep1cmd(&self) -> &Depcmd

0xc81c - Device Physical Endpoint-n Command Register

source

pub fn dep2cmd(&self) -> &Depcmd

0xc82c - Device Physical Endpoint-n Command Register

source

pub fn dep3cmd(&self) -> &Depcmd

0xc83c - Device Physical Endpoint-n Command Register

source

pub fn dep4cmd(&self) -> &Depcmd

0xc84c - Device Physical Endpoint-n Command Register

source

pub fn dep5cmd(&self) -> &Depcmd

0xc85c - Device Physical Endpoint-n Command Register

source

pub fn dep6cmd(&self) -> &Depcmd

0xc86c - Device Physical Endpoint-n Command Register

source

pub fn dep7cmd(&self) -> &Depcmd

0xc87c - Device Physical Endpoint-n Command Register

source

pub fn dep8cmd(&self) -> &Depcmd

0xc88c - Device Physical Endpoint-n Command Register

source

pub fn dep9cmd(&self) -> &Depcmd

0xc89c - Device Physical Endpoint-n Command Register

source

pub fn dep10cmd(&self) -> &Depcmd

0xc8ac - Device Physical Endpoint-n Command Register

source

pub fn dep11cmd(&self) -> &Depcmd

0xc8bc - Device Physical Endpoint-n Command Register

source

pub fn dep12cmd(&self) -> &Depcmd

0xc8cc - Device Physical Endpoint-n Command Register

Trait Implementations§

source§

impl Debug for Usb3Otg1

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Usb3Otg1

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Usb3Otg1

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.