Struct esp32_hal::pcnt::channel::Config

source ·
pub struct Config {
    pub lctrl_mode: CtrlMode,
    pub hctrl_mode: CtrlMode,
    pub pos_edge: EdgeMode,
    pub neg_edge: EdgeMode,
    pub invert_ctrl: bool,
    pub invert_sig: bool,
}
Expand description

Pulse Counter configuration for a single channel

Fields§

§lctrl_mode: CtrlMode

PCNT low control mode

§hctrl_mode: CtrlMode

PCNT high control mode

§pos_edge: EdgeMode

PCNT signal positive edge count mode

§neg_edge: EdgeMode

PCNT signal negative edge count mode

§invert_ctrl: bool§invert_sig: bool

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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.