pub struct Channel<T: Reg>(/* private fields */);Expand description
Implementations§
Source§impl<T> Channel<T>where
T: Trait,
impl<T> Channel<T>where
T: Trait,
Sourcepub fn start(&mut self, reload: Ticks)
pub fn start(&mut self, reload: Ticks)
Start the timer
The reload argument must be smaller than or equal to MAX_VALUE.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Indicates whether the timer is running
Sourcepub fn reload_value(&self) -> u32
pub fn reload_value(&self) -> u32
Returns the reload value of the timer
Trait Implementations§
Source§impl<T> Clock for Channel<T>where
T: Trait,
impl<T> Clock for Channel<T>where
T: Trait,
Source§const SCALING_FACTOR: Fraction
const SCALING_FACTOR: Fraction
The duration of one clock tick in seconds, AKA the clock precision.
Source§impl<T> CountDown for Channel<T>where
T: Trait,
impl<T> CountDown for Channel<T>where
T: Trait,
Source§type Time = Ticks
type Time = Ticks
The timer operates in clock ticks from the system clock, that means it runs at 12_000_000 ticks per second if you haven’t changed it.
It can also only use values smaller than 0x7FFFFFFF.
Source§impl<T> CountDown for Channel<T>where
T: Trait,
impl<T> CountDown for Channel<T>where
T: Trait,
impl<T> Periodic for Channel<T>where
T: Trait,
impl<T> Periodic for Channel<T>where
T: Trait,
Auto Trait Implementations§
impl<T> Freeze for Channel<T>
impl<T> RefUnwindSafe for Channel<T>where
T: RefUnwindSafe,
impl<T> Send for Channel<T>
impl<T> !Sync for Channel<T>
impl<T> Unpin for Channel<T>
impl<T> UnwindSafe for Channel<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more