Trait atsamd_hal::timer_traits::InterruptDrivenTimer
source · [−]pub trait InterruptDrivenTimer: CountDown<Time = Nanoseconds> + Periodic {
fn enable_interrupt(&mut self);
fn disable_interrupt(&mut self);
}
Expand description
Trait for timers that can enable & disable an interrupt that fires when the timer expires
Required Methods
sourcefn enable_interrupt(&mut self)
fn enable_interrupt(&mut self)
Enable the timer interrupt
sourcefn disable_interrupt(&mut self)
fn disable_interrupt(&mut self)
Disable the timer interrupt