Struct stm32_metapac::otg::Otg

pub struct Otg { /* private fields */ }
Expand description

USB on the go

Implementations§

§

impl Otg

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

pub const fn as_ptr(&self) -> *mut ()

pub const fn gotgctl(self) -> Reg<Gotgctl, RW>

Control and status register

pub const fn gotgint(self) -> Reg<Gotgint, RW>

Interrupt register

pub const fn gahbcfg(self) -> Reg<Gahbcfg, RW>

AHB configuration register

pub const fn gusbcfg(self) -> Reg<Gusbcfg, RW>

USB configuration register

pub const fn grstctl(self) -> Reg<Grstctl, RW>

Reset register

pub const fn gintsts(self) -> Reg<Gintsts, RW>

Core interrupt register

pub const fn gintmsk(self) -> Reg<Gintmsk, RW>

Interrupt mask register

pub const fn grxstsr(self) -> Reg<Grxsts, R>

Receive status debug read register

pub const fn grxstsp(self) -> Reg<Grxsts, R>

Status read and pop register

pub const fn grxfsiz(self) -> Reg<Grxfsiz, RW>

Receive FIFO size register

pub const fn dieptxf0(self) -> Reg<Fsiz, RW>

Endpoint 0 transmit FIFO size register (device mode)

pub const fn hnptxfsiz(self) -> Reg<Fsiz, RW>

Non-periodic transmit FIFO size register (host mode)

pub const fn hnptxsts(self) -> Reg<Hnptxsts, R>

Non-periodic transmit FIFO/queue status register (host mode)

pub const fn gi2cctl(self) -> Reg<Gi2cctl, RW>

OTG I2C access register

pub const fn gccfg_v1(self) -> Reg<GccfgV1, RW>

General core configuration register, for core_id 0x0000_1xxx

pub const fn gccfg_v2(self) -> Reg<GccfgV2, RW>

General core configuration register, for core_id 0x0000_[23]xxx

pub const fn cid(self) -> Reg<Cid, RW>

Core ID register

pub const fn glpmcfg(self) -> Reg<Glpmcfg, RW>

OTG core LPM configuration register

pub const fn hptxfsiz(self) -> Reg<Fsiz, RW>

Host periodic transmit FIFO size register

pub const fn dieptxf(self, n: usize) -> Reg<Fsiz, RW>

Device IN endpoint transmit FIFO size register

pub const fn hcfg(self) -> Reg<Hcfg, RW>

Host configuration register

pub const fn hfir(self) -> Reg<Hfir, RW>

Host frame interval register

pub const fn hfnum(self) -> Reg<Hfnum, R>

Host frame number/frame time remaining register

pub const fn hptxsts(self) -> Reg<Hptxsts, RW>

Periodic transmit FIFO/queue status register

pub const fn haint(self) -> Reg<Haint, R>

Host all channels interrupt register

pub const fn haintmsk(self) -> Reg<Haintmsk, RW>

Host all channels interrupt mask register

pub const fn hprt(self) -> Reg<Hprt, RW>

Host port control and status register

pub const fn hcchar(self, n: usize) -> Reg<Hcchar, RW>

Host channel characteristics register

pub const fn hcsplt(self, n: usize) -> Reg<u32, RW>

Host channel split control register

pub const fn hcint(self, n: usize) -> Reg<Hcint, RW>

Host channel interrupt register

pub const fn hcintmsk(self, n: usize) -> Reg<Hcintmsk, RW>

Host channel mask register

pub const fn hctsiz(self, n: usize) -> Reg<Hctsiz, RW>

Host channel transfer size register

pub const fn dcfg(self) -> Reg<Dcfg, RW>

Device configuration register

pub const fn dctl(self) -> Reg<Dctl, RW>

Device control register

pub const fn dsts(self) -> Reg<Dsts, R>

Device status register

pub const fn diepmsk(self) -> Reg<Diepmsk, RW>

Device IN endpoint common interrupt mask register

pub const fn doepmsk(self) -> Reg<Doepmsk, RW>

Device OUT endpoint common interrupt mask register

pub const fn daint(self) -> Reg<Daint, R>

Device all endpoints interrupt register

pub const fn daintmsk(self) -> Reg<Daintmsk, RW>

All endpoints interrupt mask register

pub const fn dvbusdis(self) -> Reg<Dvbusdis, RW>

Device VBUS discharge time register

pub const fn dvbuspulse(self) -> Reg<Dvbuspulse, RW>

Device VBUS pulsing time register

pub const fn diepempmsk(self) -> Reg<Diepempmsk, RW>

Device IN endpoint FIFO empty interrupt mask register

pub const fn diepctl(self, n: usize) -> Reg<Diepctl, RW>

Device IN endpoint control register

pub const fn diepint(self, n: usize) -> Reg<Diepint, RW>

Device IN endpoint interrupt register

pub const fn dieptsiz(self, n: usize) -> Reg<Dieptsiz, RW>

Device IN endpoint transfer size register

pub const fn dtxfsts(self, n: usize) -> Reg<Dtxfsts, R>

Device IN endpoint transmit FIFO status register

pub const fn doepctl(self, n: usize) -> Reg<Doepctl, RW>

Device OUT endpoint control register

pub const fn doepint(self, n: usize) -> Reg<Doepint, RW>

Device OUT endpoint interrupt register

pub const fn doeptsiz(self, n: usize) -> Reg<Doeptsiz, RW>

Device OUT endpoint transfer size register

pub const fn pcgcctl(self) -> Reg<Pcgcctl, RW>

Power and clock gating control register

pub const fn fifo(self, n: usize) -> Reg<Fifo, RW>

Device endpoint / host channel FIFO register

Trait Implementations§

§

impl Clone for Otg

§

fn clone(&self) -> Otg

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl PartialEq for Otg

§

fn eq(&self, other: &Otg) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Otg

§

impl Eq for Otg

§

impl Send for Otg

§

impl StructuralPartialEq for Otg

§

impl Sync for Otg

Auto Trait Implementations§

§

impl Freeze for Otg

§

impl RefUnwindSafe for Otg

§

impl Unpin for Otg

§

impl UnwindSafe for Otg

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 T
where 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 T
where U: Into<T>,

source§

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 T
where U: TryFrom<T>,

source§

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.