nxp-pac

Crates

git

Versions

mcxa536

Flavors

MacHwFeature3

Struct MacHwFeature3 

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

F70RM Rev. 1 section 51.7.1.20; manual text line 151232.

Tuple Fields§

§0: u32

Implementations§

Source§

impl MacHwFeature3

Source

pub const fn nrvf(&self) -> u8

Read-only. Number of Extended VLAN Tag Filters Enabled. This field indicates the Number of Extended VLAN Tag Filters selected: 000b - No Extended Rx VLAN Filters 001b - Reserved 010b - Reserved 011b - Reserved 100b - Reserved 101b - Reserved 110b - Reserved

Source

pub const fn set_nrvf(&mut self, val: u8)

Read-only. Number of Extended VLAN Tag Filters Enabled. This field indicates the Number of Extended VLAN Tag Filters selected: 000b - No Extended Rx VLAN Filters 001b - Reserved 010b - Reserved 011b - Reserved 100b - Reserved 101b - Reserved 110b - Reserved

Source

pub const fn cbtisel(&self) -> bool

Read-only. Queue/Channel based VLAN tag insertion on Tx Enable. This bit is set to 1 when the Enable Queue/Channel based VLAN tag insertion on Tx Feature is selected. 0b - Enable Queue/Channel based VLAN tag insertion on Tx feature is not selected 1b - Enable Queue/Channel based VLAN tag insertion on Tx feature is selected

Source

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

Read-only. Queue/Channel based VLAN tag insertion on Tx Enable. This bit is set to 1 when the Enable Queue/Channel based VLAN tag insertion on Tx Feature is selected. 0b - Enable Queue/Channel based VLAN tag insertion on Tx feature is not selected 1b - Enable Queue/Channel based VLAN tag insertion on Tx feature is selected

Source

pub const fn dvlan(&self) -> bool

Read-only. Double VLAN Tag Processing Selected. This bit is set to 1 when the Enable Double VLAN Processing Feature is selected. 0b - Double VLAN option is not selected 1b - Double VLAN option is selected

Source

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

Read-only. Double VLAN Tag Processing Selected. This bit is set to 1 when the Enable Double VLAN Processing Feature is selected. 0b - Double VLAN option is not selected 1b - Double VLAN option is selected

Source

pub const fn frpsel(&self) -> bool

Read-only. Flexible Receive Parser Selected. This bit is set to 1 when the Enable Flexible Programmable Receive Parser option is selected. 0b - Flexible Receive Parser feature is not selected 1b - Flexible Receive Parser feature is selected

Source

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

Read-only. Flexible Receive Parser Selected. This bit is set to 1 when the Enable Flexible Programmable Receive Parser option is selected. 0b - Flexible Receive Parser feature is not selected 1b - Flexible Receive Parser feature is selected

Source

pub const fn frpbs(&self) -> u8

Read-only. Flexible Receive Parser Buffer size. This field indicates the supported Max Number of bytes of the packet data to be Parsed by Flexible Receive Parser. 00b - Reserved 01b - Reserved 10b - 256 Bytes 11b - Reserved

Source

pub const fn set_frpbs(&mut self, val: u8)

Read-only. Flexible Receive Parser Buffer size. This field indicates the supported Max Number of bytes of the packet data to be Parsed by Flexible Receive Parser. 00b - Reserved 01b - Reserved 10b - 256 Bytes 11b - Reserved

Source

pub const fn frpes(&self) -> u8

Read-only. Flexible Receive Parser Table Entries size. This field indicates the Max Number of Parser Entries supported by Flexible Receive Parser. 00b - Reserved 01b - Reserved 10b - 256 Entries 11b - Reserved

Source

pub const fn set_frpes(&mut self, val: u8)

Read-only. Flexible Receive Parser Table Entries size. This field indicates the Max Number of Parser Entries supported by Flexible Receive Parser. 00b - Reserved 01b - Reserved 10b - 256 Entries 11b - Reserved

Source

pub const fn estsel(&self) -> bool

Read-only. Enhancements to Scheduled Traffic Enable. This bit is set to 1 when the Enable Enhancements to Scheduling Traffic feature is selected. 0b - Enable Enhancements to Scheduling Traffic feature is not selected 1b - Enable Enhancements to Scheduling Traffic feature is selected

Source

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

Read-only. Enhancements to Scheduled Traffic Enable. This bit is set to 1 when the Enable Enhancements to Scheduling Traffic feature is selected. 0b - Enable Enhancements to Scheduling Traffic feature is not selected 1b - Enable Enhancements to Scheduling Traffic feature is selected

Source

pub const fn estdep(&self) -> u8

Read-only. Depth of the Gate Control List. Indicates the depth of Gate Control list, in bytes. 000b - No Depth configured 001b - Reserved 010b - Reserved 011b - 256 100b - Reserved 101b - Reserved 110b - Reserved

Source

pub const fn set_estdep(&mut self, val: u8)

Read-only. Depth of the Gate Control List. Indicates the depth of Gate Control list, in bytes. 000b - No Depth configured 001b - Reserved 010b - Reserved 011b - 256 100b - Reserved 101b - Reserved 110b - Reserved

Source

pub const fn estwid(&self) -> u8

Read-only. Width of the Time Interval field in the Gate Control List. This field indicates the width of the Configured Time Interval Field 00b - Width not configured 01b - Reserved 10b - Reserved 11b - 24

Source

pub const fn set_estwid(&mut self, val: u8)

Read-only. Width of the Time Interval field in the Gate Control List. This field indicates the width of the Configured Time Interval Field 00b - Width not configured 01b - Reserved 10b - Reserved 11b - 24

Source

pub const fn fpesel(&self) -> bool

Read-only. Frame Preemption Enable. This bit is set to 1 when the Enable Frame preemption feature is selected. 0b - Frame Preemption Enable feature is not selected 1b - Frame Preemption Enable feature is selected

Source

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

Read-only. Frame Preemption Enable. This bit is set to 1 when the Enable Frame preemption feature is selected. 0b - Frame Preemption Enable feature is not selected 1b - Frame Preemption Enable feature is selected

Source

pub const fn tbssel(&self) -> bool

Read-only. Time Based Scheduling Enable. This bit is set to 1 when the Time Based Scheduling feature is selected. 0b - Time Based Scheduling Enable feature is not selected 1b - Time Based Scheduling Enable feature is selected

Source

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

Read-only. Time Based Scheduling Enable. This bit is set to 1 when the Time Based Scheduling feature is selected. 0b - Time Based Scheduling Enable feature is not selected 1b - Time Based Scheduling Enable feature is selected

Source

pub const fn asp(&self) -> u8

Read-only. Automotive Safety Package. Following are the encoding for the different Safety features 00b - No Safety features selected 01b - Reserved 10b - Reserved 11b - Reserved

Source

pub const fn set_asp(&mut self, val: u8)

Read-only. Automotive Safety Package. Following are the encoding for the different Safety features 00b - No Safety features selected 01b - Reserved 10b - Reserved 11b - Reserved

Trait Implementations§

Source§

impl Clone for MacHwFeature3

Source§

fn clone(&self) -> MacHwFeature3

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 MacHwFeature3

Source§

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

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

impl Default for MacHwFeature3

Source§

fn default() -> MacHwFeature3

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

impl PartialEq for MacHwFeature3

Source§

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

Source§

impl Eq for MacHwFeature3

Source§

impl StructuralPartialEq for MacHwFeature3

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.