Trait ruduino::modules::Timer8[][src]

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

    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>;
}

A 8-bit timer.

Associated Types

type CompareA: Register<T = u8>[src]

The first compare register. For example, OCR0A.

type CompareB: Register<T = u8>[src]

The second compare register. For example, OCR0B.

type Counter: Register<T = u8>[src]

The counter register.

For example, TCNT0.

type ControlA: Register<T = u8>[src]

The first control register.

For example, TCCR0A.

type ControlB: Register<T = u8>[src]

The second control register.

For example, TCCR0B.

type InterruptMask: Register<T = u8>[src]

The interrupt mask register.

For example, TIMSK0.

type InterruptFlag: Register<T = u8>[src]

The interrupt flag register.

For example, TIFR0.

Loading content...

Associated Constants

const CS0: RegisterBits<Self::ControlB>[src]

Bit 0 of the clock select mask.

const CS1: RegisterBits<Self::ControlB>[src]

Bit 1 of the clock select mask.

const CS2: RegisterBits<Self::ControlB>[src]

Bit 2 of the clock select mask.

const WGM0: RegisterBits<Self::ControlA>[src]

Bit 0 of the waveform generation mode mask.

const WGM1: RegisterBits<Self::ControlA>[src]

Bit 1 of the waveform generation mode mask.

const WGM2: RegisterBits<Self::ControlB>[src]

Bit 2 of the waveform generation mode mask.

const OCIEA: RegisterBits<Self::InterruptMask>[src]

Output compare interrupt enable flag.

Loading content...

Implementors

impl Timer8 for ruduino::cores::atmega48::Timer8[src]

impl Timer8 for ruduino::cores::atmega48a::Timer8[src]

impl Timer8 for ruduino::cores::atmega48p::Timer8[src]

impl Timer8 for ruduino::cores::atmega48pa::Timer8[src]

impl Timer8 for ruduino::cores::atmega88::Timer8[src]

impl Timer8 for ruduino::cores::atmega88a::Timer8[src]

impl Timer8 for ruduino::cores::atmega88p::Timer8[src]

impl Timer8 for ruduino::cores::atmega88pa::Timer8[src]

impl Timer8 for ruduino::cores::atmega168::Timer8[src]

impl Timer8 for ruduino::cores::atmega168a::Timer8[src]

impl Timer8 for ruduino::cores::atmega168p::Timer8[src]

impl Timer8 for ruduino::cores::atmega168pa::Timer8[src]

impl Timer8 for ruduino::cores::atmega328::Timer8[src]

impl Timer8 for ruduino::cores::atmega328p::Timer8[src]

Loading content...