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§
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.
Required Associated Constants§
sourceconst CS0: RegisterBits<Self::ControlB>
const CS0: RegisterBits<Self::ControlB>
Bit 0 of the clock select mask.
sourceconst CS1: RegisterBits<Self::ControlB>
const CS1: RegisterBits<Self::ControlB>
Bit 1 of the clock select mask.
sourceconst CS2: RegisterBits<Self::ControlB>
const CS2: RegisterBits<Self::ControlB>
Bit 2 of the clock select mask.
sourceconst WGM0: RegisterBits<Self::ControlA>
const WGM0: RegisterBits<Self::ControlA>
Bit 0 of the waveform generation mode mask.
sourceconst WGM1: RegisterBits<Self::ControlA>
const WGM1: RegisterBits<Self::ControlA>
Bit 1 of the waveform generation mode mask.
sourceconst WGM2: RegisterBits<Self::ControlB>
const WGM2: RegisterBits<Self::ControlB>
Bit 2 of the waveform generation mode mask.
sourceconst OCIEA: RegisterBits<Self::InterruptMask>
const OCIEA: RegisterBits<Self::InterruptMask>
Output compare interrupt enable flag.