pub trait TimerIFace<S: TimerSpeed> {
    // Required methods
    fn freq(&self) -> Option<Rate>;
    fn configure(
        &mut self,
        config: Config<S::ClockSourceType>,
    ) -> Result<(), Error>;
    fn is_configured(&self) -> bool;
    fn duty(&self) -> Option<Duty>;
    fn number(&self) -> Number;
    fn frequency(&self) -> u32;
}Expand description
Interface for Timers
Required Methods§
Sourcefn configure(&mut self, config: Config<S::ClockSourceType>) -> Result<(), Error>
 
fn configure(&mut self, config: Config<S::ClockSourceType>) -> Result<(), Error>
Configure the timer
Sourcefn is_configured(&self) -> bool
 
fn is_configured(&self) -> bool
Check if the timer has been configured
Implementors§
impl<'a, S: TimerSpeed> TimerIFace<S> for Timer<'a, S>
Available on crate feature 
unstable only.