Struct esp32c3_hal::ledc::timer::Timer
source · pub struct Timer<'a, S>where
S: TimerSpeed,{ /* private fields */ }
Expand description
Timer struct
Implementations§
Trait Implementations§
source§impl<'a> TimerHW<LowSpeed> for Timer<'a, LowSpeed>
impl<'a> TimerHW<LowSpeed> for Timer<'a, LowSpeed>
Timer HW implementation for LowSpeed timers
source§impl<'a, S> TimerIFace<S> for Timer<'a, S>where
S: TimerSpeed,
Timer<'a, S>: TimerHW<S>,
impl<'a, S> TimerIFace<S> for Timer<'a, S>where
S: TimerSpeed,
Timer<'a, S>: TimerHW<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