pub trait Timer16: Sized {
    type CompareA: Register<T = u16>;
    type CompareB: Register<T = u16>;
    type Counter: Register<T = u16>;
    type ControlA: Register<T = u8>;
    type ControlB: Register<T = u8>;
    type ControlC: Register<T = u8>;
    type InterruptMask: Register<T = u8>;
    type InterruptFlag: Register<T = u8>;
Show 8 associated constants and 1 method
    const CS0: RegisterBits<Self::ControlB>;
    const CS1: RegisterBits<Self::ControlB>;
    const CS2: RegisterBits<Self::ControlB>;
    const WGM0: RegisterBits<Self::ControlA>;
    const WGM1: RegisterBits<Self::ControlA>;
    const WGM2: RegisterBits<Self::ControlB>;
    const WGM3: RegisterBits<Self::ControlB>;
    const OCIEA: RegisterBits<Self::InterruptMask>;
    // Provided method
    fn setup() -> Timer16Setup<Self> { ... }
}Expand description
A 16-bit timer.
Required Associated Types§
sourcetype InterruptMask: Register<T = u8>
 
type InterruptMask: Register<T = u8>
The interrupt mask register.
For example, TIMSK0.
sourcetype InterruptFlag: Register<T = u8>
 
type InterruptFlag: Register<T = u8>
The interrupt flag register.
For example, TIFR0.