nxp-pac

Crates

git

Versions

mcxn527

Flavors

Scfgr1

Struct Scfgr1 

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

Target Configuration 1.

Tuple Fields§

§0: u32

Implementations§

Source§

impl Scfgr1

Source

pub const fn adrstall(&self) -> bool

Address SCL Stall.

Source

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

Address SCL Stall.

Source

pub const fn rxstall(&self) -> bool

RX SCL Stall.

Source

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

RX SCL Stall.

Source

pub const fn txdstall(&self) -> bool

Transmit Data SCL Stall.

Source

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

Transmit Data SCL Stall.

Source

pub const fn ackstall(&self) -> bool

ACK SCL Stall.

Source

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

ACK SCL Stall.

Source

pub const fn rxnack(&self) -> bool

Receive NACK. Raw bit values: false (0) = SetByTxnack: ACK or NACK always determined by STAR[TXNACK].; true (1) = AlwaysGeneratedOnAddressOrReceiveDataOverrun: NACK always generated on address overrun or receive data overrun, otherwise ACK or NACK is determined by STAR[TXNACK].

Source

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

Receive NACK. Raw bit values: false (0) = SetByTxnack: ACK or NACK always determined by STAR[TXNACK].; true (1) = AlwaysGeneratedOnAddressOrReceiveDataOverrun: NACK always generated on address overrun or receive data overrun, otherwise ACK or NACK is determined by STAR[TXNACK].

Source

pub const fn gcen(&self) -> bool

General Call Enable.

Source

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

General Call Enable.

Source

pub const fn saen(&self) -> bool

SMBus Alert Enable.

Source

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

SMBus Alert Enable.

Source

pub const fn txcfg(&self) -> bool

Transmit Flag Configuration. Raw bit values: false (0) = AssertsDuringSlaveTransmitTransferWhenTxDataEmpty: SSR[TDF] is set only during a target-transmit transfer when STDR is empty. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); false (0) = AssertsDuringSlaveTransmitTransferWhenTxDataEmpty: MSR[TDF] is set only during a target-transmit transfer when STDR is empty. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); false (0) = AssertsDuringSlaveTransmitTransferWhenTxDataEmpty: SSR.TDF is set only during a target-transmit transfer when STDR is empty. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$); true (1) = AssertsWhenTxDataEmpty: SSR[TDF] is set whenever STDR is empty. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); true (1) = AssertsWhenTxDataEmpty: MSR[TDF] is set whenever STDR is empty. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); true (1) = AssertsWhenTxDataEmpty: SSR.TDF is set whenever STDR is empty. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$)

Source

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

Transmit Flag Configuration. Raw bit values: false (0) = AssertsDuringSlaveTransmitTransferWhenTxDataEmpty: SSR[TDF] is set only during a target-transmit transfer when STDR is empty. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); false (0) = AssertsDuringSlaveTransmitTransferWhenTxDataEmpty: MSR[TDF] is set only during a target-transmit transfer when STDR is empty. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); false (0) = AssertsDuringSlaveTransmitTransferWhenTxDataEmpty: SSR.TDF is set only during a target-transmit transfer when STDR is empty. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$); true (1) = AssertsWhenTxDataEmpty: SSR[TDF] is set whenever STDR is empty. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); true (1) = AssertsWhenTxDataEmpty: MSR[TDF] is set whenever STDR is empty. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); true (1) = AssertsWhenTxDataEmpty: SSR.TDF is set whenever STDR is empty. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$)

Source

pub const fn rxcfg(&self) -> bool

Receive Data Configuration. Raw bit values: false (0) = ReturnsReceivedDataAndClearsRxDataFlag: Return received data, clear SSR[RDF]. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); false (0) = ReturnsReceivedDataAndClearsRxDataFlag: Return received data, clear MSR[RDF]. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); false (0) = ReturnsReceivedDataAndClearsRxDataFlag: Return received data and clear SSR.RDF. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$); true (1) = WhenAddressValidFlagSetReturnsAddressStatusAndClearsAddressValidFlag: Return SASR and clear SSR[AVF] when SSR[AVF] is set, return received data and clear SSR[RDF] when SSR[AFV] is not set. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); true (1) = WhenAddressValidFlagSetReturnsAddressStatusAndClearsAddressValidFlag: Return SASR and clear SSR[AVF] when SSR[AVF] is set, return received data and clear MSR[RDF] when SSR[AFV] is not set. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); true (1) = WhenAddressValidFlagSetReturnsAddressStatusAndClearsAddressValidFlag: Return SASR and clear SSR.AVF when AVF is set; otherwise return received data and clear SSR.RDF. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$)

