Struct esp32c2_hal::ledc::timer::Timer

source ·
pub struct Timer<'a, S>where
    S: TimerSpeed,
{ /* private fields */ }
Expand description

Timer struct

Implementations

Create a new intance of a timer

Trait Implementations

Timer HW implementation for LowSpeed timers

Get the current source timer frequency from the HW

Configure the HW for the timer

Update the timer in HW

Return the frequency of the timer

Configure the timer

Check if the timer has been configured

Return the duty resolution of the timer

Return the timer number

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.