nxp-pac

Crates

git

Versions

mcxn947_cm33_core0

Flavors

Ctrl

Struct Ctrl 

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

Control

Tuple Fields§

§0: u32

Implementations§

Source§

impl Ctrl

Source

pub const fn ic(&self) -> Ic

Inverse Convention

Source

pub const fn set_ic(&mut self, val: Ic)

Inverse Convention

Source

pub const fn icm(&self) -> bool

Initial Character Mode

Source

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

Initial Character Mode

Source

pub const fn anack(&self) -> bool

Auto NACK Enable

Source

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

Auto NACK Enable

Source

pub const fn onack(&self) -> bool

Overrun NACK Enable

Source

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

Overrun NACK Enable

Source

pub const fn flsh_rx(&self) -> FlshRx

Flush Receiver

Source

pub const fn set_flsh_rx(&mut self, val: FlshRx)

Flush Receiver

Source

pub const fn flsh_tx(&self) -> FlshTx

Flush Transmitter

Source

pub const fn set_flsh_tx(&mut self, val: FlshTx)

Flush Transmitter

Source

pub const fn sw_rst(&self) -> SwRst

Software Reset

Source

pub const fn set_sw_rst(&mut self, val: SwRst)

Software Reset

Source

pub const fn kill_clocks(&self) -> KillClocks

Kill Internal Clocks

Source

pub const fn set_kill_clocks(&mut self, val: KillClocks)

Kill Internal Clocks

Source

pub const fn doze_en(&self) -> DozeEn

Doze Enable

Source

pub const fn set_doze_en(&mut self, val: DozeEn)

Doze Enable

Source

pub const fn stop_en(&self) -> StopEn

STOP Enable

Source

pub const fn set_stop_en(&mut self, val: StopEn)

STOP Enable

Source

pub const fn rcv_en(&self) -> bool

Receiver Enable

Source

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

Receiver Enable

Source

pub const fn xmt_en(&self) -> bool

Transmitter Enable

Source

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

Transmitter Enable

Source

pub const fn rcvr_11(&self) -> Rcvr11

Receiver 11 ETU Mode Enable

Source

pub const fn set_rcvr_11(&mut self, val: Rcvr11)

Receiver 11 ETU Mode Enable

Source

pub const fn rx_dma_en(&self) -> bool

Receive DMA Enable

Source

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

Receive DMA Enable

Source

pub const fn tx_dma_en(&self) -> bool

Transmit DMA Enable

Source

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

Transmit DMA Enable

Source

pub const fn inv_crc_val(&self) -> bool

Invert CRC Output Value Bits

Source

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

Invert CRC Output Value Bits

Source

pub const fn crc_out_flip(&self) -> bool

CRC Output Value Bit Reversal Or Flip Control

Source

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

CRC Output Value Bit Reversal Or Flip Control

Source

pub const fn crc_in_flip(&self) -> bool

CRC Input Byte’s Bit Reversal Or Flip Control

Source

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

CRC Input Byte’s Bit Reversal Or Flip Control

Source

pub const fn cwt_en(&self) -> bool

CWT Counter Enable

Source

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

CWT Counter Enable

Source

pub const fn lrc_en(&self) -> bool

LRC Enable

Source

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

LRC Enable

Source

pub const fn crc_en(&self) -> bool

CRC Enable

Source

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

CRC Enable

Source

pub const fn xmt_crc_lrc(&self) -> bool

Transmit CRC or LRC Enable

Source

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

Transmit CRC or LRC Enable

Source

pub const fn bwt_en(&self) -> bool

Block Wait Time Counter Enable

Source

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

Block Wait Time Counter Enable

Trait Implementations§

Source§

impl Clone for Ctrl

Source§

fn clone(&self) -> Ctrl

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 Ctrl

Source§

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

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

impl Default for Ctrl

Source§

fn default() -> Ctrl

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

impl PartialEq for Ctrl

Source§

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

Source§

impl Eq for Ctrl

Source§

impl StructuralPartialEq for Ctrl

Auto Trait Implementations§

§

impl Freeze for Ctrl

§

impl RefUnwindSafe for Ctrl

§

impl Send for Ctrl

§

impl Sync for Ctrl

§

impl Unpin for Ctrl

§

impl UnwindSafe for Ctrl

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.