Struct Cpu2cr
#[repr(transparent)]pub struct Cpu2cr(pub u32);Expand description
This register allows controlling CPU2 power.
Tuple Fields§
§0: u32Implementations§
§impl Cpu2cr
impl Cpu2cr
pub const fn pdds_d1(&self) -> bool
pub const fn pdds_d1(&self) -> bool
D1 domain Power Down Deepsleep selection. This bit allows CPU2 to define the Deepsleep mode for D1 domain.
pub const fn set_pdds_d1(&mut self, val: bool)
pub const fn set_pdds_d1(&mut self, val: bool)
D1 domain Power Down Deepsleep selection. This bit allows CPU2 to define the Deepsleep mode for D1 domain.
pub const fn pdds_d2(&self) -> bool
pub const fn pdds_d2(&self) -> bool
D2 domain Power Down Deepsleep. This bit allows CPU2 to define the Deepsleep mode for D2 domain.
pub const fn set_pdds_d2(&mut self, val: bool)
pub const fn set_pdds_d2(&mut self, val: bool)
D2 domain Power Down Deepsleep. This bit allows CPU2 to define the Deepsleep mode for D2 domain.
pub const fn pdds_d3(&self) -> bool
pub const fn pdds_d3(&self) -> bool
System D3 domain Power Down Deepsleep. This bit allows CPU2 to define the Deepsleep mode for System D3 domain.
pub const fn set_pdds_d3(&mut self, val: bool)
pub const fn set_pdds_d3(&mut self, val: bool)
System D3 domain Power Down Deepsleep. This bit allows CPU2 to define the Deepsleep mode for System D3 domain.
pub const fn hold1f(&self) -> bool
pub const fn hold1f(&self) -> bool
CPU1 in hold wakeup flag. This flag also generates a CPU2 interrupt. CPU2 has been woken up from a CPU1 wakeup source with CPU1 on hold. This flag is set by hardware and cleared only by a system reset or by setting the CPU2 CSSF bit.
pub const fn set_hold1f(&mut self, val: bool)
pub const fn set_hold1f(&mut self, val: bool)
CPU1 in hold wakeup flag. This flag also generates a CPU2 interrupt. CPU2 has been woken up from a CPU1 wakeup source with CPU1 on hold. This flag is set by hardware and cleared only by a system reset or by setting the CPU2 CSSF bit.
pub const fn stopf(&self) -> bool
pub const fn stopf(&self) -> bool
STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU2 CSSF bit.
pub const fn set_stopf(&mut self, val: bool)
pub const fn set_stopf(&mut self, val: bool)
STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU2 CSSF bit.
pub const fn sbf(&self) -> bool
pub const fn sbf(&self) -> bool
System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU2 CSSF bit.
pub const fn set_sbf(&mut self, val: bool)
pub const fn set_sbf(&mut self, val: bool)
System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU2 CSSF bit.
pub const fn sbf_d1(&self) -> bool
pub const fn sbf_d1(&self) -> bool
D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU2 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode.
pub const fn set_sbf_d1(&mut self, val: bool)
pub const fn set_sbf_d1(&mut self, val: bool)
D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU2 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode.
pub const fn sbf_d2(&self) -> bool
pub const fn sbf_d2(&self) -> bool
D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU2 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode.
pub const fn set_sbf_d2(&mut self, val: bool)
pub const fn set_sbf_d2(&mut self, val: bool)
D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU2 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode.
pub const fn cssf(&self) -> bool
pub const fn cssf(&self) -> bool
Clear D2 domain CPU2 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware.
pub const fn set_cssf(&mut self, val: bool)
pub const fn set_cssf(&mut self, val: bool)
Clear D2 domain CPU2 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware.
pub const fn hold1(&self) -> bool
pub const fn hold1(&self) -> bool
Hold the CPU1 and allocated peripherals when exiting from Stop mode. Writing this bit to 0 releases the CPU1 and allocated peripherals.
pub const fn set_hold1(&mut self, val: bool)
pub const fn set_hold1(&mut self, val: bool)
Hold the CPU1 and allocated peripherals when exiting from Stop mode. Writing this bit to 0 releases the CPU1 and allocated peripherals.
pub const fn run_d3(&self) -> bool
pub const fn run_d3(&self) -> bool
Keep system D3 domain in Run mode regardless of the CPU sub-systems modes
pub const fn set_run_d3(&mut self, val: bool)
pub const fn set_run_d3(&mut self, val: bool)
Keep system D3 domain in Run mode regardless of the CPU sub-systems modes