Trait rp6::avr::modules::Timer16

source ·
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§

source

type CompareA: Register<T = u16>

The first compare register. For example, OCR0A.

source

type CompareB: Register<T = u16>

The second compare register. For example, OCR0B.

source

type Counter: Register<T = u16>

The counter register.

For example, TCNT0.

source

type ControlA: Register<T = u8>

The first control register.

For example, TCCR0A.

source

type ControlB: Register<T = u8>

The second control register.

For example, TCCR0B.

source

type ControlC: Register<T = u8>

The third control register.

For example, TCCR0C.

source

type InterruptMask: Register<T = u8>

The interrupt mask register.

For example, TIMSK0.

source

type InterruptFlag: Register<T = u8>

The interrupt flag register.

For example, TIFR0.

Required Associated Constants§

Provided Methods§

Implementors§