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§
fn get_freq(&self) -> Option<Rate<u32, 1, 1>>
fn get_freq(&self) -> Option<Rate<u32, 1, 1>>
Return the frequency of the timer
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
fn is_configured(&self) -> bool
fn is_configured(&self) -> bool
Check if the timer has been configured
fn get_duty(&self) -> Option<Duty>
fn get_duty(&self) -> Option<Duty>
Return the duty resolution of the timer
fn get_number(&self) -> Number
fn get_number(&self) -> Number
Return the timer number
fn get_frequency(&self) -> u32
fn get_frequency(&self) -> u32
Return the timer frequency, or 0 if not configured