pub struct Timer<'a, S: TimerSpeed> { /* private fields */ }
Available on crate feature
unstable
only.Expand description
Timer struct
Implementations§
Source§impl<'a, S: TimerSpeed> Timer<'a, S>
impl<'a, S: TimerSpeed> Timer<'a, S>
Sourcepub fn new(ledc: &'a RegisterBlock, number: Number) -> Self
pub fn new(ledc: &'a RegisterBlock, number: Number) -> Self
Create a new instance of a timer
Trait Implementations§
Source§impl<'a, S: TimerSpeed> TimerIFace<S> for Timer<'a, S>
impl<'a, S: TimerSpeed> TimerIFace<S> for Timer<'a, S>
Source§fn configure(&mut self, config: Config<S::ClockSourceType>) -> Result<(), Error>
fn configure(&mut self, config: Config<S::ClockSourceType>) -> Result<(), Error>
Configure the timer
Source§fn is_configured(&self) -> bool
fn is_configured(&self) -> bool
Check if the timer has been configured