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 fn gotgctl(self) -> Reg<Gotgctl, RW>

Control and status register

Source

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

Interrupt register

Source

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

AHB configuration register

Source

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

USB configuration register

Source

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

Reset register

Source

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

Core interrupt register

Source

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

Interrupt mask register

Source

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

Receive status debug read register

Source

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

Status read and pop register

Source

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

Receive FIFO size register

Source

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

Endpoint 0 transmit FIFO size register (device mode)

Source

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

Non-periodic transmit FIFO size register (host mode)

Source

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

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

Source

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

OTG I2C access register

Source

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

General core configuration register, for core_id 0x0000_1xxx

Source

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

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

Source

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

General core configuration register, for core_id 0x0000_5xxx

Source

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

Core ID register

Source

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

OTG core LPM configuration register

Source

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

Host periodic transmit FIFO size register

Source

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

Device IN endpoint transmit FIFO size register

Source

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

Host configuration register

Source

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

Host frame interval register

Source

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

Host frame number/frame time remaining register

Source

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

Periodic transmit FIFO/queue status register

Source

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

Host all channels interrupt register

Source

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

Host all channels interrupt mask register

Source

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

Host port control and status register

Source

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

Host channel characteristics register

Source

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

Host channel split control register

Source

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

Host channel interrupt register

Source

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

Host channel mask register

Source

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

Host channel transfer size register

Source

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

Host channel DMA address register

Source

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

Device configuration register

Source

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

Device control register

Source

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

Device status register

Source

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

Device IN endpoint common interrupt mask register

Source

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

Device OUT endpoint common interrupt mask register

Source

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

Device all endpoints interrupt register

Source

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

All endpoints interrupt mask register

Source

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

Device VBUS discharge time register

Source

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

Device VBUS pulsing time register

Source

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

Device IN endpoint FIFO empty interrupt mask register

Source

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

Device IN endpoint control register

Source

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

Device IN endpoint interrupt register

Source

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

Device IN endpoint transfer size register

Source

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

Device IN endpoint transmit FIFO status register

Source

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

Device OUT endpoint control register

Source

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

Device OUT endpoint interrupt register

Source

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

Device OUT endpoint transfer size register

Source

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

Device OUT/IN endpoint DMA address register

Source

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

Power and clock gating control register

Source

pub 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 u8)

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