Skip to main content

Tasks

Trait Tasks 

Source
pub trait Tasks {
    // Required methods
    fn cnt_start(&self) -> Task;
    fn cnt_stop(&self) -> Task;
    fn cnt_reload(&self) -> Task;
    fn cnt_cap(&self) -> Task;
    fn alarm_start(&self) -> Task;
}
Expand description

General purpose timer ETM tasks

Required Methods§

Source

fn cnt_start(&self) -> Task

ETM task to start the counter

Source

fn cnt_stop(&self) -> Task

ETM task to stop the counter

Source

fn cnt_reload(&self) -> Task

ETM task to reload the counter

Source

fn cnt_cap(&self) -> Task

ETM task to capture the counter

Source

fn alarm_start(&self) -> Task

ETM task to load the counter with the value stored when the last now() was called

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Tasks for Timer<'_>

Available on crate feature unstable only.