RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn gotgctl(&self) -> &Reg<GOTGCTLrs>

0x00 - OTG_FS control and status register (OTG_FS_GOTGCTL)

Source

pub const fn gotgint(&self) -> &Reg<GOTGINTrs>

0x04 - OTG_FS interrupt register (OTG_FS_GOTGINT)

Source

pub const fn gahbcfg(&self) -> &Reg<GAHBCFGrs>

0x08 - OTG_FS AHB configuration register (OTG_FS_GAHBCFG)

Source

pub const fn gusbcfg(&self) -> &Reg<GUSBCFGrs>

0x0c - OTG_FS USB configuration register (OTG_FS_GUSBCFG)

Source

pub const fn grstctl(&self) -> &Reg<GRSTCTLrs>

0x10 - OTG_FS reset register (OTG_FS_GRSTCTL)

Source

pub const fn gintsts(&self) -> &Reg<GINTSTSrs>

0x14 - OTG_FS core interrupt register (OTG_FS_GINTSTS)

Source

pub const fn gintmsk(&self) -> &Reg<GINTMSKrs>

0x18 - OTG_FS interrupt mask register (OTG_FS_GINTMSK)

Source

pub const fn grxstsr_host(&self) -> &Reg<GRXSTSR_HOSTrs>

0x1c - OTG status debug read (host mode)

Source

pub const fn grxstsr_device(&self) -> &Reg<GRXSTSR_DEVICErs>

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

Source

pub const fn grxstsp_host(&self) -> &Reg<GRXSTSP_HOSTrs>

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

Source

pub const fn grxstsp_device(&self) -> &Reg<GRXSTSP_DEVICErs>

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

Source

pub const fn grxfsiz(&self) -> &Reg<GRXFSIZrs>

0x24 - OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)

Source

pub const fn hnptxfsiz(&self) -> &Reg<HNPTXFSIZrs>

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

Source

pub const fn dieptxf0(&self) -> &Reg<DIEPTXF0rs>

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

Source

pub const fn gnptxsts(&self) -> &Reg<GNPTXSTSrs>

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

Source

pub const fn gccfg(&self) -> &Reg<GCCFGrs>

0x38 - OTG_FS general core configuration register (OTG_FS_GCCFG)

Source

pub const fn cid(&self) -> &Reg<CIDrs>

0x3c - core ID register

Source

pub const fn hptxfsiz(&self) -> &Reg<HPTXFSIZrs>

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

Source

pub const fn dieptxf(&self, n: usize) -> &Reg<DIEPTXFrs>

0x104..0x110 - OTG_FS device IN endpoint transmit FIFO size register

`n` is the index of register in the array. `n == 0` corresponds to `DIEPTXF1` register.
Source

pub fn dieptxf_iter(&self) -> impl Iterator<Item = &Reg<DIEPTXFrs>>

Iterator for array of: 0x104..0x110 - OTG_FS device IN endpoint transmit FIFO size register

Source

pub const fn dieptxf1(&self) -> &Reg<DIEPTXFrs>

0x104 - OTG_FS device IN endpoint transmit FIFO size register

Source

pub const fn dieptxf2(&self) -> &Reg<DIEPTXFrs>

0x108 - OTG_FS device IN endpoint transmit FIFO size register

Source

pub const fn dieptxf3(&self) -> &Reg<DIEPTXFrs>

0x10c - OTG_FS device IN endpoint transmit FIFO size register

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

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

Performs the conversion.