Skip to main content

ModuleStop

Trait ModuleStop 

Source
pub trait ModuleStop: SealedModuleStop {
    // Required methods
    fn active() -> bool;
    fn start_module();
    fn stop_module();
}
Expand description

A trait that provides a consistent interface to “module stop” functionality.

Required Methods§

Source

fn active() -> bool

Returns true if the peripheral’s clock is enabled.

Source

fn start_module()

Enables the peripheral clock.

Source

fn stop_module()

Disables the peripheral clock.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§