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

source§

impl RegisterBlock

source

pub fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICE_SPEC>

0x1c - OTG_HS Receive status debug read register (peripheral mode mode)

source

pub fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOST_SPEC>

0x1c - OTG_HS Receive status debug read register (host mode)

source

pub fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICE_SPEC>

0x20 - OTG_HS status read and pop register (peripheral mode)

source

pub fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOST_SPEC>

0x20 - OTG_HS status read and pop register (host mode)

source

pub fn dieptxf0_device(&self) -> &Reg<DIEPTXF0_DEVICE_SPEC>

0x28 - Endpoint 0 transmit FIFO size (peripheral mode)

source

pub fn hnptxfsiz_host(&self) -> &Reg<HNPTXFSIZ_HOST_SPEC>

0x28 - OTG_HS nonperiodic transmit FIFO size register (host mode)

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.