Struct stm32f4::stm32f401::otg_fs_global::RegisterBlock[][src]

#[repr(C)]pub struct RegisterBlock {
    pub gotgctl: GOTGCTL,
    pub gotgint: GOTGINT,
    pub gahbcfg: GAHBCFG,
    pub gusbcfg: GUSBCFG,
    pub grstctl: GRSTCTL,
    pub gintsts: GINTSTS,
    pub gintmsk: GINTMSK,
    pub grxfsiz: GRXFSIZ,
    pub gnptxsts: GNPTXSTS,
    pub gccfg: GCCFG,
    pub cid: CID,
    pub hptxfsiz: HPTXFSIZ,
    pub dieptxf1: DIEPTXF,
    pub dieptxf2: DIEPTXF,
    pub dieptxf3: DIEPTXF,
    // some fields omitted
}

Register block

Fields

gotgctl: GOTGCTL

0x00 - OTG_FS control and status register (OTG_FS_GOTGCTL)

gotgint: GOTGINT

0x04 - OTG_FS interrupt register (OTG_FS_GOTGINT)

gahbcfg: GAHBCFG

0x08 - OTG_FS AHB configuration register (OTG_FS_GAHBCFG)

gusbcfg: GUSBCFG

0x0c - OTG_FS USB configuration register (OTG_FS_GUSBCFG)

grstctl: GRSTCTL

0x10 - OTG_FS reset register (OTG_FS_GRSTCTL)

gintsts: GINTSTS

0x14 - OTG_FS core interrupt register (OTG_FS_GINTSTS)

gintmsk: GINTMSK

0x18 - OTG_FS interrupt mask register (OTG_FS_GINTMSK)

grxfsiz: GRXFSIZ

0x24 - OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)

gnptxsts: GNPTXSTS

0x2c - OTG_FS non-periodic transmit FIFO/queue status register (OTG_FS_GNPTXSTS)

gccfg: GCCFG

0x38 - OTG_FS general core configuration register (OTG_FS_GCCFG)

cid: CID

0x3c - core ID register

hptxfsiz: HPTXFSIZ

0x100 - OTG_FS Host periodic transmit FIFO size register (OTG_FS_HPTXFSIZ)

dieptxf1: DIEPTXF

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

dieptxf2: DIEPTXF

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

dieptxf3: DIEPTXF

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

Implementations

impl RegisterBlock[src]

pub fn grxstsr_host(&self) -> &GRXSTSR_HOST[src]

0x1c - OTG_FS Receive status debug read(Host mode)

pub fn grxstsr_host_mut(&self) -> &mut GRXSTSR_HOST[src]

0x1c - OTG_FS Receive status debug read(Host mode)

pub fn grxstsr_device(&self) -> &GRXSTSR_DEVICE[src]

0x1c - OTG_FS Receive status debug read(Device mode)

pub fn grxstsr_device_mut(&self) -> &mut GRXSTSR_DEVICE[src]

0x1c - OTG_FS Receive status debug read(Device mode)

pub fn grxstsp_host(&self) -> &GRXSTSP_HOST[src]

0x20 - OTG status read and pop (host mode)

pub fn grxstsp_host_mut(&self) -> &mut GRXSTSP_HOST[src]

0x20 - OTG status read and pop (host mode)

pub fn grxstsp_device(&self) -> &GRXSTSP_DEVICE[src]

0x20 - OTG status read and pop (device mode)

pub fn grxstsp_device_mut(&self) -> &mut GRXSTSP_DEVICE[src]

0x20 - OTG status read and pop (device mode)

pub fn hnptxfsiz(&self) -> &HNPTXFSIZ[src]

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

pub fn hnptxfsiz_mut(&self) -> &mut HNPTXFSIZ[src]

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

pub fn dieptxf0(&self) -> &DIEPTXF0[src]

0x28 - OTG_FS non-periodic transmit FIFO size register (Device mode)

pub fn dieptxf0_mut(&self) -> &mut DIEPTXF0[src]

0x28 - OTG_FS non-periodic transmit FIFO size register (Device mode)

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.