#[repr(transparent)]pub struct MacPmtControlStatus(pub u32);Expand description
F70RM Rev. 1 section 51.7.1.14; manual text line 150312.
Tuple Fields§
§0: u32Implementations§
Source§impl MacPmtControlStatus
impl MacPmtControlStatus
Sourcepub const fn pwrdwn(&self) -> bool
pub const fn pwrdwn(&self) -> bool
Power Down. When this bit is set, the MAC receiver drops all received packets until it receives the expected magic packet. This bit is then self-cleared and the power-down mode is disabled. The software can clear this bit before the expected magic packet is received. The packets received by the MAC after this bit is cleared are forwarded to the application. This bit must only be set when the Magic Packet Enable or Global Unicast Enable bit is set high. NOTE You can gate-off the CSR clock during the power-down mode. However, when the CSR clock is gated-off, you cannot perform any read or write operations on this register. Therefore, the software cannot clear this bit. Access restriction applies. Setting 1 sets. Self-cleared. Setting 0 has no effect. 0b - Power down is disabled 1b - Power down is enabled
Sourcepub const fn set_pwrdwn(&mut self, val: bool)
pub const fn set_pwrdwn(&mut self, val: bool)
Power Down. When this bit is set, the MAC receiver drops all received packets until it receives the expected magic packet. This bit is then self-cleared and the power-down mode is disabled. The software can clear this bit before the expected magic packet is received. The packets received by the MAC after this bit is cleared are forwarded to the application. This bit must only be set when the Magic Packet Enable or Global Unicast Enable bit is set high. NOTE You can gate-off the CSR clock during the power-down mode. However, when the CSR clock is gated-off, you cannot perform any read or write operations on this register. Therefore, the software cannot clear this bit. Access restriction applies. Setting 1 sets. Self-cleared. Setting 0 has no effect. 0b - Power down is disabled 1b - Power down is enabled
Sourcepub const fn mgkpkten(&self) -> bool
pub const fn mgkpkten(&self) -> bool
Magic Packet Enable. When this bit is set, a power management event is generated when the MAC receives a magic packet. 0b - Magic Packet is disabled 1b - Magic Packet is enabled
Sourcepub const fn set_mgkpkten(&mut self, val: bool)
pub const fn set_mgkpkten(&mut self, val: bool)
Magic Packet Enable. When this bit is set, a power management event is generated when the MAC receives a magic packet. 0b - Magic Packet is disabled 1b - Magic Packet is enabled
Sourcepub const fn mgkprcvd(&self) -> bool
pub const fn mgkprcvd(&self) -> bool
Read-only. Magic Packet Received. When this bit is set, it indicates that the power management event is generated because of the reception of a magic packet. This bit is cleared when this register is read. Access restriction applies. Clears on read (or write of 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - No Magic packet is received 1b - Magic packet is received
Sourcepub const fn set_mgkprcvd(&mut self, val: bool)
pub const fn set_mgkprcvd(&mut self, val: bool)
Read-only. Magic Packet Received. When this bit is set, it indicates that the power management event is generated because of the reception of a magic packet. This bit is cleared when this register is read. Access restriction applies. Clears on read (or write of 1 when RCWE bit in MAC_CSR_SW_Ctrl register is set). Self-set to 1 on internal event. 0b - No Magic packet is received 1b - Magic packet is received
Trait Implementations§
Source§impl Clone for MacPmtControlStatus
impl Clone for MacPmtControlStatus
Source§fn clone(&self) -> MacPmtControlStatus
fn clone(&self) -> MacPmtControlStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more