nxp-pac

Crates

git

Versions

mimxrt1011

Flavors

Usb

Struct Usb 

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

USB

Implementations§

Source§

impl Usb

Source

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

Source

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

Source

pub const fn id(self) -> Reg<Id, R>

Identification register

Source

pub const fn hwgeneral(self) -> Reg<Hwgeneral, R>

Hardware General

Source

pub const fn hwhost(self) -> Reg<Hwhost, R>

Host Hardware Parameters

Source

pub const fn hwdevice(self) -> Reg<Hwdevice, R>

Device Hardware Parameters

Source

pub const fn hwtxbuf(self) -> Reg<Hwtxbuf, R>

TX Buffer Hardware Parameters

Source

pub const fn hwrxbuf(self) -> Reg<Hwrxbuf, R>

RX Buffer Hardware Parameters

Source

pub const fn gptimer0ld(self) -> Reg<Gptimer0ld, RW>

General Purpose Timer #0 Load

Source

pub const fn gptimer0ctrl(self) -> Reg<Gptimer0ctrl, RW>

General Purpose Timer #0 Controller

Source

pub const fn gptimer1ld(self) -> Reg<Gptimer1ld, RW>

General Purpose Timer #1 Load

Source

pub const fn gptimer1ctrl(self) -> Reg<Gptimer1ctrl, RW>

General Purpose Timer #1 Controller

Source

pub const fn sbuscfg(self) -> Reg<Sbuscfg, RW>

System Bus Config

Source

pub const fn caplength(self) -> Reg<Caplength, R>

Capability Registers Length

Source

pub const fn hciversion(self) -> Reg<Hciversion, R>

Host Controller Interface Version

Source

pub const fn hcsparams(self) -> Reg<Hcsparams, R>

Host Controller Structural Parameters

Source

pub const fn hccparams(self) -> Reg<Hccparams, R>

Host Controller Capability Parameters

Source

pub const fn dciversion(self) -> Reg<Dciversion, R>

Device Controller Interface Version

Source

pub const fn dccparams(self) -> Reg<Dccparams, R>

Device Controller Capability Parameters

Source

pub const fn usbcmd(self) -> Reg<Usbcmd, RW>

USB Command Register

Source

pub const fn usbsts(self) -> Reg<Usbsts, RW>

USB Status Register

Source

pub const fn usbintr(self) -> Reg<Usbintr, RW>

Interrupt Enable Register

Source

pub const fn frindex(self) -> Reg<Frindex, RW>

USB Frame Index

Source

pub const fn deviceaddr(self) -> Reg<Deviceaddr, RW>

Device Address

Source

pub const fn periodiclistbase(self) -> Reg<Periodiclistbase, RW>

Frame List Base Address

Source

pub const fn asynclistaddr(self) -> Reg<Asynclistaddr, RW>

Next Asynch. Address

Source

pub const fn endptlistaddr(self) -> Reg<Endptlistaddr, RW>

Endpoint List Address

Source

pub const fn burstsize(self) -> Reg<Burstsize, RW>

Programmable Burst Size

Source

pub const fn txfilltuning(self) -> Reg<Txfilltuning, RW>

TX FIFO Fill Tuning

Source

pub const fn endptnak(self) -> Reg<Endptnak, RW>

Endpoint NAK

Source

pub const fn endptnaken(self) -> Reg<Endptnaken, RW>

Endpoint NAK Enable

Source

pub const fn configflag(self) -> Reg<Configflag, R>

Configure Flag Register

Source

pub const fn portsc1(self) -> Reg<Portsc1, RW>

Port Status & Control

Source

pub const fn otgsc(self) -> Reg<Otgsc, RW>

On-The-Go Status & control

Source

pub const fn usbmode(self) -> Reg<Usbmode, RW>

USB Device Mode

Source

pub const fn endptsetupstat(self) -> Reg<Endptsetupstat, RW>

Endpoint Setup Status

Source

pub const fn endptprime(self) -> Reg<Endptprime, RW>

Endpoint Prime

Source

pub const fn endptflush(self) -> Reg<Endptflush, RW>

Endpoint Flush

Source

pub const fn endptstat(self) -> Reg<Endptstat, R>

Endpoint Status

Source

pub const fn endptcomplete(self) -> Reg<Endptcomplete, RW>

Endpoint Complete

Source

pub const fn endptctrl0(self) -> Reg<Endptctrl0, RW>

Endpoint Control0

Source

pub const fn endptctrl1(self) -> Reg<Endptctrl1, RW>

Endpoint Control 1

Source

pub const fn endptctrl2(self) -> Reg<Endptctrl2, RW>

Endpoint Control 2

Source

pub const fn endptctrl3(self) -> Reg<Endptctrl3, RW>

Endpoint Control 3

Source

pub const fn endptctrl4(self) -> Reg<Endptctrl4, RW>

Endpoint Control 4

Source

pub const fn endptctrl5(self) -> Reg<Endptctrl5, RW>

Endpoint Control 5

Source

pub const fn endptctrl6(self) -> Reg<Endptctrl6, RW>

Endpoint Control 6

Source

pub const fn endptctrl7(self) -> Reg<Endptctrl7, RW>

Endpoint Control 7

Trait Implementations§

Source§

impl Clone for Usb

Source§

fn clone(&self) -> Usb

Returns a duplicate 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 Usb

Source§

fn eq(&self, other: &Usb) -> 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 Usb

Source§

impl Eq for Usb

Source§

impl Send for Usb

Source§

impl StructuralPartialEq for Usb

Source§

impl Sync for Usb

Auto Trait Implementations§

§

impl Freeze for Usb

§

impl RefUnwindSafe for Usb

§

impl Unpin for Usb

§

impl UnwindSafe for Usb

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.