#[repr(transparent)]pub struct MacConfiguration2(pub u32);Expand description
MAC Configuration.
Tuple Fields§
§0: u32Implementations§
Source§impl MacConfiguration2
impl MacConfiguration2
Sourcepub const fn re(&self) -> bool
pub const fn re(&self) -> bool
Receiver Enable. Raw bit values: false (0) = Disable: Receiver is disabled.; true (1) = Enable: Receiver is enabled.
Sourcepub const fn set_re(&mut self, val: bool)
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.
Sourcepub const fn te(&self) -> bool
pub const fn te(&self) -> bool
Transmitter Enable. Raw bit values: false (0) = Disable: Transmitter is disabled.; true (1) = Enable: Transmitter is enabled.
Sourcepub const fn set_te(&mut self, val: bool)
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.
Sourcepub const fn set_prelen(&mut self, val: Prelen)
pub const fn set_prelen(&mut self, val: Prelen)
Preamble Length for Transmit packets.
Sourcepub const fn dc(&self) -> bool
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.
Sourcepub const fn set_dc(&mut self, val: bool)
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.
Sourcepub const fn dr(&self) -> bool
pub const fn dr(&self) -> bool
Disable Retry. Raw bit values: false (0) = Enable: Enable Retry.; true (1) = Disable: Disable Retry.
Sourcepub const fn set_dr(&mut self, val: bool)
pub const fn set_dr(&mut self, val: bool)
Disable Retry. Raw bit values: false (0) = Enable: Enable Retry.; true (1) = Disable: Disable Retry.
Sourcepub const fn dcrs(&self) -> bool
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.
Sourcepub const fn set_dcrs(&mut self, val: bool)
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.
Sourcepub const fn do_(&self) -> bool
pub const fn do_(&self) -> bool
Disable Receive Own. Raw bit values: false (0) = Enable: Enable Receive Own.; true (1) = Disable: Disable Receive Own.
Sourcepub const fn set_do_(&mut self, val: bool)
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.
Sourcepub const fn ecrsfd(&self) -> bool
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.
Sourcepub const fn set_ecrsfd(&mut self, val: bool)
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.
Sourcepub const fn lm(&self) -> bool
pub const fn lm(&self) -> bool
Loopback Mode. Raw bit values: false (0) = Disable: Loopback is disabled.; true (1) = Enable: Loopback is enabled.
Sourcepub const fn set_lm(&mut self, val: bool)
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.
Sourcepub const fn dm(&self) -> bool
pub const fn dm(&self) -> bool
Duplex Mode. Raw bit values: false (0) = Hduplx: Half-duplex mode.; true (1) = Fduplx: Full-duplex mode.
Sourcepub const fn set_dm(&mut self, val: bool)
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.
Sourcepub const fn fes(&self) -> bool
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.
Sourcepub const fn set_fes(&mut self, val: bool)
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.
Sourcepub const fn ps(&self) -> bool
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.
Sourcepub const fn set_ps(&mut self, val: bool)
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.
Sourcepub const fn je(&self) -> bool
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.
Sourcepub const fn set_je(&mut self, val: bool)
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.
Sourcepub const fn jd(&self) -> bool
pub const fn jd(&self) -> bool
Jabber Disable. Raw bit values: false (0) = Enable: Jabber is enabled.; true (1) = Disable: Jabber is disabled.
Sourcepub const fn set_jd(&mut self, val: bool)
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.
Sourcepub const fn wd(&self) -> bool
pub const fn wd(&self) -> bool
Watchdog Disable. Raw bit values: false (0) = Enable: Watchdog is enabled.; true (1) = Disable: Watchdog is disabled.
Sourcepub const fn set_wd(&mut self, val: bool)
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.
Sourcepub const fn acs(&self) -> bool
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.
Sourcepub const fn set_acs(&mut self, val: bool)
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.
Sourcepub const fn cst(&self) -> bool
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.
Sourcepub const fn set_cst(&mut self, val: bool)
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.
Sourcepub const fn s2kp(&self) -> bool
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.
Sourcepub const fn set_s2kp(&mut self, val: bool)
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.
Sourcepub const fn gpslce(&self) -> bool
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.
Sourcepub const fn set_gpslce(&mut self, val: bool)
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.
Sourcepub const fn ipc(&self) -> bool
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.
Trait Implementations§
Source§impl Clone for MacConfiguration2
impl Clone for MacConfiguration2
Source§fn clone(&self) -> MacConfiguration2
fn clone(&self) -> MacConfiguration2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more