nxp-pac

Crates

git

Versions

mcxa536

Flavors

MacHwFeature0

Struct MacHwFeature0 

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

F70RM Rev. 1 section 51.7.1.17; manual text line 150611.

Tuple Fields§

§0: u32

Implementations§

Source§

impl MacHwFeature0

Source

pub const fn miisel(&self) -> bool

Read-only. 10 or 100 Mbps Support. This bit is set to 1 when 10/100 Mbps is selected as the Mode of Operation 0b - No 10 or 100 Mbps support 1b - 10 or 100 Mbps support

Source

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

Read-only. 10 or 100 Mbps Support. This bit is set to 1 when 10/100 Mbps is selected as the Mode of Operation 0b - No 10 or 100 Mbps support 1b - 10 or 100 Mbps support

Source

pub const fn gmiisel(&self) -> bool

Read-only. 1000 Mbps Support. This bit is set to 1 when 1000 Mbps is selected as the Mode of Operation 0b - No 1000 Mbps support 1b - 1000 Mbps support

Source

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

Read-only. 1000 Mbps Support. This bit is set to 1 when 1000 Mbps is selected as the Mode of Operation 0b - No 1000 Mbps support 1b - 1000 Mbps support

Source

pub const fn hdsel(&self) -> bool

Read-only. Half-duplex Support. This bit is set to 1 when the half-duplex mode is selected 0b - No Half-duplex support 1b - Half-duplex support

Source

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

Read-only. Half-duplex Support. This bit is set to 1 when the half-duplex mode is selected 0b - No Half-duplex support 1b - Half-duplex support

Source

pub const fn pcssel(&self) -> bool

Read-only. PCS Registers (TBI, SGMII, or RTBI PHY interface). This bit is set to 1 when the TBI, SGMII, or RTBI PHY interface option is selected 0b - No PCS Registers (TBI, SGMII, or RTBI PHY interface) 1b - PCS Registers (TBI, SGMII, or RTBI PHY interface)

Source

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

Read-only. PCS Registers (TBI, SGMII, or RTBI PHY interface). This bit is set to 1 when the TBI, SGMII, or RTBI PHY interface option is selected 0b - No PCS Registers (TBI, SGMII, or RTBI PHY interface) 1b - PCS Registers (TBI, SGMII, or RTBI PHY interface)

Source

pub const fn vlhash(&self) -> bool

Read-only. VLAN Hash Filter Selected. This bit is set to 1 when the Enable VLAN Hash Table Based Filtering option is selected 0b - VLAN Hash Filter not selected 1b - VLAN Hash Filter selected

Source

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

Read-only. VLAN Hash Filter Selected. This bit is set to 1 when the Enable VLAN Hash Table Based Filtering option is selected 0b - VLAN Hash Filter not selected 1b - VLAN Hash Filter selected

Source

pub const fn smasel(&self) -> bool

Read-only. SMA (MDIO) Interface. This bit is set to 1 when the Enable Station Management (MDIO Interface) option is selected 0b - SMA (MDIO) Interface not selected 1b - SMA (MDIO) Interface selected

Source

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

Read-only. SMA (MDIO) Interface. This bit is set to 1 when the Enable Station Management (MDIO Interface) option is selected 0b - SMA (MDIO) Interface not selected 1b - SMA (MDIO) Interface selected

Source

pub const fn rwksel(&self) -> bool

Read-only. PMT Remote Wake-up Packet Enable. This bit is set to 1 when the Enable Remote Wake-Up Packet Detection option is selected 0b - PMT Remote Wake-up Packet Enable option is not selected 1b - PMT Remote Wake-up Packet Enable option is selected

Source

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

Read-only. PMT Remote Wake-up Packet Enable. This bit is set to 1 when the Enable Remote Wake-Up Packet Detection option is selected 0b - PMT Remote Wake-up Packet Enable option is not selected 1b - PMT Remote Wake-up Packet Enable option is selected

Source

pub const fn mgksel(&self) -> bool

Read-only. PMT Magic Packet Enable. This bit is set to 1 when the Enable Magic Packet Detection option is selected 0b - PMT Magic Packet Enable option is not selected 1b - PMT Magic Packet Enable option is selected

Source

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

Read-only. PMT Magic Packet Enable. This bit is set to 1 when the Enable Magic Packet Detection option is selected 0b - PMT Magic Packet Enable option is not selected 1b - PMT Magic Packet Enable option is selected

Source

pub const fn mmcsel(&self) -> bool

Read-only. RMON Module Enable. This bit is set to 1 when the Enable MAC Management Counters (MMC) option is selected 0b - RMON Module Enable option is not selected 1b - RMON Module Enable option is selected

Source

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

Read-only. RMON Module Enable. This bit is set to 1 when the Enable MAC Management Counters (MMC) option is selected 0b - RMON Module Enable option is not selected 1b - RMON Module Enable option is selected

Source

pub const fn arpoffsel(&self) -> bool

Read-only. ARP Offload Enabled. This bit is set to 1 when the Enable IPv4 ARP Offload option is selected 0b - ARP Offload Enable option is not selected 1b - ARP Offload Enable option is selected

Source

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

Read-only. ARP Offload Enabled. This bit is set to 1 when the Enable IPv4 ARP Offload option is selected 0b - ARP Offload Enable option is not selected 1b - ARP Offload Enable option is selected

Source

pub const fn tssel(&self) -> bool

Read-only. IEEE 1588-2008 Timestamp Enabled. This bit is set to 1 when the Enable IEEE 1588 Timestamp Support option is selected 0b - IEEE 1588-2008 Timestamp Enable option is not selected 1b - IEEE 1588-2008 Timestamp Enable option is selected