Source

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

Receive Data Configuration. Raw bit values: false (0) = ReturnsReceivedDataAndClearsRxDataFlag: Return received data, clear SSR[RDF]. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); false (0) = ReturnsReceivedDataAndClearsRxDataFlag: Return received data, clear MSR[RDF]. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); false (0) = ReturnsReceivedDataAndClearsRxDataFlag: Return received data and clear SSR.RDF. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$); true (1) = WhenAddressValidFlagSetReturnsAddressStatusAndClearsAddressValidFlag: Return SASR and clear SSR[AVF] when SSR[AVF] is set, return received data and clear SSR[RDF] when SSR[AFV] is not set. (only_in: ^MCXA(175|176|185|186|255|256|265|266|286|287|456|457|536|537|556|557|566|567|577)$); true (1) = WhenAddressValidFlagSetReturnsAddressStatusAndClearsAddressValidFlag: Return SASR and clear SSR[AVF] when SSR[AVF] is set, return received data and clear MSR[RDF] when SSR[AFV] is not set. (only_in: ^MCXA(132|133|142|143|144|145|146|152|153|154|155|156)$); true (1) = WhenAddressValidFlagSetReturnsAddressStatusAndClearsAddressValidFlag: Return SASR and clear SSR.AVF when AVF is set; otherwise return received data and clear SSR.RDF. (only_in: ^MCXN(235|236|246|247|526|527|536|537|546|547|556|557|946|947)$)

Source

pub const fn ignack(&self) -> bool

Ignore NACK. Raw bit values: false (0) = EndsTransferOnNack: End transfer on NACK.; true (1) = DoesNotEndTransferOnNack: Do not end transfer on NACK.

Source

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

Ignore NACK. Raw bit values: false (0) = EndsTransferOnNack: End transfer on NACK.; true (1) = DoesNotEndTransferOnNack: Do not end transfer on NACK.

Source

pub const fn hsmen(&self) -> bool

HS Mode Enable.

Source

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

HS Mode Enable.

Source

pub const fn addrcfg(&self) -> Addrcfg

Address Configuration.

Source

pub const fn set_addrcfg(&mut self, val: Addrcfg)

Address Configuration.

Source

pub const fn rxall(&self) -> bool

Receive All.

Source

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

Receive All.

Source

pub const fn rscfg(&self) -> bool

Repeated Start Configuration. Raw bit values: false (0) = AnyRepeatedStartAfterAddressMatch: Any repeated Start condition following an address match.; true (1) = AnyRepeatedStart: Any repeated Start condition.

Source

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

Repeated Start Configuration. Raw bit values: false (0) = AnyRepeatedStartAfterAddressMatch: Any repeated Start condition following an address match.; true (1) = AnyRepeatedStart: Any repeated Start condition.

Source

pub const fn sdcfg(&self) -> bool

Stop Detect Configuration. Raw bit values: false (0) = AnyStopAfterAddressMatch: Any Stop condition following an address match.; true (1) = AnyStop: Any Stop condition.

Source

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

Stop Detect Configuration. Raw bit values: false (0) = AnyStopAfterAddressMatch: Any Stop condition following an address match.; true (1) = AnyStop: Any Stop condition.

Trait Implementations§

Source§

impl Clone for Scfgr1

Source§

fn clone(&self) -> Scfgr1

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 Scfgr1

Source§

fn default() -> Scfgr1

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

impl PartialEq for Scfgr1

Source§

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

Source§

impl Eq for Scfgr1

Source§

impl StructuralPartialEq for Scfgr1

Auto Trait Implementations§

§

impl Freeze for Scfgr1

§

impl RefUnwindSafe for Scfgr1

§

impl Send for Scfgr1

§

impl Sync for Scfgr1

§

impl Unpin for Scfgr1

§

impl UnwindSafe for Scfgr1

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.