embassy-usb-synopsys-otg

Crates

git

Versions

default

Flavors

embassy_usb_synopsys_otg::otg_v1

Struct Otg

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

USB on the go

Implementations§

Source§

impl Otg

Source

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

Source

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

Source

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

Control and status register

Source

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

Interrupt register

Source

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

AHB configuration register

Source

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

USB configuration register

Source

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

Reset register

Source

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

Core interrupt register

Source

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

Interrupt mask register

Source

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

Receive status debug read register

Source

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

Status read and pop register

Source

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

Receive FIFO size register

Source

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

Endpoint 0 transmit FIFO size register (device mode)

Source

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

Non-periodic transmit FIFO size register (host mode)

Source

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

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

Source

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

OTG I2C access register

Source

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

General core configuration register, for core_id 0x0000_1xxx

Source

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

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

Source

pub const fn gccfg_v3(self) -> Reg<GccfgV3, RW>

General core configuration register, for core_id 0x0000_5xxx

Source

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

Core ID register

Source

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

OTG core LPM configuration register

Source

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

Host periodic transmit FIFO size register

Source

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

Device IN endpoint transmit FIFO size register

Source

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

Host configuration register

Source

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

Host frame interval register

Source

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

Host frame number/frame time remaining register

Source

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

Periodic transmit FIFO/queue status register

Source

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

Host all channels interrupt register

Source

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

Host all channels interrupt mask register

Source

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

Host port control and status register

Source

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

Host channel characteristics register

Source

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

Host channel split control register

Source

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

Host channel interrupt register

Source

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

Host channel mask register

Source

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

Host channel transfer size register

Source

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

Host channel DMA address register

Source

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

Device configuration register

Source

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

Device control register

Source

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

Device status register

Source

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

Device IN endpoint common interrupt mask register

Source

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

Device OUT endpoint common interrupt mask register

Source

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

Device all endpoints interrupt register

Source

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

All endpoints interrupt mask register

Source

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

Device VBUS discharge time register

Source

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

Device VBUS pulsing time register

Source

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

Device IN endpoint FIFO empty interrupt mask register

Source

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

Device IN endpoint control register

Source

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

Device IN endpoint interrupt register

Source

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

Device IN endpoint transfer size register

Source

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

Device IN endpoint transmit FIFO status register

Source

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

Device OUT endpoint control register

Source

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

Device OUT endpoint interrupt register

Source

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

Device OUT endpoint transfer size register

Source

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

Device OUT/IN endpoint DMA address register

Source

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

Power and clock gating control register

Source

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

Device endpoint / host channel FIFO register

Trait Implementations§

Source§

impl Clone for Otg

Source§

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

impl PartialEq for Otg

Source§

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

impl Copy for Otg

Source§

impl Eq for Otg

Source§

impl Send for Otg

Source§

impl StructuralPartialEq for Otg

Source§

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.