RegisterBlock

Struct RegisterBlock 

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn hcfg(&self) -> &Reg<HCFGrs>

0x00 - OTG_FS host configuration register (OTG_FS_HCFG)

Source

pub const fn hfir(&self) -> &Reg<HFIRrs>

0x04 - OTG_FS Host frame interval register

Source

pub const fn hfnum(&self) -> &Reg<HFNUMrs>

0x08 - OTG_FS host frame number/frame time remaining register (OTG_FS_HFNUM)

Source

pub const fn hptxsts(&self) -> &Reg<HPTXSTSrs>

0x10 - OTG_FS_Host periodic transmit FIFO/queue status register (OTG_FS_HPTXSTS)

Source

pub const fn haint(&self) -> &Reg<HAINTrs>

0x14 - OTG_FS Host all channels interrupt register

Source

pub const fn haintmsk(&self) -> &Reg<HAINTMSKrs>

0x18 - OTG_FS host all channels interrupt mask register

Source

pub const fn hprt(&self) -> &Reg<HPRTrs>

0x40 - OTG_FS host port control and status register (OTG_FS_HPRT)

Source

pub const fn hc(&self, n: usize) -> &HC

0x100..0x200 - Host channel

Source

pub fn hc_iter(&self) -> impl Iterator<Item = &HC>

Iterator for array of: 0x100..0x200 - Host channel

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.