Skip to main content

Enable

Trait Enable 

Source
pub trait Enable {
    // Required methods
    fn enable(rcu: &mut Rcu);
    fn disable(rcu: &mut Rcu);
}
Expand description

Clock gating for a peripheral, implemented per peripheral type.

Required Methods§

Source

fn enable(rcu: &mut Rcu)

Switches the peripheral’s clock on.

Source

fn disable(rcu: &mut Rcu)

Switches the peripheral’s clock off.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Enable for Adc

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Crc

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Dma

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Gpioa

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Gpiob

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Gpioc

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Gpiof

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for I2c0

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for I2c1

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Spi0

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Spi1

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Timer0

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Timer2

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Timer5

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Timer13

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Timer14

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Timer15

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Timer16

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Usart0

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Usart1

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Source§

impl Enable for Wwdgt

Source§

fn enable(rcu: &mut Rcu)

Source§

fn disable(rcu: &mut Rcu)

Implementors§