Struct esp32_hal::pcnt::unit::Unit

source ·
pub struct Unit { /* private fields */ }

Implementations§

Pause the counter

Resume the counter

Enable which events generate interrupts on this unit.

Get the latest events for this unit.

Get the mode of the last zero crossing

Enable interrupts for this unit.

Disable interrupts for this unit.

Returns true if an interrupt is active for this unit.

Clear the interrupt bit for this unit.

Get the current counter value.

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.