Struct esp32c2_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
source§fn get_frequency(&self) -> u32
fn get_frequency(&self) -> u32
Return the timer frequency
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more