Struct rp2040_hal::timer::Timer

source ·
pub struct Timer { /* private fields */ }
Expand description

Timer peripheral

Implementations§

Create a new Timer

Get the current counter value.

Get the value of the least significant word of the counter.

Initialized a Count Down instance without starting it.

Retrieve a reference to alarm 0. Will only return a value the first time this is called

Retrieve a reference to alarm 1. Will only return a value the first time this is called

Retrieve a reference to alarm 2. Will only return a value the first time this is called

Retrieve a reference to alarm 3. Will only return a value the first time this is called

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

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.