nxp-pac

Crates

git

Versions

mcxn547

Flavors

MacConfiguration2

Struct MacConfiguration2 

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

MAC Configuration.

Tuple Fields§

§0: u32

Implementations§

Source§

impl MacConfiguration2

Source

pub const fn re(&self) -> bool

Receiver Enable. Raw bit values: false (0) = Disable: Receiver is disabled.; true (1) = Enable: Receiver is enabled.

Source

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

Receiver Enable. Raw bit values: false (0) = Disable: Receiver is disabled.; true (1) = Enable: Receiver is enabled.

Source

pub const fn te(&self) -> bool

Transmitter Enable. Raw bit values: false (0) = Disable: Transmitter is disabled.; true (1) = Enable: Transmitter is enabled.

Source

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

Transmitter Enable. Raw bit values: false (0) = Disable: Transmitter is disabled.; true (1) = Enable: Transmitter is enabled.

Source

pub const fn prelen(&self) -> Prelen

Preamble Length for Transmit packets.

Source

pub const fn set_prelen(&mut self, val: Prelen)

Preamble Length for Transmit packets.

Source

pub const fn dc(&self) -> bool

Deferral Check. Raw bit values: false (0) = Disable: Deferral check function is disabled.; true (1) = Enable: Deferral check function is enabled.

Source

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

Deferral Check. Raw bit values: false (0) = Disable: Deferral check function is disabled.; true (1) = Enable: Deferral check function is enabled.

Source

pub const fn bl(&self) -> Bl

Back-Off Limit.

Source

pub const fn set_bl(&mut self, val: Bl)

Back-Off Limit.

Source

pub const fn dr(&self) -> bool

Disable Retry. Raw bit values: false (0) = Enable: Enable Retry.; true (1) = Disable: Disable Retry.

Source

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

Disable Retry. Raw bit values: false (0) = Enable: Enable Retry.; true (1) = Disable: Disable Retry.

Source

pub const fn dcrs(&self) -> bool

Disable Carrier Sense During Transmission. Raw bit values: false (0) = Enable: Enable Carrier Sense During Transmission.; true (1) = Disable: Disable Carrier Sense During Transmission.

Source

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

Disable Carrier Sense During Transmission. Raw bit values: false (0) = Enable: Enable Carrier Sense During Transmission.; true (1) = Disable: Disable Carrier Sense During Transmission.

Source

pub const fn do_(&self) -> bool

Disable Receive Own. Raw bit values: false (0) = Enable: Enable Receive Own.; true (1) = Disable: Disable Receive Own.

Source

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

Disable Receive Own. Raw bit values: false (0) = Enable: Enable Receive Own.; true (1) = Disable: Disable Receive Own.

Source

pub const fn ecrsfd(&self) -> bool

Enable Carrier Sense Before Transmission in Full-Duplex Mode. Raw bit values: false (0) = Disable: ECRSFD is disabled.; true (1) = Enable: ECRSFD is enabled.

Source

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

Enable Carrier Sense Before Transmission in Full-Duplex Mode. Raw bit values: false (0) = Disable: ECRSFD is disabled.; true (1) = Enable: ECRSFD is enabled.

Source

pub const fn lm(&self) -> bool

Loopback Mode. Raw bit values: false (0) = Disable: Loopback is disabled.; true (1) = Enable: Loopback is enabled.

Source

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

Loopback Mode. Raw bit values: false (0) = Disable: Loopback is disabled.; true (1) = Enable: Loopback is enabled.

Source

pub const fn dm(&self) -> bool

Duplex Mode. Raw bit values: false (0) = Hduplx: Half-duplex mode.; true (1) = Fduplx: Full-duplex mode.

Source

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

Duplex Mode. Raw bit values: false (0) = Hduplx: Half-duplex mode.; true (1) = Fduplx: Full-duplex mode.

Source

pub const fn fes(&self) -> bool

Speed. Raw bit values: false (0) = M101000m: 10 Mbps when PS bit is 1 and 1 Gbps when PS bit is 0.; true (1) = M1002500m: 100 Mbps when PS bit is 1 and 2.5 Gbps when PS bit is 0.

Source

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

Speed. Raw bit values: false (0) = M101000m: 10 Mbps when PS bit is 1 and 1 Gbps when PS bit is 0.; true (1) = M1002500m: 100 Mbps when PS bit is 1 and 2.5 Gbps when PS bit is 0.

Source

