Embassy
embassy-usb-synopsys-otg

Crates

git

Versions

default

Flavors

Struct embassy_usb_synopsys_otg::otg_v1::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 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 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 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

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

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

This method 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> 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>,

§

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>,

§

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.