pub trait _esp_hal_ledc_timer_TimerIFace<S>
where S: TimerSpeed,
{ // Required methods fn get_freq(&self) -> Option<Rate<u32, 1, 1>>; fn configure( &mut self, config: Config<<S as TimerSpeed>::ClockSourceType> ) -> Result<(), Error>; fn is_configured(&self) -> bool; fn get_duty(&self) -> Option<Duty>; fn get_number(&self) -> Number; fn get_frequency(&self) -> u32; }
Expand description

Interface for Timers

Required Methods§

source

fn get_freq(&self) -> Option<Rate<u32, 1, 1>>

Return the frequency of the timer

source

fn configure( &mut self, config: Config<<S as TimerSpeed>::ClockSourceType> ) -> Result<(), Error>

Configure the timer

source

fn is_configured(&self) -> bool

Check if the timer has been configured

source

fn get_duty(&self) -> Option<Duty>

Return the duty resolution of the timer

source

fn get_number(&self) -> Number

Return the timer number

source

fn get_frequency(&self) -> u32

Return the timer frequency, or 0 if not configured

Implementors§

source§

impl<'a, S> TimerIFace<S> for Timer<'a, S>
where S: TimerSpeed, Timer<'a, S>: TimerHW<S>,