pub struct StopMode<'r> { /* private fields */ }
Expand description

Stop mode

You can get an instance of this struct by calling PWR::stop_mode.

The PowerMode implementation of this type will block until something wakes the microcontroller up again. Please make sure to configure an interrupt, or it could block forever.

This method will always disable the internal voltage regulator during Stop mode.

Please note that entering Stop mode may change the SCB configuration.

Panics

Panics, if the external clock is selected as clock source. In principle, it is possible to enter Stop mode with the external clock enabled, although that might require special handling. This is explained in the STM32L0x2 Reference Manual, section 6.3.9.

Trait Implementations

Enters the low-power mode

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.

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.