pub trait LPEnable: RccBus {
// Required methods
fn enable_in_low_power(rcc: &RccRB);
fn disable_in_low_power(rcc: &RccRB);
fn is_enabled_in_low_power() -> bool;
// Provided methods
fn is_disabled_in_low_power() -> bool { ... }
unsafe fn enable_in_low_power_unchecked() { ... }
unsafe fn disable_in_low_power_unchecked() { ... }
}
Expand description
Low power enable/disable peripheral
Required Methods§
Sourcefn enable_in_low_power(rcc: &RccRB)
fn enable_in_low_power(rcc: &RccRB)
Enables peripheral in low power mode
Sourcefn disable_in_low_power(rcc: &RccRB)
fn disable_in_low_power(rcc: &RccRB)
Disables peripheral in low power mode
Sourcefn is_enabled_in_low_power() -> bool
fn is_enabled_in_low_power() -> bool
Check if peripheral enabled in low power mode
Provided Methods§
Sourcefn is_disabled_in_low_power() -> bool
fn is_disabled_in_low_power() -> bool
Check if peripheral disabled in low power mode
Sourceunsafe fn enable_in_low_power_unchecked()
unsafe fn enable_in_low_power_unchecked()
§Safety
Enables peripheral in low power mode. Takes access to RCC internally
Sourceunsafe fn disable_in_low_power_unchecked()
unsafe fn disable_in_low_power_unchecked()
§Safety
Disables peripheral in low power mode. 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.