Trait avr_oxide::devices::masterclock::TickEvents

source ·
pub trait TickEvents<'c> {
    // Required method
    fn on_tick(&self, bf: Box<dyn TickCallback + 'c>);
}
Expand description

Trait implemented by devices which can run code every time the clock ticks.

Required Methods§

source

fn on_tick(&self, bf: Box<dyn TickCallback + 'c>)

Call the given closure every time the clock ticks.

Implementors§

source§

impl<'mc, T, S> TickEvents<'mc> for MasterClock<'mc, T, S>
where T: 'static + TimerControl, S: EventSink,

source§

impl<'wc, T, S> TickEvents<'wc> for WallClock<'wc, T, S>
where T: 'static + TimerControl + RtcTimerCalibration, S: EventSink,