pub struct W(/* private fields */);
Expand description

Register MACCR writer

Implementations§

source§

impl W

source

pub fn re(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 0>

Bit 0 - Receiver Enable

source

pub fn te(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 1>

Bit 1 - Transmitter Enable

source

pub fn prelen( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 2, 2>

Bits 2:3 - Preamble Length for Transmit Packets

source

pub fn dc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 4>

Bit 4 - Deferral Check

source

pub fn bl( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 2, 5>

Bits 5:6 - Back-Off Limit

source

pub fn dr(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 8>

Bit 8 - Disable Retry

source

pub fn dcrs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 9>

Bit 9 - Disable Carrier Sense During Transmission

source

pub fn do_(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 10>

Bit 10 - Disable Receive Own

source

pub fn ecrsfd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 11>

Bit 11 - Enable Carrier Sense Before Transmission in Full-Duplex Mode

source

pub fn lm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 12>

Bit 12 - Loopback Mode

source

pub fn dm(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 13>

Bit 13 - Duplex Mode

source

pub fn fes(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 14>

Bit 14 - MAC Speed

source

pub fn je(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 16>

Bit 16 - Jumbo Packet Enable

source

pub fn jd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 17>

Bit 17 - Jabber Disable

source

pub fn wd(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 19>

Bit 19 - Watchdog Disable

source

pub fn acs(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 20>

Bit 20 - Automatic Pad or CRC Stripping

source

pub fn cst(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 21>

Bit 21 - CRC stripping for Type packets

source

pub fn s2kp(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 22>

Bit 22 - IEEE 802.3as Support for 2K Packets

source

pub fn gpslce(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 23>

Bit 23 - Giant Packet Size Limit Control Enable

source

pub fn ipg( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 3, 24>

Bits 24:26 - Inter-Packet Gap

source

pub fn ipc(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 27>

Bit 27 - Checksum Offload

source

pub fn sarc( &mut self ) -> FieldWriterRaw<'_, u32, MACCR_SPEC, u8, u8, Unsafe, 3, 28>

Bits 28:30 - Source Address Insertion or Replacement Control

source

pub fn arpen(&mut self) -> BitWriterRaw<'_, u32, MACCR_SPEC, bool, BitM, 31>

Bit 31 - ARP Offload Enable

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register.

Methods from Deref<Target = W<MACCR_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<MACCR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<W as Deref>::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
source§

impl From<W<MACCR_SPEC>> for W

source§

fn from(writer: W<MACCR_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

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> 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> 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>,

§

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>,

§

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.