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, RE_A, BitM, 2>
pub fn re(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, RE_A, BitM, 2>
Bit 2 - Receiver enable
Sourcepub fn te(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, TE_A, BitM, 3>
pub fn te(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, TE_A, BitM, 3>
Bit 3 - Transmitter enable
Sourcepub fn dc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, DC_A, BitM, 4>
pub fn dc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, DC_A, BitM, 4>
Bit 4 - Deferral check
Sourcepub fn bl(
&mut self,
) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, BL_A, Safe, 2, 5>
pub fn bl( &mut self, ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, BL_A, Safe, 2, 5>
Bits 5:6 - Back-off limit
Sourcepub fn apcs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, APCS_A, BitM, 7>
pub fn apcs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, APCS_A, BitM, 7>
Bit 7 - Automatic pad/CRC stripping
Sourcepub fn rd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, RD_A, BitM, 9>
pub fn rd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, RD_A, BitM, 9>
Bit 9 - Retry disable
Sourcepub fn ipco(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, IPCO_A, BitM, 10>
pub fn ipco(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, IPCO_A, BitM, 10>
Bit 10 - IPv4 checksum offload
Sourcepub fn dm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, DM_A, BitM, 11>
pub fn dm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, DM_A, BitM, 11>
Bit 11 - Duplex mode
Sourcepub fn lm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, LM_A, BitM, 12>
pub fn lm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, LM_A, BitM, 12>
Bit 12 - Loopback mode
Sourcepub fn rod(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, ROD_A, BitM, 13>
pub fn rod(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, ROD_A, BitM, 13>
Bit 13 - Receive own disable
Sourcepub fn fes(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, FES_A, BitM, 14>
pub fn fes(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, FES_A, BitM, 14>
Bit 14 - Fast Ethernet speed
Sourcepub fn csd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, CSD_A, BitM, 16>
pub fn csd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, CSD_A, BitM, 16>
Bit 16 - Carrier sense disable
Sourcepub fn ifg(
&mut self,
) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, IFG_A, Safe, 3, 17>
pub fn ifg( &mut self, ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, IFG_A, Safe, 3, 17>
Bits 17:19 - Interframe gap
Sourcepub fn jd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, JD_A, BitM, 22>
pub fn jd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, JD_A, BitM, 22>
Bit 22 - Jabber disable
Sourcepub fn wd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, WD_A, BitM, 23>
pub fn wd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, WD_A, BitM, 23>
Bit 23 - Watchdog disable
Sourcepub fn cstf(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, CSTF_A, BitM, 25>
pub fn cstf(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, CSTF_A, BitM, 25>
Bit 25 - CRC stripping for type frames
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more