nxp-pac

Crates

git

Versions

mcxa577

Flavors

MacWdJbTimeout

Struct MacWdJbTimeout 

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

F70RM Rev. 1 section 51.7.1.5; manual text line 148979.

Tuple Fields§

§0: u32

Implementations§

Source§

impl MacWdJbTimeout

Source

pub const fn wto(&self) -> u8

Watchdog Timeout. When the PWE bit is set and the WD bit of the MAC_Configuration register is reset, this field is used as watchdog timeout limit for a received packet. If the length of a received packet exceeds the value of this field, such packet is terminated and declared as an error packet. NOTE When the PWE bit is set, the value in this field must be more than 1,522 (0x05F2). Otherwise, the IEEE 802.3-specified valid tagged packets are declared as error packets and then dropped. 0000b - 2 KB 0001b - 3 KB 0010b - 4 KB 0011b - 5 KB 0100b - 6 KB 0101b - 7 KB 0110b - 8 KB 0111b - 9 KB 1000b - 10 KB 1001b - 11 KB 1010b - 12 KB 1011b - 13 KB 1100b - 14 KB 1101b - 15 KB 1110b - 16383 Bytes 1111b - Reserved

Source

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

Watchdog Timeout. When the PWE bit is set and the WD bit of the MAC_Configuration register is reset, this field is used as watchdog timeout limit for a received packet. If the length of a received packet exceeds the value of this field, such packet is terminated and declared as an error packet. NOTE When the PWE bit is set, the value in this field must be more than 1,522 (0x05F2). Otherwise, the IEEE 802.3-specified valid tagged packets are declared as error packets and then dropped. 0000b - 2 KB 0001b - 3 KB 0010b - 4 KB 0011b - 5 KB 0100b - 6 KB 0101b - 7 KB 0110b - 8 KB 0111b - 9 KB 1000b - 10 KB 1001b - 11 KB 1010b - 12 KB 1011b - 13 KB 1100b - 14 KB 1101b - 15 KB 1110b - 16383 Bytes 1111b - Reserved

Source

pub const fn pwe(&self) -> bool

Programmable Watchdog Enable. When this bit is set and the WD bit of the MAC_Configuration register is reset, the WTO field is used as watchdog timeout limit for a received packet. When this bit is cleared, the watchdog timeout for a received packet is controlled by setting of WD and JE bits in MAC_Configuration register. 0b - Programmable Watchdog is disabled 1b - Programmable Watchdog is enabled

Source

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

Programmable Watchdog Enable. When this bit is set and the WD bit of the MAC_Configuration register is reset, the WTO field is used as watchdog timeout limit for a received packet. When this bit is cleared, the watchdog timeout for a received packet is controlled by setting of WD and JE bits in MAC_Configuration register. 0b - Programmable Watchdog is disabled 1b - Programmable Watchdog is enabled

Source

pub const fn jto(&self) -> u8

Jabber Timeout. When the PJE bit is set and the JD bit of the MAC_Configuration register is reset, this field is used as jabber timeout limit for a transmitted packet. If the length of a transmitted packet exceeds the value of this field, such packet is terminated and declared as an error packet. NOTE When the PJE bit is set, the value in this field must be more than 1,522 (0x05F2). Otherwise, the IEEE 802.3-specified valid tagged packets are declared as error packets and terminated. 0000b - 2 KB 0001b - 3 KB 0010b - 4 KB 0011b - 5 KB 0100b - 6 KB 0101b - 7 KB 0110b - 8 KB 0111b - 9 KB 1000b - 10 KB 1001b - 11 KB 1010b - 12 KB 1011b - 13 KB 1100b - 14 KB 1101b - 15 KB 1110b - 16383 Bytes 1111b - Reserved

Source

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

Jabber Timeout. When the PJE bit is set and the JD bit of the MAC_Configuration register is reset, this field is used as jabber timeout limit for a transmitted packet. If the length of a transmitted packet exceeds the value of this field, such packet is terminated and declared as an error packet. NOTE When the PJE bit is set, the value in this field must be more than 1,522 (0x05F2). Otherwise, the IEEE 802.3-specified valid tagged packets are declared as error packets and terminated. 0000b - 2 KB 0001b - 3 KB 0010b - 4 KB 0011b - 5 KB 0100b - 6 KB 0101b - 7 KB 0110b - 8 KB 0111b - 9 KB 1000b - 10 KB 1001b - 11 KB 1010b - 12 KB 1011b - 13 KB 1100b - 14 KB 1101b - 15 KB 1110b - 16383 Bytes 1111b - Reserved

Source

pub const fn pje(&self) -> bool

Programmable Jabber Enable. When this bit is set and the JD bit of the MAC_Configuration register is reset, the JTO field is used as jabber timeout limit for a transmitted packet. When this bit is cleared, the jabber timeout for a received packet is controlled by setting of JD and JE bits in MAC_Configuration register. 0b - Programmable Jabber is disabled 1b - Programmable Jabber is enabled

Source

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

Programmable Jabber Enable. When this bit is set and the JD bit of the MAC_Configuration register is reset, the JTO field is used as jabber timeout limit for a transmitted packet. When this bit is cleared, the jabber timeout for a received packet is controlled by setting of JD and JE bits in MAC_Configuration register. 0b - Programmable Jabber is disabled 1b - Programmable Jabber is enabled

Trait Implementations§

Source§

impl Clone for MacWdJbTimeout

Source§

fn clone(&self) -> MacWdJbTimeout

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 MacWdJbTimeout

Source§

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

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

impl Default for MacWdJbTimeout

Source§

fn default() -> MacWdJbTimeout

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

impl PartialEq for MacWdJbTimeout

Source§

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

Source§

impl Eq for MacWdJbTimeout

Source§

impl StructuralPartialEq for MacWdJbTimeout

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.