pub trait GeneralTimer {
Show 20 methods
// Required methods
fn reset_config(&mut self);
fn enable_counter(&mut self);
fn disable_counter(&mut self);
fn is_counter_enabled(&self) -> bool;
fn reset_counter(&mut self);
fn enable_preload(&mut self, b: bool);
fn max_auto_reload() -> u32;
unsafe fn set_auto_reload_unchecked(&mut self, arr: u32);
fn set_auto_reload(&mut self, arr: u32) -> Result<(), Error>;
fn read_auto_reload(&self) -> u32;
fn set_prescaler(&mut self, psc: u16);
fn read_prescaler(&self) -> u16;
fn read_count(&self) -> u32;
fn trigger_update(&mut self);
fn stop_in_debug(&mut self, state: bool);
fn config_freq(&mut self, clock: Hertz, update_freq: Hertz);
fn clear_interrupt_flag(&mut self, event: Event);
fn listen_interrupt(&mut self, event: Event, b: bool);
fn get_interrupt_flag(&self) -> Event;
fn start_one_pulse(&mut self);
}Required Methods§
fn reset_config(&mut self)
fn enable_counter(&mut self)
fn disable_counter(&mut self)
fn is_counter_enabled(&self) -> bool
fn reset_counter(&mut self)
fn enable_preload(&mut self, b: bool)
fn max_auto_reload() -> u32
Sourceunsafe fn set_auto_reload_unchecked(&mut self, arr: u32)
unsafe fn set_auto_reload_unchecked(&mut self, arr: u32)
§Safety
arr must be greater than 0
fn set_auto_reload(&mut self, arr: u32) -> Result<(), Error>
fn read_auto_reload(&self) -> u32
fn set_prescaler(&mut self, psc: u16)
fn read_prescaler(&self) -> u16
fn read_count(&self) -> u32
fn trigger_update(&mut self)
fn stop_in_debug(&mut self, state: bool)
fn config_freq(&mut self, clock: Hertz, update_freq: Hertz)
fn clear_interrupt_flag(&mut self, event: Event)
fn listen_interrupt(&mut self, event: Event, b: bool)
fn get_interrupt_flag(&self) -> Event
fn start_one_pulse(&mut self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.