[][src]Trait cortex_m_systick_countdown::CountsMillis

pub trait CountsMillis {
    fn count(&self) -> Wrapping<u32>;
}

Trait that abstracts a counter that increases as milliseconds go by.

Factored out to leave the door open for different SysTick counters, such as counting via interrupts.

Required methods

fn count(&self) -> Wrapping<u32>

Returns a value that must not increment faster than once per millisecond, and will wrap around.

Loading content...

Implementors

impl CountsMillis for PollingSysTick[src]

fn count(&self) -> Wrapping<u32>[src]

Returns a number that goes up no faster than once per millisecond. This value will not increment unless polled (this is so it can operate during critical sections when interrupts are disabled).

Loading content...