[]Struct nucleo_f401re::pac::otg_fs_global::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub gotgctl: Reg<u32, _GOTGCTL>,
    pub gotgint: Reg<u32, _GOTGINT>,
    pub gahbcfg: Reg<u32, _GAHBCFG>,
    pub gusbcfg: Reg<u32, _GUSBCFG>,
    pub grstctl: Reg<u32, _GRSTCTL>,
    pub gintsts: Reg<u32, _GINTSTS>,
    pub gintmsk: Reg<u32, _GINTMSK>,
    pub grxfsiz: Reg<u32, _GRXFSIZ>,
    pub gnptxsts: Reg<u32, _GNPTXSTS>,
    pub gccfg: Reg<u32, _GCCFG>,
    pub cid: Reg<u32, _CID>,
    pub hptxfsiz: Reg<u32, _HPTXFSIZ>,
    pub dieptxf1: Reg<u32, _DIEPTXF>,
    pub dieptxf2: Reg<u32, _DIEPTXF>,
    pub dieptxf3: Reg<u32, _DIEPTXF>,
    // some fields omitted
}

Register block

Fields

gotgctl: Reg<u32, _GOTGCTL>

0x00 - OTG_FS control and status register (OTG_FS_GOTGCTL)

gotgint: Reg<u32, _GOTGINT>

0x04 - OTG_FS interrupt register (OTG_FS_GOTGINT)

gahbcfg: Reg<u32, _GAHBCFG>

0x08 - OTG_FS AHB configuration register (OTG_FS_GAHBCFG)

gusbcfg: Reg<u32, _GUSBCFG>

0x0c - OTG_FS USB configuration register (OTG_FS_GUSBCFG)

grstctl: Reg<u32, _GRSTCTL>

0x10 - OTG_FS reset register (OTG_FS_GRSTCTL)

gintsts: Reg<u32, _GINTSTS>

0x14 - OTG_FS core interrupt register (OTG_FS_GINTSTS)

gintmsk: Reg<u32, _GINTMSK>

0x18 - OTG_FS interrupt mask register (OTG_FS_GINTMSK)

grxfsiz: Reg<u32, _GRXFSIZ>

0x24 - OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)

gnptxsts: Reg<u32, _GNPTXSTS>

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

gccfg: Reg<u32, _GCCFG>

0x38 - OTG_FS general core configuration register (OTG_FS_GCCFG)

cid: Reg<u32, _CID>

0x3c - core ID register

hptxfsiz: Reg<u32, _HPTXFSIZ>

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

dieptxf1: Reg<u32, _DIEPTXF>

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

dieptxf2: Reg<u32, _DIEPTXF>

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

dieptxf3: Reg<u32, _DIEPTXF>

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

Implementations

impl RegisterBlock

pub fn grxstsr_host(&self) -> &Reg<u32, _GRXSTSR_HOST>

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

pub fn grxstsr_host_mut(&self) -> &mut Reg<u32, _GRXSTSR_HOST>

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

pub fn grxstsr_device(&self) -> &Reg<u32, _GRXSTSR_DEVICE>

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

pub fn grxstsr_device_mut(&self) -> &mut Reg<u32, _GRXSTSR_DEVICE>

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

pub fn grxstsp_host(&self) -> &Reg<u32, _GRXSTSP_HOST>

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

pub fn grxstsp_host_mut(&self) -> &mut Reg<u32, _GRXSTSP_HOST>

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

pub fn grxstsp_device(&self) -> &Reg<u32, _GRXSTSP_DEVICE>

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

pub fn grxstsp_device_mut(&self) -> &mut Reg<u32, _GRXSTSP_DEVICE>

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

pub fn hnptxfsiz(&self) -> &Reg<u32, _HNPTXFSIZ>

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

pub fn hnptxfsiz_mut(&self) -> &mut Reg<u32, _HNPTXFSIZ>

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

pub fn dieptxf0(&self) -> &Reg<u32, _DIEPTXF0>

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

pub fn dieptxf0_mut(&self) -> &mut Reg<u32, _DIEPTXF0>

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> Same<T> for T

type Output = T

Should always be Self

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.