Skip to main content

BusClocks

Trait BusClocks 

Source
pub trait BusClocks {
    // Required method
    fn clock(clocks: &Clocks) -> Hertz;
}
Expand description

Supplies the clock frequency feeding a given USART.

USART0 can be reclocked away from its bus (see Usart0Sel), USART1 always runs off APB1.

Required Methods§

Source

fn clock(clocks: &Clocks) -> Hertz

Returns the frequency actually clocking this USART.

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 BusClocks for Usart0

Source§

fn clock(clocks: &Clocks) -> Hertz

Source§

impl BusClocks for Usart1

Source§

fn clock(clocks: &Clocks) -> Hertz

Implementors§