Struct zinc::hal::lpc17xx::timer::Timer [-]  [+] [src]

pub struct Timer {
    // some fields omitted
}

Struct describing a timer instance.

Methods

impl Timer

fn new(peripheral: TimerPeripheral, counter: u32, divisor: u8) -> Timer

Create an start a timer.

Trait Implementations

impl Timer for Timer

fn get_counter(&self) -> u32

fn wait_us(&self, us: u32)

fn wait_ms(&self, ms: u32)

fn wait(&self, s: u32)