stm32-metapac

Crates

git

Versions

stm32h742bi

Flavors

Struct stm32_metapac::pwr::Pwr

pub struct Pwr { /* private fields */ }
Expand description

PWR

Implementations§

§

impl Pwr

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

pub const fn as_ptr(&self) -> *mut ()

pub const fn cr1(self) -> Reg<Cr1, RW>

PWR control register 1

pub const fn csr1(self) -> Reg<Csr1, R>

PWR control status register 1

pub const fn cr2(self) -> Reg<Cr2, RW>

This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection.

pub const fn cr3(self) -> Reg<Cr3, RW>

Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.

pub const fn cpucr(self) -> Reg<Cpucr, RW>

This register allows controlling CPU1 power.

pub const fn d3cr(self) -> Reg<D3cr, RW>

This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software

pub const fn wkupcr(self) -> Reg<Wkupcr, RW>

reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared).

pub const fn wkupfr(self) -> Reg<Wkupfr, RW>

reset only by system reset, not reset by wakeup from Standby mode

pub const fn wkupepr(self) -> Reg<Wkupepr, RW>

Reset only by system reset, not reset by wakeup from Standby mode

Trait Implementations§

§

impl Clone for Pwr

§

fn clone(&self) -> Pwr

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 PartialEq for Pwr

§

fn eq(&self, other: &Pwr) -> 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 Pwr

§

impl Eq for Pwr

§

impl Send for Pwr

§

impl StructuralPartialEq for Pwr

§

impl Sync for Pwr

Auto Trait Implementations§

§

impl Freeze for Pwr

§

impl RefUnwindSafe for Pwr

§

impl Unpin for Pwr

§

impl UnwindSafe for Pwr

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.