Trait rp6::avr::modules::Timer8

source ·
pub trait Timer8: Sized {
    type CompareA: Register<T = u8>;
    type CompareB: Register<T = u8>;
    type Counter: Register<T = u8>;
    type ControlA: Register<T = u8>;
    type ControlB: Register<T = u8>;
    type InterruptMask: Register<T = u8>;
    type InterruptFlag: Register<T = u8>;
Show 7 associated constants and 0 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 OCIEA: RegisterBits<Self::InterruptMask>;
}
Expand description

A 8-bit timer.

Required Associated Types§

source

type CompareA: Register<T = u8>

The first compare register. For example, OCR0A.

source

type CompareB: Register<T = u8>

The second compare register. For example, OCR0B.

source

type Counter: Register<T = u8>

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

source

const CS0: RegisterBits<Self::ControlB>

Bit 0 of the clock select mask.

source

const CS1: RegisterBits<Self::ControlB>

Bit 1 of the clock select mask.

source

const CS2: RegisterBits<Self::ControlB>

Bit 2 of the clock select mask.

source

const WGM0: RegisterBits<Self::ControlA>

Bit 0 of the waveform generation mode mask.

source

const WGM1: RegisterBits<Self::ControlA>

Bit 1 of the waveform generation mode mask.

source

const WGM2: RegisterBits<Self::ControlB>

Bit 2 of the waveform generation mode mask.

source

const OCIEA: RegisterBits<Self::InterruptMask>

Output compare interrupt enable flag.

Implementors§