Trait Clock

Source
pub trait Clock {
    const FREQ: u32;
}
Expand description

A clock speed

Required Associated Constants§

Source

const FREQ: u32

Frequency of this clock in Hz

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.

Implementors§

Source§

impl Clock for MHz1

Source§

const FREQ: u32 = 1_000_000u32

Source§

impl Clock for MHz8

Source§

const FREQ: u32 = 8_000_000u32

Source§

impl Clock for MHz10

Source§

const FREQ: u32 = 10_000_000u32

Source§

impl Clock for MHz12

Source§

const FREQ: u32 = 12_000_000u32

Source§

impl Clock for MHz16

Source§

const FREQ: u32 = 16_000_000u32

Source§

impl Clock for MHz20

Source§

const FREQ: u32 = 20_000_000u32

Source§

impl Clock for MHz24

Source§

const FREQ: u32 = 24_000_000u32