stm32-metapac

Crates

git

Versions

stm32h757xi-cm7

Flavors

Skip to main content

Cpu2cr

Struct Cpu2cr 

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

This register allows controlling CPU2 power.

Tuple Fields§

§0: u32

Implementations§

§

impl Cpu2cr

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)

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

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)

D2 domain Power Down Deepsleep. This bit allows CPU2 to define the Deepsleep mode for D2 domain.

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)

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

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)

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

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)

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

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)

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

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)

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

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)

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

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)

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

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)

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

Keep system D3 domain in Run mode regardless of the CPU sub-systems modes

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

Keep system D3 domain in Run mode regardless of the CPU sub-systems modes

Trait Implementations§

§

impl Clone for Cpu2cr

§

fn clone(&self) -> Cpu2cr

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Cpu2cr

§

impl Default for Cpu2cr

§

fn default() -> Cpu2cr

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

impl Eq for Cpu2cr

§

impl PartialEq for Cpu2cr

§

fn eq(&self, other: &Cpu2cr) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for Cpu2cr

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 = !

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.