nxp-pac

Crates

git

Versions

mcxn947_cm33_core1

Flavors

MacConfiguration

Struct MacConfiguration 

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

MAC Configuration.

Tuple Fields§

§0: u32

Implementations§

Source§

impl MacConfiguration

Source

pub const fn re(&self) -> bool

Receiver Enable.

Source

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

Receiver Enable.

Source

pub const fn te(&self) -> bool

Transmitter Enable.

Source

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

Transmitter Enable.

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.

Source

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

Deferral Check.

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) -> Dr

Disable Retry.

Source

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

Disable Retry.

Source

pub const fn dcrs(&self) -> Dcrs

Disable Carrier Sense During Transmission.

Source

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

Disable Carrier Sense During Transmission.

Source

pub const fn do_(&self) -> Do

Disable Receive Own.

Source

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

Disable Receive Own.

Source

pub const fn ecrsfd(&self) -> bool

Enable Carrier Sense Before Transmission in Full-Duplex Mode.

Source

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

Enable Carrier Sense Before Transmission in Full-Duplex Mode.

Source

pub const fn lm(&self) -> bool

Loopback Mode.

Source

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

Loopback Mode.

Source

pub const fn dm(&self) -> Dm

Duplex Mode.

Source

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

Duplex Mode.

Source

pub const fn fes(&self) -> Fes

Speed.

Source

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

Speed.

Source

pub const fn ps(&self) -> Ps

Port Select.

Source

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

Port Select.

Source

pub const fn je(&self) -> bool

Jumbo Packet Enable.

Source

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

Jumbo Packet Enable.

Source

pub const fn jd(&self) -> Jd

Jabber Disable.

Source

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

Jabber Disable.

Source

pub const fn wd(&self) -> Wd

Watchdog Disable.

Source

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

Watchdog Disable.

Source

pub const fn acs(&self) -> bool

Automatic Pad or CRC Stripping.

Source

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

Automatic Pad or CRC Stripping.

Source

pub const fn cst(&self) -> bool

CRC stripping for Type packets.

Source

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

CRC stripping for Type packets.

Source

pub const fn s2kp(&self) -> bool

IEEE 802.3as Support for 2K Packets.

Source

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

IEEE 802.3as Support for 2K Packets.

Source

pub const fn gpslce(&self) -> bool

Giant Packet Size Limit Control Enable.

Source

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

Giant Packet Size Limit Control Enable.

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.

Source

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

Checksum Offload.

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 MacConfiguration

Source§

fn clone(&self) -> MacConfiguration

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 MacConfiguration

Source§

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

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

impl Default for MacConfiguration

Source§

fn default() -> MacConfiguration

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

impl PartialEq for MacConfiguration

Source§

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

Source§

impl Eq for MacConfiguration

Source§

impl StructuralPartialEq for MacConfiguration

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.