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;
}
Available on crate feature
unstable
only.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