[][src]Trait pygamer::prelude::_atsamd_hal_timer_traits_InterruptDrivenTimer

pub trait _atsamd_hal_timer_traits_InterruptDrivenTimer: CountDown<Time = Microseconds> + Periodic {
    fn enable_interrupt(&mut self);
fn disable_interrupt(&mut self); }

Trait for timers that can enable & disable an interrupt that fires when the timer expires

Required methods

fn enable_interrupt(&mut self)

Enable the timer interrupt

fn disable_interrupt(&mut self)

Disable the timer interrupt

Loading content...

Implementors

impl<TC> InterruptDrivenTimer for TimerCounter<TC> where
    TC: Count16
[src]

fn enable_interrupt(&mut self)[src]

Enable the interrupt generation for this hardware timer. This method only sets the clock configuration to trigger the interrupt; it does not configure the interrupt controller or define an interrupt handler.

fn disable_interrupt(&mut self)[src]

Disables interrupt generation for this hardware timer. This method only sets the clock configuration to prevent triggering the interrupt; it does not configure the interrupt controller.

Loading content...