stm32-metapac

Crates

git

Versions

stm32h743ig

Flavors

Struct stm32_metapac::pwr::regs::Cpucr

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

This register allows controlling CPU1 power.

Tuple Fields§

§0: u32

Implementations§

§

impl Cpucr

pub const fn pdds_d1(&self) -> bool

D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain.

pub fn set_pdds_d1(&mut self, val: bool)

D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain.

pub const fn pdds_d2(&self) -> bool

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

pub fn set_pdds_d2(&mut self, val: bool)

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

pub const fn pdds_d3(&self) -> bool

System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain.

pub fn set_pdds_d3(&mut self, val: bool)

System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain.

pub const fn stopf(&self) -> bool

STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU1 CSSF bit.

pub 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 CPU1 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 CPU1 CSSF bit

pub 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 CPU1 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 CPU1 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode.

pub 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 CPU1 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 CPU1 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode.

pub 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 CPU1 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 D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware.

pub fn set_cssf(&mut self, val: bool)

Clear D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware.

pub const fn run_d3(&self) -> bool

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

pub 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 Cpucr

§

fn clone(&self) -> Cpucr

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl Default for Cpucr

§

fn default() -> Cpucr

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

impl PartialEq for Cpucr

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Cpucr

§

impl Eq for Cpucr

§

impl StructuralPartialEq for Cpucr

Auto Trait Implementations§

§

impl Freeze for Cpucr

§

impl RefUnwindSafe for Cpucr

§

impl Send for Cpucr

§

impl Sync for Cpucr

§

impl Unpin for Cpucr

§

impl UnwindSafe for Cpucr

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 = Infallible

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.