Struct stm32_hal2::pac::ethernet_mac::macvtr::W
source · [−]pub struct W(_);
Expand description
Register MACVTR
writer
Implementations
sourceimpl W
impl W
sourcepub fn vl(
&mut self
) -> FieldWriterRaw<'_, u32, MACVTR_SPEC, u16, u16, Unsafe, 16, 0>
pub fn vl(
&mut self
) -> FieldWriterRaw<'_, u32, MACVTR_SPEC, u16, u16, Unsafe, 16, 0>
Bits 0:15 - VLAN Tag Identifier for Receive Packets
sourcepub fn etv(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 16>
pub fn etv(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 16>
Bit 16 - Enable 12-Bit VLAN Tag Comparison
sourcepub fn vtim(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 17>
pub fn vtim(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 17>
Bit 17 - VLAN Tag Inverse Match Enable
sourcepub fn esvl(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 18>
pub fn esvl(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 18>
Bit 18 - Enable S-VLAN
sourcepub fn ersvlm(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 19>
pub fn ersvlm(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 19>
Bit 19 - Enable Receive S-VLAN Match
sourcepub fn dovltc(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 20>
pub fn dovltc(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 20>
Bit 20 - Disable VLAN Type Check
sourcepub fn evls(
&mut self
) -> FieldWriterRaw<'_, u32, MACVTR_SPEC, u8, u8, Unsafe, 2, 21>
pub fn evls(
&mut self
) -> FieldWriterRaw<'_, u32, MACVTR_SPEC, u8, u8, Unsafe, 2, 21>
Bits 21:22 - Enable VLAN Tag Stripping on Receive
sourcepub fn evlrxs(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 24>
pub fn evlrxs(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 24>
Bit 24 - Enable VLAN Tag in Rx status
sourcepub fn vthm(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 25>
pub fn vthm(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 25>
Bit 25 - VLAN Tag Hash Table Match Enable
sourcepub fn edvlp(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 26>
pub fn edvlp(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 26>
Bit 26 - Enable Double VLAN Processing
sourcepub fn erivlt(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 27>
pub fn erivlt(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 27>
Bit 27 - Enable Inner VLAN Tag
sourcepub fn eivls(
&mut self
) -> FieldWriterRaw<'_, u32, MACVTR_SPEC, u8, u8, Unsafe, 2, 28>
pub fn eivls(
&mut self
) -> FieldWriterRaw<'_, u32, MACVTR_SPEC, u8, u8, Unsafe, 2, 28>
Bits 28:29 - Enable Inner VLAN Tag Stripping on Receive
sourcepub fn eivlrxs(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 31>
pub fn eivlrxs(&mut self) -> BitWriterRaw<'_, u32, MACVTR_SPEC, bool, BitM, 31>
Bit 31 - Enable Inner VLAN Tag in Rx Status
Methods from Deref<Target = W<MACVTR_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
sourceimpl From<W<MACVTR_SPEC>> for W
impl From<W<MACVTR_SPEC>> for W
sourcefn from(writer: W<MACVTR_SPEC>) -> W
fn from(writer: W<MACVTR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more