pub struct Timer<'a, S: TimerSpeed> { /* private fields */ }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 TimerHW<LowSpeed> for Timer<'_, LowSpeed>
Available on crate feature unstable only.Timer HW implementation for LowSpeed timers
impl TimerHW<LowSpeed> for Timer<'_, LowSpeed>
Available on crate feature
unstable only.Timer HW implementation for LowSpeed timers
Source§impl<'a, S: TimerSpeed> TimerIFace<S> for Timer<'a, S>
Available on crate feature unstable only.
impl<'a, S: TimerSpeed> TimerIFace<S> for Timer<'a, S>
Available on crate feature
unstable only.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