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§
sourcefn on_tick(&self, bf: Box<dyn TickCallback + 'c>)
fn on_tick(&self, bf: Box<dyn TickCallback + 'c>)
Call the given closure every time the clock ticks.