pub const fn ps(&self) -> bool

Port Select. Raw bit values: false (0) = M10002500m: For 1000 or 2500 Mbps operations.; true (1) = M10100m: For 10 or 100 Mbps operations.

Source

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

Port Select. Raw bit values: false (0) = M10002500m: For 1000 or 2500 Mbps operations.; true (1) = M10100m: For 10 or 100 Mbps operations.

Source

pub const fn je(&self) -> bool

Jumbo Packet Enable. Raw bit values: false (0) = Disable: Jumbo packet is disabled.; true (1) = Enable: Jumbo packet is enabled.

Source

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

Jumbo Packet Enable. Raw bit values: false (0) = Disable: Jumbo packet is disabled.; true (1) = Enable: Jumbo packet is enabled.

Source

pub const fn jd(&self) -> bool

Jabber Disable. Raw bit values: false (0) = Enable: Jabber is enabled.; true (1) = Disable: Jabber is disabled.

Source

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

Jabber Disable. Raw bit values: false (0) = Enable: Jabber is enabled.; true (1) = Disable: Jabber is disabled.

Source

pub const fn wd(&self) -> bool

Watchdog Disable. Raw bit values: false (0) = Enable: Watchdog is enabled.; true (1) = Disable: Watchdog is disabled.

Source

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

Watchdog Disable. Raw bit values: false (0) = Enable: Watchdog is enabled.; true (1) = Disable: Watchdog is disabled.

Source

pub const fn acs(&self) -> bool

Automatic Pad or CRC Stripping. Raw bit values: false (0) = Disable: Automatic Pad or CRC Stripping is disabled.; true (1) = Enable: Automatic Pad or CRC Stripping is enabled.

Source

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

Automatic Pad or CRC Stripping. Raw bit values: false (0) = Disable: Automatic Pad or CRC Stripping is disabled.; true (1) = Enable: Automatic Pad or CRC Stripping is enabled.

Source

pub const fn cst(&self) -> bool

CRC stripping for Type packets. Raw bit values: false (0) = Disable: CRC stripping for Type packets is disabled.; true (1) = Enable: CRC stripping for Type packets is enabled.

Source

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

CRC stripping for Type packets. Raw bit values: false (0) = Disable: CRC stripping for Type packets is disabled.; true (1) = Enable: CRC stripping for Type packets is enabled.

Source

pub const fn s2kp(&self) -> bool

IEEE 802.3as Support for 2K Packets. Raw bit values: false (0) = Disable: Support upto 2K packet is disabled.; true (1) = Enable: Support upto 2K packet is Enabled.

Source

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

IEEE 802.3as Support for 2K Packets. Raw bit values: false (0) = Disable: Support upto 2K packet is disabled.; true (1) = Enable: Support upto 2K packet is Enabled.

Source

pub const fn gpslce(&self) -> bool

Giant Packet Size Limit Control Enable. Raw bit values: false (0) = Disable: Giant Packet Size Limit Control is disabled.; true (1) = Enable: Giant Packet Size Limit Control is enabled.

Source

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

Giant Packet Size Limit Control Enable. Raw bit values: false (0) = Disable: Giant Packet Size Limit Control is disabled.; true (1) = Enable: Giant Packet Size Limit Control is enabled.

Source

pub const fn ipg(&self) -> Ipg

Inter-Packet Gap.

Source

pub const fn set_ipg(&mut self, val: Ipg)

Inter-Packet Gap.

Source

pub const fn ipc(&self) -> bool

Checksum Offload. Raw bit values: false (0) = Disable: IP header/payload checksum checking is disabled.; true (1) = Enable: IP header/payload checksum checking is enabled.

Source

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

Checksum Offload. Raw bit values: false (0) = Disable: IP header/payload checksum checking is disabled.; true (1) = Enable: IP header/payload checksum checking is enabled.

Source

pub const fn sarc(&self) -> Sarc

Source Address Insertion or Replacement Control.

Source

pub const fn set_sarc(&mut self, val: Sarc)

Source Address Insertion or Replacement Control.

Trait Implementations§

Source§

impl Clone for MacConfiguration2

Source§

fn clone(&self) -> MacConfiguration2

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 MacConfiguration2

Source§

fn default() -> MacConfiguration2

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

impl PartialEq for MacConfiguration2

Source§

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

Source§

impl Eq for MacConfiguration2

Source§

impl StructuralPartialEq for MacConfiguration2

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.