nxp-pac

Crates

git

Versions

mcxa577

Flavors

MacVlanTag

Struct MacVlanTag 

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

VLAN Tag

Tuple Fields§

§0: u32

Implementations§

Source§

impl MacVlanTag

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

Source

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

Enable 12-Bit VLAN Tag Comparison

Source

pub const fn vtim(&self) -> bool

VLAN Tag Inverse Match Enable

Source

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

VLAN Tag Inverse Match Enable

Source

pub const fn esvl(&self) -> bool

Enable S-VLAN

Source

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

Enable S-VLAN

Source

pub const fn ersvlm(&self) -> bool

Enable Receive S-VLAN Match

Source

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

Enable Receive S-VLAN Match

Source

pub const fn dovltc(&self) -> Dovltc

Disable VLAN Type Check

Source

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

Disable VLAN Type Check

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

Source

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

Enable VLAN Tag in Rx status

Source

pub const fn edvlp(&self) -> bool

Enable Double VLAN Processing

Source

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

Enable Double VLAN Processing

Source

pub const fn erivlt(&self) -> bool

Enable Inner VLAN Tag

Source

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

Enable Inner VLAN Tag

Source

pub const fn eivls(&self) -> Eivls

Enable Inner VLAN Tag Stripping on Receive

Source

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

Enable Inner VLAN Tag Stripping on Receive

Source

pub const fn eivlrxs(&self) -> bool

Enable Inner VLAN Tag in Rx Status

Source

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

Enable Inner VLAN Tag in Rx Status

Trait Implementations§

Source§

impl Clone for MacVlanTag

Source§

fn clone(&self) -> MacVlanTag

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 Debug for MacVlanTag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MacVlanTag

Source§

fn default() -> MacVlanTag

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

impl PartialEq for MacVlanTag

Source§

fn eq(&self, other: &MacVlanTag) -> 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 MacVlanTag

Source§

impl Eq for MacVlanTag

Source§

impl StructuralPartialEq for MacVlanTag

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.