Source

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

Read-only. IEEE 1588-2008 Timestamp Enabled. This bit is set to 1 when the Enable IEEE 1588 Timestamp Support option is selected 0b - IEEE 1588-2008 Timestamp Enable option is not selected 1b - IEEE 1588-2008 Timestamp Enable option is selected

Source

pub const fn txcoesel(&self) -> bool

Read-only. Transmit Checksum Offload Enabled. This bit is set to 1 when the Enable Transmit TCP/IP Checksum Insertion option is selected 0b - Transmit Checksum Offload Enable option is not selected 1b - Transmit Checksum Offload Enable option is selected

Source

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

Read-only. Transmit Checksum Offload Enabled. This bit is set to 1 when the Enable Transmit TCP/IP Checksum Insertion option is selected 0b - Transmit Checksum Offload Enable option is not selected 1b - Transmit Checksum Offload Enable option is selected

Source

pub const fn rxcoesel(&self) -> bool

Read-only. Receive Checksum Offload Enabled. This bit is set to 1 when the Enable Receive TCP/IP Checksum Check option is selected 0b - Receive Checksum Offload Enable option is not selected 1b - Receive Checksum Offload Enable option is selected

Source

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

Read-only. Receive Checksum Offload Enabled. This bit is set to 1 when the Enable Receive TCP/IP Checksum Check option is selected 0b - Receive Checksum Offload Enable option is not selected 1b - Receive Checksum Offload Enable option is selected

Source

pub const fn addmacadrsel(&self) -> u8

Read-only. MAC Addresses 1-31 Selected. This bit is set to 1 when the non-zero value is selected for Enable Additional 1-31 MAC Address EL Registers option

Source

pub const fn set_addmacadrsel(&mut self, val: u8)

Read-only. MAC Addresses 1-31 Selected. This bit is set to 1 when the non-zero value is selected for Enable Additional 1-31 MAC Address EL Registers option

Source

pub const fn macadr32sel(&self) -> bool

Read-only. MAC Addresses 32-63 Selected. This bit is set to 1 when the Enable Additional 32 MAC Address Registers (32-63) option is selected 0b - MAC Addresses 32-63 Select option is not selected 1b - MAC Addresses 32-63 Select option is selected

Source

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

Read-only. MAC Addresses 32-63 Selected. This bit is set to 1 when the Enable Additional 32 MAC Address Registers (32-63) option is selected 0b - MAC Addresses 32-63 Select option is not selected 1b - MAC Addresses 32-63 Select option is selected

Source

pub const fn macadr64sel(&self) -> bool

Read-only. MAC Addresses 64-127 Selected. This bit is set to 1 when the Enable Additional 64 MAC Address Registers (64-127) option is selected 0b - MAC Addresses 64-127 Select option is not selected 1b - MAC Addresses 64-127 Select option is selected

Source

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

Read-only. MAC Addresses 64-127 Selected. This bit is set to 1 when the Enable Additional 64 MAC Address Registers (64-127) option is selected 0b - MAC Addresses 64-127 Select option is not selected 1b - MAC Addresses 64-127 Select option is selected

Source

pub const fn tsstssel(&self) -> u8

Read-only. Timestamp System Time Source. This bit indicates the source of the Timestamp System Time. This bit is set to 1 when the Enable IEEE 1588 Timestamp Support option is selected using the following values: 00b - Reserved 01b - Internal 10b - External 11b - Both

Source

pub const fn set_tsstssel(&mut self, val: u8)

Read-only. Timestamp System Time Source. This bit indicates the source of the Timestamp System Time. This bit is set to 1 when the Enable IEEE 1588 Timestamp Support option is selected using the following values: 00b - Reserved 01b - Internal 10b - External 11b - Both

Source

pub const fn savlanins(&self) -> bool

Read-only. Source Address or VLAN Insertion Enable. This bit is set to 1 when the Enable SA and VLAN Insertion on Tx option is selected 0b - Source Address or VLAN Insertion Enable option is not selected 1b - Source Address or VLAN Insertion Enable option is selected

Source

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

Read-only. Source Address or VLAN Insertion Enable. This bit is set to 1 when the Enable SA and VLAN Insertion on Tx option is selected 0b - Source Address or VLAN Insertion Enable option is not selected 1b - Source Address or VLAN Insertion Enable option is selected

Source

pub const fn actphysel(&self) -> u8

Read-only. Active PHY Selected. When you have multiple PHY interfaces in your configuration, this field indicates the sampled value of phy_intf_sel_i during reset de-assertion. 0000b - GMII or MII 0001b - Reserved 0010b - Reserved 0011b - Reserved 0100b - Reserved 0101b - Reserved 0110b - Reserved 0111b - Reserved 1000b - B10T1S

Source

pub const fn set_actphysel(&mut self, val: u8)

Read-only. Active PHY Selected. When you have multiple PHY interfaces in your configuration, this field indicates the sampled value of phy_intf_sel_i during reset de-assertion. 0000b - GMII or MII 0001b - Reserved 0010b - Reserved 0011b - Reserved 0100b - Reserved 0101b - Reserved 0110b - Reserved 0111b - Reserved 1000b - B10T1S

Trait Implementations§

Source§

impl Clone for MacHwFeature0

Source§

fn clone(&self) -> MacHwFeature0

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 MacHwFeature0

Source§

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

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

impl Default for MacHwFeature0

Source§

fn default() -> MacHwFeature0

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

impl PartialEq for MacHwFeature0

Source§

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

Source§

impl Eq for MacHwFeature0

Source§

impl StructuralPartialEq for MacHwFeature0

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.