Struct esp32c2_hal::ledc::timer::Timer
source · pub struct Timer<'a, S>where
S: TimerSpeed,{ /* private fields */ }
Expand description
Timer struct
Implementations
sourceimpl<'a, S> Timer<'a, S>where
S: TimerSpeed,
impl<'a, S> Timer<'a, S>where
S: TimerSpeed,
Trait Implementations
sourceimpl<'a> TimerHW<LowSpeed> for Timer<'a, LowSpeed>
impl<'a> TimerHW<LowSpeed> for Timer<'a, LowSpeed>
Timer HW implementation for LowSpeed timers
sourcefn get_freq_hw(&self) -> Option<Rate<u32, 1, 1>>
fn get_freq_hw(&self) -> Option<Rate<u32, 1, 1>>
Get the current source timer frequency from the HW
sourcefn configure_hw(&self, divisor: u32)
fn configure_hw(&self, divisor: u32)
Configure the HW for the timer
sourceimpl<'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>,
sourcefn 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
sourcefn is_configured(&self) -> bool
fn is_configured(&self) -> bool
Check if the timer has been configured
sourcefn get_number(&self) -> Number
fn get_number(&self) -> Number
Return the timer number
Auto Trait Implementations
impl<'a, S> !RefUnwindSafe for Timer<'a, S>
impl<'a, S> !Send for Timer<'a, S>
impl<'a, S> !Sync for Timer<'a, S>
impl<'a, S> Unpin for Timer<'a, S>where
<S as TimerSpeed>::ClockSourceType: Unpin,
impl<'a, S> !UnwindSafe for Timer<'a, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more