Struct gd32f1x0_hal::timer::CountDownTimer
source · [−]pub struct CountDownTimer<TIMER> { /* private fields */ }
Implementations
sourceimpl CountDownTimer<SYST>
impl CountDownTimer<SYST>
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER0>
impl CountDownTimer<TIMER0>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER1>
impl CountDownTimer<TIMER1>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER2>
impl CountDownTimer<TIMER2>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER5>
impl CountDownTimer<TIMER5>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER13>
impl CountDownTimer<TIMER13>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER14>
impl CountDownTimer<TIMER14>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER15>
impl CountDownTimer<TIMER15>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
sourceimpl CountDownTimer<TIMER16>
impl CountDownTimer<TIMER16>
sourcepub fn is_pending(&self, event: Event) -> bool
pub fn is_pending(&self, event: Event) -> bool
Returns true if the given event
interrupt is pending.
sourcepub fn clear_interrupt_flag(&mut self, event: Event)
pub fn clear_interrupt_flag(&mut self, event: Event)
Clears the given event interrupt flag.
sourcepub fn micros_since(&self) -> u32
pub fn micros_since(&self) -> u32
Returns the number of microseconds since the last update event. NOTE: This method is not a very good candidate to keep track of time, because it is very easy to lose an update event.
Trait Implementations
sourceimpl Cancel for CountDownTimer<SYST>
impl Cancel for CountDownTimer<SYST>
sourceimpl Cancel for CountDownTimer<TIMER0>
impl Cancel for CountDownTimer<TIMER0>
sourceimpl Cancel for CountDownTimer<TIMER1>
impl Cancel for CountDownTimer<TIMER1>
sourceimpl Cancel for CountDownTimer<TIMER2>
impl Cancel for CountDownTimer<TIMER2>
sourceimpl Cancel for CountDownTimer<TIMER5>
impl Cancel for CountDownTimer<TIMER5>
sourceimpl Cancel for CountDownTimer<TIMER13>
impl Cancel for CountDownTimer<TIMER13>
sourceimpl Cancel for CountDownTimer<TIMER14>
impl Cancel for CountDownTimer<TIMER14>
sourceimpl Cancel for CountDownTimer<TIMER15>
impl Cancel for CountDownTimer<TIMER15>
sourceimpl Cancel for CountDownTimer<TIMER16>
impl Cancel for CountDownTimer<TIMER16>
sourceimpl CountDown for CountDownTimer<SYST>
impl CountDown for CountDownTimer<SYST>
sourceimpl CountDown for CountDownTimer<TIMER0>
impl CountDown for CountDownTimer<TIMER0>
sourceimpl CountDown for CountDownTimer<TIMER1>
impl CountDown for CountDownTimer<TIMER1>
sourceimpl CountDown for CountDownTimer<TIMER2>
impl CountDown for CountDownTimer<TIMER2>
sourceimpl CountDown for CountDownTimer<TIMER5>
impl CountDown for CountDownTimer<TIMER5>
sourceimpl CountDown for CountDownTimer<TIMER13>
impl CountDown for CountDownTimer<TIMER13>
sourceimpl CountDown for CountDownTimer<TIMER14>
impl CountDown for CountDownTimer<TIMER14>
sourceimpl CountDown for CountDownTimer<TIMER15>
impl CountDown for CountDownTimer<TIMER15>
sourceimpl CountDown for CountDownTimer<TIMER16>
impl CountDown for CountDownTimer<TIMER16>
impl Periodic for CountDownTimer<SYST>
impl Periodic for CountDownTimer<TIMER0>
impl Periodic for CountDownTimer<TIMER1>
impl Periodic for CountDownTimer<TIMER2>
impl Periodic for CountDownTimer<TIMER5>
impl Periodic for CountDownTimer<TIMER13>
impl Periodic for CountDownTimer<TIMER14>
impl Periodic for CountDownTimer<TIMER15>
impl Periodic for CountDownTimer<TIMER16>
Auto Trait Implementations
impl<TIMER> RefUnwindSafe for CountDownTimer<TIMER> where
TIMER: RefUnwindSafe,
impl<TIMER> Send for CountDownTimer<TIMER> where
TIMER: Send,
impl<TIMER> Sync for CountDownTimer<TIMER> where
TIMER: Sync,
impl<TIMER> Unpin for CountDownTimer<TIMER> where
TIMER: Unpin,
impl<TIMER> UnwindSafe for CountDownTimer<TIMER> where
TIMER: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more