nxp-pac

Crates

git

Versions

mcxn547

Flavors

MacVlanTagCtrl

Struct MacVlanTagCtrl 

Source
#[repr(transparent)]
pub struct MacVlanTagCtrl(pub u32);
Expand description

MAC VLAN Tag Control.

Tuple Fields§

§0: u32

Implementations§

Source§

impl MacVlanTagCtrl

Source

pub const fn vl(&self) -> u16

VLAN Tag Identifier for Receive Packets.

Source

pub const fn set_vl(&mut self, val: u16)

VLAN Tag Identifier for Receive Packets.

Source

pub const fn etv(&self) -> bool

Enable 12-Bit VLAN Tag Comparison. Raw bit values: false (0) = Disable: 12-bit VLAN Tag Comparison is disabled.; true (1) = Enable: 12-bit VLAN Tag Comparison is enabled.

Source

pub const fn set_etv(&mut self, val: bool)

Enable 12-Bit VLAN Tag Comparison. Raw bit values: false (0) = Disable: 12-bit VLAN Tag Comparison is disabled.; true (1) = Enable: 12-bit VLAN Tag Comparison is enabled.

Source

pub const fn vtim(&self) -> bool

VLAN Tag Inverse Match Enable. Raw bit values: false (0) = Disable: VLAN Tag Inverse Match is disabled.; true (1) = Enable: VLAN Tag Inverse Match is enabled.

Source

pub const fn set_vtim(&mut self, val: bool)

VLAN Tag Inverse Match Enable. Raw bit values: false (0) = Disable: VLAN Tag Inverse Match is disabled.; true (1) = Enable: VLAN Tag Inverse Match is enabled.

Source

pub const fn esvl(&self) -> bool

Enable S-VLAN. Raw bit values: false (0) = Disable: S-VLAN is disabled.; true (1) = Enable: S-VLAN is enabled.

Source

pub const fn set_esvl(&mut self, val: bool)

Enable S-VLAN. Raw bit values: false (0) = Disable: S-VLAN is disabled.; true (1) = Enable: S-VLAN is enabled.

Source

pub const fn ersvlm(&self) -> bool

Enable Receive S-VLAN Match. Raw bit values: false (0) = Disable: Receive S-VLAN Match is disabled.; true (1) = Enable: Receive S-VLAN Match is enabled.

Source

pub const fn set_ersvlm(&mut self, val: bool)

Enable Receive S-VLAN Match. Raw bit values: false (0) = Disable: Receive S-VLAN Match is disabled.; true (1) = Enable: Receive S-VLAN Match is enabled.

Source

pub const fn dovltc(&self) -> bool

Disable VLAN Type Check. Raw bit values: false (0) = Enable: VLAN Type Check is enabled.; true (1) = Disable: VLAN Type Check is disabled.

Source

pub const fn set_dovltc(&mut self, val: bool)

Disable VLAN Type Check. Raw bit values: false (0) = Enable: VLAN Type Check is enabled.; true (1) = Disable: VLAN Type Check is disabled.

Source

pub const fn evls(&self) -> Evls

Enable VLAN Tag Stripping on Receive.

Source

pub const fn set_evls(&mut self, val: Evls)

Enable VLAN Tag Stripping on Receive.

Source

pub const fn evlrxs(&self) -> bool

Enable VLAN Tag in Rx status. Raw bit values: false (0) = Disable: VLAN Tag in Rx status is disabled.; true (1) = Enable: VLAN Tag in Rx status is enabled.

Source

pub const fn set_evlrxs(&mut self, val: bool)

Enable VLAN Tag in Rx status. Raw bit values: false (0) = Disable: VLAN Tag in Rx status is disabled.; true (1) = Enable: VLAN Tag in Rx status is enabled.

Source

pub const fn edvlp(&self) -> bool

Enable Double VLAN Processing. Raw bit values: false (0) = Disable: Double VLAN Processing is disabled.; true (1) = Enable: Double VLAN Processing is enabled.

Source

pub const fn set_edvlp(&mut self, val: bool)

Enable Double VLAN Processing. Raw bit values: false (0) = Disable: Double VLAN Processing is disabled.; true (1) = Enable: Double VLAN Processing is enabled.

Source

pub const fn erivlt(&self) -> bool

Enable Inner VLAN Tag. Raw bit values: false (0) = Disable: Inner VLAN tag is disabled.; true (1) = Enable: Inner VLAN tag is enabled.

Source

pub const fn set_erivlt(&mut self, val: bool)

Enable Inner VLAN Tag. Raw bit values: false (0) = Disable: Inner VLAN tag is disabled.; true (1) = Enable: Inner VLAN tag is enabled.

Source

pub const fn eivls(&self) -> Evls

Enable Inner VLAN Tag Stripping on Receive.

Source

pub const fn set_eivls(&mut self, val: Evls)

Enable Inner VLAN Tag Stripping on Receive.

Source

pub const fn eivlrxs(&self) -> bool

Enable Inner VLAN Tag in Rx Status. Raw bit values: false (0) = Disable: Inner VLAN Tag in Rx status is disabled.; true (1) = Enable: Inner VLAN Tag in Rx status is enabled.

Source

pub const fn set_eivlrxs(&mut self, val: bool)

Enable Inner VLAN Tag in Rx Status. Raw bit values: false (0) = Disable: Inner VLAN Tag in Rx status is disabled.; true (1) = Enable: Inner VLAN Tag in Rx status is enabled.

Trait Implementations§

Source§

impl Clone for MacVlanTagCtrl

Source§

fn clone(&self) -> MacVlanTagCtrl

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for MacVlanTagCtrl

Source§

fn default() -> MacVlanTagCtrl

Returns the “default value” for a type. Read more
Source§

impl PartialEq for MacVlanTagCtrl

Source§

fn eq(&self, other: &MacVlanTagCtrl) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for MacVlanTagCtrl

Source§

impl Eq for MacVlanTagCtrl

Source§

impl StructuralPartialEq for MacVlanTagCtrl

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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

Source§

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.