nxp-pac

Crates

git

Versions

mcxa577

Flavors

NcLpmCsr1

Struct NcLpmCsr1 

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

USB LPM Control and Status 1. F70RM 44.5.1.6 (text line 111415).

Tuple Fields§

§0: u32

Implementations§

Source§

impl NcLpmCsr1

Source

pub const fn lpm_dev_beslthres(&self) -> u8

Device Required Host Initiated Resume Duration. Raw encoding: 0000b - 75 μs, if LPM_ERRATA_EN = 1; 50 μs, if LPM_ERRATA_EN = 0; 0001b - 100 μs, if LPM_ERRATA_EN = 1; 125 μs, if LPM_ERRATA_EN = 0; 0010b - 150 μs, if LPM_ERRATA_EN = 1; 200 μs, if LPM_ERRATA_EN = 0; 0011b - 250 μs, if LPM_ERRATA_EN = 1; 275 μs, if LPM_ERRATA_EN = 0; 0100b - 350 μs, if LPM_ERRATA_EN = 1; 350 μs, if LPM_ERRATA_EN = 0; 0101b - 450 μs, if LPM_ERRATA_EN = 1; 425 μs, if LPM_ERRATA_EN = 0; 0110b - 950 μs, if LPM_ERRATA_EN = 1; 500 μs, if LPM_ERRATA_EN = 0; 0111b - 1950 μs, if LPM_ERRATA_EN = 1; 575 μs, if LPM_ERRATA_EN = 0; 1000b - 2950 μs, if LPM_ERRATA_EN = 1; 650 μs, if LPM_ERRATA_EN = 0; 1001b - 3950 μs, if LPM_ERRATA_EN = 1; 725 μs, if LPM_ERRATA_EN = 0; 1010b - 4950 μs, if LPM_ERRATA_EN = 1; 800 μs, if LPM_ERRATA_EN = 0; 1011b - 5950 μs, if LPM_ERRATA_EN = 1; 875 μs, if LPM_ERRATA_EN = 0; 1100b - 6950 μs, if LPM_ERRATA_EN = 1; 950 μs, if LPM_ERRATA_EN = 0; 1101b - 7950 μs, if LPM_ERRATA_EN = 1; 1025 μs, if LPM_ERRATA_EN = 0; 1110b - 8950 μs, if LPM_ERRATA_EN = 1; 1100 μs, if LPM_ERRATA_EN = 0; 1111b - 9950 μs, if LPM_ERRATA_EN = 1; 1175 μs, if LPM_ERRATA_EN = 0.

Source

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

Device Required Host Initiated Resume Duration. Raw encoding: 0000b - 75 μs, if LPM_ERRATA_EN = 1; 50 μs, if LPM_ERRATA_EN = 0; 0001b - 100 μs, if LPM_ERRATA_EN = 1; 125 μs, if LPM_ERRATA_EN = 0; 0010b - 150 μs, if LPM_ERRATA_EN = 1; 200 μs, if LPM_ERRATA_EN = 0; 0011b - 250 μs, if LPM_ERRATA_EN = 1; 275 μs, if LPM_ERRATA_EN = 0; 0100b - 350 μs, if LPM_ERRATA_EN = 1; 350 μs, if LPM_ERRATA_EN = 0; 0101b - 450 μs, if LPM_ERRATA_EN = 1; 425 μs, if LPM_ERRATA_EN = 0; 0110b - 950 μs, if LPM_ERRATA_EN = 1; 500 μs, if LPM_ERRATA_EN = 0; 0111b - 1950 μs, if LPM_ERRATA_EN = 1; 575 μs, if LPM_ERRATA_EN = 0; 1000b - 2950 μs, if LPM_ERRATA_EN = 1; 650 μs, if LPM_ERRATA_EN = 0; 1001b - 3950 μs, if LPM_ERRATA_EN = 1; 725 μs, if LPM_ERRATA_EN = 0; 1010b - 4950 μs, if LPM_ERRATA_EN = 1; 800 μs, if LPM_ERRATA_EN = 0; 1011b - 5950 μs, if LPM_ERRATA_EN = 1; 875 μs, if LPM_ERRATA_EN = 0; 1100b - 6950 μs, if LPM_ERRATA_EN = 1; 950 μs, if LPM_ERRATA_EN = 0; 1101b - 7950 μs, if LPM_ERRATA_EN = 1; 1025 μs, if LPM_ERRATA_EN = 0; 1110b - 8950 μs, if LPM_ERRATA_EN = 1; 1100 μs, if LPM_ERRATA_EN = 0; 1111b - 9950 μs, if LPM_ERRATA_EN = 1; 1175 μs, if LPM_ERRATA_EN = 0.

Source

pub const fn lpm_dev_res(&self) -> bool

LPM Device Response. Raw encoding: 0b - Fourth condition not needed; 1b - Fourth condition needed.

Source

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

LPM Device Response. Raw encoding: 0b - Fourth condition not needed; 1b - Fourth condition needed.

Source

pub const fn lpm_dev_dp(&self) -> bool

LPM Device Data Pending. Raw encoding: 0b - Not pending; 1b - Pending.

Source

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

LPM Device Data Pending. Raw encoding: 0b - Not pending; 1b - Pending.

Source

pub const fn lpm_dev_rspsts(&self) -> u8

LPM Device Response Status. Read-only status/value; writes do not configure this field. Raw encoding: 00b - Invalid; 01b - ACK; 10b - NYET; 11b - STALL.

Source

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

LPM Device Response Status. Read-only status/value; writes do not configure this field. Raw encoding: 00b - Invalid; 01b - ACK; 10b - NYET; 11b - STALL.

Source

pub const fn lpm_dev_rwkenrcvd(&self) -> bool

LPM Device Received bRemoteWake. Read-only status/value; writes do not configure this field. Raw encoding: 0b - 0; 1b - 1.

Source

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

LPM Device Received bRemoteWake. Read-only status/value; writes do not configure this field. Raw encoding: 0b - 0; 1b - 1.

Source

pub const fn lpm_dev_lnkstrcvd(&self) -> u8

LPM Device Received bLinkState. Read-only status/value; writes do not configure this field. Raw encoding: 0000b - Reserved for future use; 0001b - L1 (Sleep mode); 0010b-1111b - Reserved for future use.

Source

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

LPM Device Received bLinkState. Read-only status/value; writes do not configure this field. Raw encoding: 0000b - Reserved for future use; 0001b - L1 (Sleep mode); 0010b-1111b - Reserved for future use.

Source

pub const fn lpm_dev_beslrcvd(&self) -> u8

LPM Device Received BESL. Read-only status/value; writes do not configure this field.

Source

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

LPM Device Received BESL. Read-only status/value; writes do not configure this field.

Trait Implementations§

Source§

impl Clone for NcLpmCsr1

Source§

fn clone(&self) -> NcLpmCsr1

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 NcLpmCsr1

Source§

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

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

impl Default for NcLpmCsr1

Source§

fn default() -> NcLpmCsr1

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

impl PartialEq for NcLpmCsr1

Source§

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

Source§

impl Eq for NcLpmCsr1

Source§

impl StructuralPartialEq for NcLpmCsr1

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.