nxp-pac

Crates

git

Versions

mcxa256

Flavors

Usb

Struct Usb 

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

USBFS

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 perid(self) -> Reg<Perid, R>

Peripheral ID

Source

pub const fn idcomp(self) -> Reg<Idcomp, R>

Peripheral ID Complement

Source

pub const fn rev(self) -> Reg<Rev, R>

Peripheral Revision

Source

pub const fn addinfo(self) -> Reg<Addinfo, R>

Peripheral Additional Information

Source

pub const fn otgistat(self) -> Reg<Otgistat, RW>

OTG Interrupt Status

Source

pub const fn otgicr(self) -> Reg<Otgicr, RW>

OTG Interrupt Control

Source

pub const fn otgstat(self) -> Reg<Otgstat, R>

OTG Status

Source

pub const fn otgctl(self) -> Reg<Otgctl, RW>

OTG Control

Source

pub const fn istat(self) -> Reg<Istat, RW>

Interrupt Status

Source

pub const fn inten(self) -> Reg<Inten, RW>

Interrupt Enable

Source

pub const fn errstat(self) -> Reg<Errstat, RW>

Error Interrupt Status

Source

pub const fn erren(self) -> Reg<Erren, RW>

Error Interrupt Enable

Source

pub const fn stat(self) -> Reg<Stat, R>

Status

Source

pub const fn ctl(self) -> Reg<Ctl, RW>

Control

Source

pub const fn addr(self) -> Reg<Addr, RW>

Address

Source

pub const fn bdtpage1(self) -> Reg<Bdtpage1, RW>

BDT Page 1

Source

pub const fn frmnuml(self) -> Reg<Frmnuml, R>

Frame Number Register Low

Source

pub const fn frmnumh(self) -> Reg<Frmnumh, R>

Frame Number Register High

Source

pub const fn token(self) -> Reg<Token, RW>

Token

Source

pub const fn softhld(self) -> Reg<Softhld, RW>

SOF Threshold

Source

pub const fn bdtpage2(self) -> Reg<Bdtpage2, RW>

BDT Page 2

Source

pub const fn bdtpage3(self) -> Reg<Bdtpage3, RW>

BDT Page 3

Source

pub const fn endpoint(self, n: usize) -> Endpoint

Array of registers: ENDPT

Source

pub const fn usbctrl(self) -> Reg<Usbctrl, RW>

USB Control

Source

pub const fn observe(self) -> Reg<Observe, R>

USB OTG Observe

Source

pub const fn control(self) -> Reg<Control, RW>

USB OTG Control

Source

pub const fn usbtrc0(self) -> Reg<Usbtrc0, RW>

USB Transceiver Control 0

Source

pub const fn usbfrmadjust(self) -> Reg<Usbfrmadjust, RW>

Frame Adjust

Source

pub const fn keep_alive_ctrl_rsvd(self) -> Reg<u8, RW>

Reserved

Source

pub const fn keep_alive_wkctrl_rsvd(self) -> Reg<u8, RW>

Reserved

Source

pub const fn miscctrl(self) -> Reg<Miscctrl, RW>

Miscellaneous Control

Source

pub const fn stall_il_dis(self) -> Reg<StallIlDis, RW>

Peripheral Mode Stall Disable for Endpoints 7 to 0 in IN Direction

Source

pub const fn stall_ih_dis(self) -> Reg<StallIhDis, RW>

Peripheral Mode Stall Disable for Endpoints 15 to 8 in IN Direction

Source

pub const fn stall_ol_dis(self) -> Reg<StallOlDis, RW>

Peripheral Mode Stall Disable for Endpoints 7 to 0 in OUT Direction

Source

pub const fn stall_oh_dis(self) -> Reg<StallOhDis, RW>

Peripheral Mode Stall Disable for Endpoints 15 to 8 in OUT Direction

Source

pub const fn clk_recover_ctrl(self) -> Reg<ClkRecoverCtrl, RW>

USB Clock Recovery Control

Source

pub const fn clk_recover_irc_en(self) -> Reg<ClkRecoverIrcEn, RW>

FIRC Oscillator Enable

Source

pub const fn clk_recover_int_en(self) -> Reg<ClkRecoverIntEn, RW>

Clock Recovery Combined Interrupt Enable

Source

pub const fn clk_recover_int_status(self) -> Reg<ClkRecoverIntStatus, RW>

Clock Recovery Separated Interrupt Status

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.