Struct stm32l0x1_hal::power::Power

source ·
pub struct Power<VDD, VCORE, RTC> { /* private fields */ }
Expand description

The constrained Power peripheral

Implementations§

Change the VDD range (logically - not physically)

Change the VDD range (logically - not physically)

Change the power peripheral’s VCoreRange type state.

This does not take effect until enact() is called

Change the power peripheral’s VCoreRange type state.

This does not take effect until enact() is called

Change the power peripheral’s VCoreRange type state.

This does not take effect until enact() is called

Provide a context for changing LSE and RTC settings.

7.3.20: Note: The LSEON, LSEBYP, RTCSEL, LSEDRV and RTCEN bits in the RCC control and status register (RCC_CSR) are in the RTC domain. As these bits are write protected after reset, the DBP bit in the Power control register (PWR_CR) has to be set to be able to modify them. Refer to Section 6.1.2: RTC and RTC backup registers for further information.

Enact the current Power type states

This function is unsafe because it does not validate the requested setting against the currently configured clock. Rcc::freeze takes care of this for you.

Read the current VCoreRange value from the register

Disable the RTC, changing the type state of self

Enable the RTC, changing the type state of self

Trait Implementations§

Constrains the peripheral to play nicely with the other abstractions
Constrains the peripheral to play nicely with the other abstractions

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.