nxp-pac

Crates

git

Versions

mcxn236

Flavors

NMsr

Struct NMsr 

Source
#[repr(transparent)]
pub struct NMsr(pub u32);

Tuple Fields§

§0: u32

Implementations§

Source§

impl NMsr

Source

pub const fn tdf(&self) -> bool

Transmit Data Flag.

Source

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

Transmit Data Flag.

Source

pub const fn rdf(&self) -> bool

Receive Data Flag.

Source

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

Receive Data Flag.

Source

pub const fn epf(&self) -> bool

End Packet Flag. Raw bit values: false (0) = IntNo: No Stop or repeated Start generated.; true (1) = IntYes: Stop or repeated Start generated.

Source

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

End Packet Flag. Raw bit values: false (0) = IntNo: No Stop or repeated Start generated.; true (1) = IntYes: Stop or repeated Start generated.

Source

pub const fn sdf(&self) -> bool

Stop Detect Flag. Raw bit values: false (0) = IntNo: No Stop condition generated.; true (1) = IntYes: Stop condition generated.

Source

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

Stop Detect Flag. Raw bit values: false (0) = IntNo: No Stop condition generated.; true (1) = IntYes: Stop condition generated.

Source

pub const fn ndf(&self) -> bool

NACK Detect Flag. Raw bit values: false (0) = IntNo: No unexpected NACK detected.; true (1) = IntYes: Unexpected NACK detected.

Source

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

NACK Detect Flag. Raw bit values: false (0) = IntNo: No unexpected NACK detected.; true (1) = IntYes: Unexpected NACK detected.

Source

pub const fn alf(&self) -> bool

Arbitration Lost Flag. Raw bit values: false (0) = IntNo: Controller did not lose arbitration.; true (1) = IntYes: Controller lost arbitration.

Source

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

Arbitration Lost Flag. Raw bit values: false (0) = IntNo: Controller did not lose arbitration.; true (1) = IntYes: Controller lost arbitration.

Source

pub const fn fef(&self) -> bool

FIFO Error Flag. Raw bit values: false (0) = IntNo: No FIFO error.; true (1) = IntYes: FIFO error.

Source

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

FIFO Error Flag. Raw bit values: false (0) = IntNo: No FIFO error.; true (1) = IntYes: FIFO error.

Source

pub const fn pltf(&self) -> bool

Pin Low Timeout Flag. Raw bit values: false (0) = IntNo: Pin low timeout did not occur.; true (1) = IntYes: Pin low timeout occurred.

Source

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

Pin Low Timeout Flag. Raw bit values: false (0) = IntNo: Pin low timeout did not occur.; true (1) = IntYes: Pin low timeout occurred.

Source

pub const fn dmf(&self) -> bool

Data Match Flag. Raw bit values: false (0) = IntNo: Matching data not received.; true (1) = IntYes: Matching data received.

Source

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

Data Match Flag. Raw bit values: false (0) = IntNo: Matching data not received.; true (1) = IntYes: Matching data received.

Source

pub const fn stf(&self) -> bool

Start Flag. Raw bit values: false (0) = IntNo: Start condition not detected.; true (1) = IntYes: Start condition detected.

Source

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

Start Flag. Raw bit values: false (0) = IntNo: Start condition not detected.; true (1) = IntYes: Start condition detected.

Source

pub const fn mbf(&self) -> bool

Controller Busy Flag. Raw bit values: false (0) = Idle: Idle.; true (1) = Busy: Busy.

Source

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

Controller Busy Flag. Raw bit values: false (0) = Idle: Idle.; true (1) = Busy: Busy.

Source

pub const fn bbf(&self) -> bool

Bus Busy Flag. Raw bit values: false (0) = Idle: Idle.; true (1) = Busy: Busy.

Source

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

Bus Busy Flag. Raw bit values: false (0) = Idle: Idle.; true (1) = Busy: Busy.

Trait Implementations§

Source§

impl Clone for NMsr

Source§

fn clone(&self) -> NMsr

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 Default for NMsr

Source§

fn default() -> NMsr

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

impl PartialEq for NMsr

Source§

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

Source§

impl Eq for NMsr

Source§

impl StructuralPartialEq for NMsr

Auto Trait Implementations§

§

impl Freeze for NMsr

§

impl RefUnwindSafe for NMsr

§

impl Send for NMsr

§

impl Sync for NMsr

§

impl Unpin for NMsr

§

impl UnwindSafe for NMsr

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.