pub struct Timer<'a, S>where
S: TimerSpeed,{ /* private fields */ }
Expand description
Timer struct
Implementations§
Source§impl<'a, S> Timer<'a, S>where
S: TimerSpeed,
impl<'a, S> Timer<'a, S>where
S: TimerSpeed,
Trait Implementations§
Source§impl<'a> TimerHW<LowSpeed> for Timer<'a, LowSpeed>
Timer HW implementation for LowSpeed timers
impl<'a> TimerHW<LowSpeed> for Timer<'a, LowSpeed>
Timer HW implementation for LowSpeed timers
Source§impl<'a, S> TimerIFace<S> for Timer<'a, S>
impl<'a, S> TimerIFace<S> for Timer<'a, S>
Source§fn configure(
&mut self,
config: Config<<S as TimerSpeed>::ClockSourceType>,
) -> Result<(), Error>
fn configure( &mut self, config: Config<<S as TimerSpeed>::ClockSourceType>, ) -> Result<(), Error>
Configure the timer
Source§fn is_configured(&self) -> bool
fn is_configured(&self) -> bool
Check if the timer has been configured
Source§fn get_number(&self) -> Number
fn get_number(&self) -> Number
Return the timer number
Source§fn get_frequency(&self) -> u32
fn get_frequency(&self) -> u32
Return the timer frequency
Auto Trait Implementations§
impl<'a, S> Freeze for Timer<'a, S>
impl<'a, S> !RefUnwindSafe for Timer<'a, S>
impl<'a, S> !Send for Timer<'a, S>
impl<'a, S> !Sync for Timer<'a, S>
impl<'a, S> Unpin for Timer<'a, S>
impl<'a, S> !UnwindSafe for Timer<'a, S>
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