Struct esp32_hal::timer::Timer[][src]

pub struct Timer<TIMG: TimerGroup, INST: TimerInst> { /* fields omitted */ }
Expand description

Hardware timers

The timers can be programmed in a high level way via start, wait, cancel.

Lower level access is provided by the other functions.

Implementations

Create new timer resources

This function will create 2 timers and 1 watchdog for a timer group. It uses the clock_control_config for obtaining the clock configuration.

Note: time to clock tick conversions are done with the clock frequency when the start function is called. The clock frequency is not locked.

Releases the timer resources. Requires to release all timers and watchdog belonging to the same group at once.

Releases the timer resources. Requires to release all timers and watchdog belonging to the same group at once.

Trait Implementations

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

Performs the conversion.

Performs the conversion.

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.