pub trait LPEnable: RccBus {
// Required methods
fn low_power_enable(bus: &mut Self::Bus);
fn low_power_disable(bus: &mut Self::Bus);
fn is_low_power_enabled() -> bool;
fn is_low_power_disabled() -> bool;
unsafe fn low_power_enable_unchecked();
unsafe fn low_power_disable_unchecked();
}Expand description
Enable/disable peripheral in low power mode
Required Methods§
Sourcefn low_power_enable(bus: &mut Self::Bus)
fn low_power_enable(bus: &mut Self::Bus)
Enables peripheral
Sourcefn low_power_disable(bus: &mut Self::Bus)
fn low_power_disable(bus: &mut Self::Bus)
Disables peripheral
Sourcefn is_low_power_enabled() -> bool
fn is_low_power_enabled() -> bool
Check if peripheral enabled
Sourcefn is_low_power_disabled() -> bool
fn is_low_power_disabled() -> bool
Check if peripheral disabled
Sourceunsafe fn low_power_enable_unchecked()
unsafe fn low_power_enable_unchecked()
§Safety
Enables peripheral. Takes access to RCC internally
Sourceunsafe fn low_power_disable_unchecked()
unsafe fn low_power_disable_unchecked()
§Safety
Disables peripheral. Takes access to RCC internally
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.