Trait stm32l4xx_hal::rcc::Enable
source · [−]pub trait Enable: RccBus {
fn enable(bus: &mut Self::Bus);
fn disable(bus: &mut Self::Bus);
fn is_enabled() -> bool;
fn is_disabled() -> bool;
unsafe fn enable_unchecked();
unsafe fn disable_unchecked();
}
Expand description
Enable/disable peripheral
Required methods
fn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
fn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
unsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety
Enables peripheral. Takes access to RCC internally
unsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety
Disables peripheral. Takes access to RCC internally