Struct esp_idf_hal::ledc::config::TimerConfig
source · pub struct TimerConfig {
pub frequency: Hertz,
pub resolution: Resolution,
pub speed_mode: SpeedMode,
}
Fields§
§frequency: Hertz
§resolution: Resolution
§speed_mode: SpeedMode
Implementations§
source§impl TimerConfig
impl TimerConfig
pub fn new() -> Self
pub fn frequency(self, f: Hertz) -> Self
pub fn resolution(self, r: Resolution) -> Self
pub fn speed_mode(self, mode: SpeedMode) -> Self
Trait Implementations§
source§impl Clone for TimerConfig
impl Clone for TimerConfig
source§fn clone(&self) -> TimerConfig
fn clone(&self) -> TimerConfig
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimerConfig
impl Debug for TimerConfig
source§impl Default for TimerConfig
impl Default for TimerConfig
source§impl PartialEq for TimerConfig
impl PartialEq for TimerConfig
impl Eq for TimerConfig
impl StructuralPartialEq for TimerConfig
Auto Trait Implementations§
impl RefUnwindSafe for TimerConfig
impl Send for TimerConfig
impl Sync for TimerConfig
impl Unpin for TimerConfig
impl UnwindSafe for TimerConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more