nxp-pac

Crates

git

Versions

mimxrt685s_cm33

Flavors

Devcmdstat

Struct Devcmdstat 

Source
#[repr(transparent)]
pub struct Devcmdstat(pub u32);
Expand description

USB Device Command/Status register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Devcmdstat

Source

pub const fn dev_addr(&self) -> u8

USB device address.

Source

pub const fn set_dev_addr(&mut self, val: u8)

USB device address.

Source

pub const fn dev_en(&self) -> bool

USB device enable.

Source

pub const fn set_dev_en(&mut self, val: bool)

USB device enable.

Source

pub const fn setup(&self) -> bool

SETUP token received.

Source

pub const fn set_setup(&mut self, val: bool)

SETUP token received.

Source

pub const fn force_needclk(&self) -> bool

Forces the NEEDCLK output to always be on:.

Source

pub const fn set_force_needclk(&mut self, val: bool)

Forces the NEEDCLK output to always be on:.

Source

pub const fn force_vbus(&self) -> bool

If this bit is set to 1, the VBUS voltage indicators from the PHY are overruled.

Source

pub const fn set_force_vbus(&mut self, val: bool)

If this bit is set to 1, the VBUS voltage indicators from the PHY are overruled.

Source

pub const fn lpm_sup(&self) -> bool

LPM Supported:.

Source

pub const fn set_lpm_sup(&mut self, val: bool)

LPM Supported:.

Source

pub const fn intonnak_ao(&self) -> bool

Interrupt on NAK for interrupt and bulk OUT EP:.

Source

pub const fn set_intonnak_ao(&mut self, val: bool)

Interrupt on NAK for interrupt and bulk OUT EP:.

Source

pub const fn intonnak_ai(&self) -> bool

Interrupt on NAK for interrupt and bulk IN EP:.

Source

pub const fn set_intonnak_ai(&mut self, val: bool)

Interrupt on NAK for interrupt and bulk IN EP:.

Source

pub const fn intonnak_co(&self) -> bool

Interrupt on NAK for control OUT EP:.

Source

pub const fn set_intonnak_co(&mut self, val: bool)

Interrupt on NAK for control OUT EP:.

Source

pub const fn intonnak_ci(&self) -> bool

Interrupt on NAK for control IN EP:.

Source

pub const fn set_intonnak_ci(&mut self, val: bool)

Interrupt on NAK for control IN EP:.

Source

pub const fn dcon(&self) -> bool

Device status - connect.

Source

pub const fn set_dcon(&mut self, val: bool)

Device status - connect.

Source

pub const fn dsus(&self) -> bool

Device status - suspend.

Source

pub const fn set_dsus(&mut self, val: bool)

Device status - suspend.

Source

pub const fn lpm_sus(&self) -> bool

Device status - LPM Suspend.

Source

pub const fn set_lpm_sus(&mut self, val: bool)

Device status - LPM Suspend.

Source

pub const fn lpm_rewp(&self) -> bool

LPM Remote Wake-up Enabled by USB host.

Source

pub const fn set_lpm_rewp(&mut self, val: bool)

LPM Remote Wake-up Enabled by USB host.

Source

pub const fn speed(&self) -> u8

This field indicates the speed at which the device operates: 00b: reserved 01b: full-speed 10b: high-speed 11b: super-speed (reserved for future use).

Source

pub const fn set_speed(&mut self, val: u8)

This field indicates the speed at which the device operates: 00b: reserved 01b: full-speed 10b: high-speed 11b: super-speed (reserved for future use).

Source

pub const fn dcon_c(&self) -> bool

Device status - connect change.

Source

pub const fn set_dcon_c(&mut self, val: bool)

Device status - connect change.

Source

pub const fn dsus_c(&self) -> bool

Device status - suspend change.

Source

pub const fn set_dsus_c(&mut self, val: bool)

Device status - suspend change.

Source

pub const fn dres_c(&self) -> bool

Device status - reset change.

Source

pub const fn set_dres_c(&mut self, val: bool)

Device status - reset change.

Source

pub const fn vbus_debounced(&self) -> bool

This bit indicates if VBUS is detected or not.

Source

pub const fn set_vbus_debounced(&mut self, val: bool)

This bit indicates if VBUS is detected or not.

Source

pub const fn phy_test_mode(&self) -> u8

This field is written by firmware to put the PHY into a test mode as defined by the USB2.0 specification.

Source

pub const fn set_phy_test_mode(&mut self, val: u8)

This field is written by firmware to put the PHY into a test mode as defined by the USB2.0 specification.

Trait Implementations§

Source§

impl Clone for Devcmdstat

Source§

fn clone(&self) -> Devcmdstat

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 Debug for Devcmdstat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Devcmdstat

Source§

fn default() -> Devcmdstat

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Devcmdstat

Source§

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

Source§

impl Eq for Devcmdstat

Source§

impl StructuralPartialEq for Devcmdstat

Auto Trait Implementations§

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.