Struct stm32_hal2::pac::ethernet_mac::maccr::W
source · pub struct W(/* private fields */);
Expand description
Register MACCR
writer
Implementations§
source§impl W
impl W
sourcepub fn re(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 0>
pub fn re(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 0>
Bit 0 - Receiver Enable
sourcepub fn te(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 1>
pub fn te(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 1>
Bit 1 - Transmitter Enable
sourcepub fn prelen(
&mut self
) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 2, 2>
pub fn prelen( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 2, 2>
Bits 2:3 - Preamble Length for Transmit Packets
sourcepub fn dc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 4>
pub fn dc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 4>
Bit 4 - Deferral Check
sourcepub fn bl(
&mut self
) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 2, 5>
pub fn bl( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 2, 5>
Bits 5:6 - Back-Off Limit
sourcepub fn dr(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 8>
pub fn dr(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 8>
Bit 8 - Disable Retry
sourcepub fn dcrs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 9>
pub fn dcrs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 9>
Bit 9 - Disable Carrier Sense During Transmission
sourcepub fn do_(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 10>
pub fn do_(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 10>
Bit 10 - Disable Receive Own
sourcepub fn ecrsfd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 11>
pub fn ecrsfd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 11>
Bit 11 - Enable Carrier Sense Before Transmission in Full-Duplex Mode
sourcepub fn lm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 12>
pub fn lm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 12>
Bit 12 - Loopback Mode
sourcepub fn dm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 13>
pub fn dm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 13>
Bit 13 - Duplex Mode
sourcepub fn fes(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 14>
pub fn fes(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 14>
Bit 14 - MAC Speed
sourcepub fn je(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 16>
pub fn je(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 16>
Bit 16 - Jumbo Packet Enable
sourcepub fn jd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 17>
pub fn jd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 17>
Bit 17 - Jabber Disable
sourcepub fn wd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 19>
pub fn wd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 19>
Bit 19 - Watchdog Disable
sourcepub fn acs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 20>
pub fn acs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 20>
Bit 20 - Automatic Pad or CRC Stripping
sourcepub fn cst(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 21>
pub fn cst(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 21>
Bit 21 - CRC stripping for Type packets
sourcepub fn s2kp(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 22>
pub fn s2kp(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 22>
Bit 22 - IEEE 802.3as Support for 2K Packets
sourcepub fn gpslce(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 23>
pub fn gpslce(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 23>
Bit 23 - Giant Packet Size Limit Control Enable
sourcepub fn ipg(
&mut self
) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 3, 24>
pub fn ipg( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 3, 24>
Bits 24:26 - Inter-Packet Gap
sourcepub fn ipc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 27>
pub fn ipc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 27>
Bit 27 - Checksum Offload
sourcepub fn sarc(
&mut self
) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 3, 28>
pub fn sarc( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 3, 28>
Bits 28:30 - Source Address Insertion or Replacement Control
sourcepub fn arpen(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 31>
pub fn arpen(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 31>
Bit 31 - ARP Offload Enable
Methods from Deref<Target = W<MACCR_SPEC>>§
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.