pub struct Timer<PS: PwmState> { /* private fields */ }
Expand description

Timer impl

Implementations

Creates new timer

Releases the TIM peripheral

Stop timer and reset frequency (doesn’t start/enable)

Starts listening for an event

Stops listening for an event

Enable timer

Consumes timer and returns pwm channels and timer without them.

Returns pwm channels back.

Trait Implementations

The unit of time used by this timer

Starts a new count down

Non-blockingly “waits” until the count down finishes Read more

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.