#[repr(transparent)]pub struct MacPacketFilter2(pub u32);Expand description
MAC Packet Filter.
Tuple Fields§
§0: u32Implementations§
Source§impl MacPacketFilter2
impl MacPacketFilter2
Sourcepub const fn pr(&self) -> bool
pub const fn pr(&self) -> bool
Promiscuous Mode. Raw bit values: false (0) = Disable: Promiscuous Mode is disabled.; true (1) = Enable: Promiscuous Mode is enabled.
Sourcepub const fn set_pr(&mut self, val: bool)
pub const fn set_pr(&mut self, val: bool)
Promiscuous Mode. Raw bit values: false (0) = Disable: Promiscuous Mode is disabled.; true (1) = Enable: Promiscuous Mode is enabled.
Sourcepub const fn daif(&self) -> bool
pub const fn daif(&self) -> bool
DA Inverse Filtering. Raw bit values: false (0) = Disable: DA Inverse Filtering is disabled.; true (1) = Enable: DA Inverse Filtering is enabled.
Sourcepub const fn set_daif(&mut self, val: bool)
pub const fn set_daif(&mut self, val: bool)
DA Inverse Filtering. Raw bit values: false (0) = Disable: DA Inverse Filtering is disabled.; true (1) = Enable: DA Inverse Filtering is enabled.
Sourcepub const fn pm(&self) -> bool
pub const fn pm(&self) -> bool
Pass All Multicast. Raw bit values: false (0) = Disable: Pass All Multicast is disabled.; true (1) = Enable: Pass All Multicast is enabled.
Sourcepub const fn set_pm(&mut self, val: bool)
pub const fn set_pm(&mut self, val: bool)
Pass All Multicast. Raw bit values: false (0) = Disable: Pass All Multicast is disabled.; true (1) = Enable: Pass All Multicast is enabled.
Sourcepub const fn dbf(&self) -> bool
pub const fn dbf(&self) -> bool
Disable Broadcast Packets. Raw bit values: false (0) = Enable: Enable Broadcast Packets.; true (1) = Disable: Disable Broadcast Packets.
Sourcepub const fn set_dbf(&mut self, val: bool)
pub const fn set_dbf(&mut self, val: bool)
Disable Broadcast Packets. Raw bit values: false (0) = Enable: Enable Broadcast Packets.; true (1) = Disable: Disable Broadcast Packets.
Sourcepub const fn vtfe(&self) -> bool
pub const fn vtfe(&self) -> bool
VLAN Tag Filter Enable. Raw bit values: false (0) = Disable: VLAN Tag Filter is disabled.; true (1) = Enable: VLAN Tag Filter is enabled.
Sourcepub const fn set_vtfe(&mut self, val: bool)
pub const fn set_vtfe(&mut self, val: bool)
VLAN Tag Filter Enable. Raw bit values: false (0) = Disable: VLAN Tag Filter is disabled.; true (1) = Enable: VLAN Tag Filter is enabled.
Trait Implementations§
Source§impl Clone for MacPacketFilter2
impl Clone for MacPacketFilter2
Source§fn clone(&self) -> MacPacketFilter2
fn clone(&self) -> MacPacketFilter2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more