#[repr(C)]
pub struct RegisterBlock {
Show 15 fields pub gotgcs: GOTGCS, pub gotgintf: GOTGINTF, pub gahbcs: GAHBCS, pub gusbcs: GUSBCS, pub grstctl: GRSTCTL, pub gintf: GINTF, pub ginten: GINTEN, pub grflen: GRFLEN, pub hnptfqstat: HNPTFQSTAT, pub gccfg: GCCFG, pub cid: CID, pub hptflen: HPTFLEN, pub diep1tflen: DIEP1TFLEN, pub diep2tflen: DIEP2TFLEN, pub diep3tflen: DIEP3TFLEN, /* private fields */
}
Expand description

Register block

Fields§

§gotgcs: GOTGCS

0x00 - Global OTG control and status register (USBFS_GOTGCS)

§gotgintf: GOTGINTF

0x04 - Global OTG interrupt flag register (USBFS_GOTGINTF)

§gahbcs: GAHBCS

0x08 - Global AHB control and status register (USBFS_GAHBCS)

§gusbcs: GUSBCS

0x0c - Global USB control and status register (USBFS_GUSBCSR)

§grstctl: GRSTCTL

0x10 - Global reset control register (USBFS_GRSTCTL)

§gintf: GINTF

0x14 - Global interrupt flag register (USBFS_GINTF)

§ginten: GINTEN

0x18 - Global interrupt enable register (USBFS_GINTEN)

§grflen: GRFLEN

0x24 - Global Receive FIFO size register (USBFS_GRFLEN)

§hnptfqstat: HNPTFQSTAT

0x2c - Host non-periodic transmit FIFO/queue status register (HNPTFQSTAT)

§gccfg: GCCFG

0x38 - Global core configuration register (USBFS_GCCFG)

§cid: CID

0x3c - core ID register

§hptflen: HPTFLEN

0x100 - Host periodic transmit FIFO length register (HPTFLEN)

§diep1tflen: DIEP1TFLEN

0x104 - device IN endpoint transmit FIFO size register (DIEP1TFLEN)

§diep2tflen: DIEP2TFLEN

0x108 - device IN endpoint transmit FIFO size register (DIEP2TFLEN)

§diep3tflen: DIEP3TFLEN

0x10c - device IN endpoint transmit FIFO size register (FS_DIEP3TXFLEN)

Implementations§

source§

impl RegisterBlock

source

pub const fn grstatr_host(&self) -> &GRSTATR_HOST

0x1c - Global Receive status read(Host mode)

source

pub const fn grstatr_device(&self) -> &GRSTATR_DEVICE

0x1c - Global Receive status read(Device mode)

source

pub const fn grstatp_host(&self) -> &GRSTATP_HOST

0x20 - Global Receive status pop(Host mode)

source

pub const fn grstatp_device(&self) -> &GRSTATP_DEVICE

0x20 - Global Receive status pop(Device mode)

source

pub const fn diep0tflen(&self) -> &DIEP0TFLEN

0x28 - Device IN endpoint 0 transmit FIFO length (Device mode)

source

pub const fn hnptflen(&self) -> &HNPTFLEN

0x28 - Host non-periodic transmit FIFO length register (Host mode)

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.