#[repr(transparent)]pub struct MacWdJbTimeout(pub u32);Expand description
F70RM Rev. 1 section 51.7.1.5; manual text line 148979.
Tuple Fields§
§0: u32Implementations§
Source§impl MacWdJbTimeout
impl MacWdJbTimeout
Sourcepub const fn wto(&self) -> u8
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
Sourcepub const fn set_wto(&mut self, val: u8)
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
Sourcepub const fn pwe(&self) -> bool
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
Sourcepub const fn set_pwe(&mut self, val: bool)
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
Sourcepub const fn jto(&self) -> u8
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
Sourcepub const fn set_jto(&mut self, val: u8)
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
Sourcepub const fn pje(&self) -> bool
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
Sourcepub const fn set_pje(&mut self, val: bool)
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
impl Clone for MacWdJbTimeout
Source§fn clone(&self) -> MacWdJbTimeout
fn clone(&self) -> MacWdJbTimeout
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more