Trait ruduino::modules::Timer16[][src]

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

    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>;
    fn setup() -> Timer16Setup<Self> { ... }
}

A 16-bit timer.

Associated Types

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

The first compare register. For example, OCR0A.

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

The second compare register. For example, OCR0B.

type Counter: Register<T = u16>[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 ControlC: Register<T = u8>[src]

The third control register.

For example, TCCR0C.

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

Loading content...

Provided methods

fn setup() -> Timer16Setup<Self>[src]

Loading content...

Implementors

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...