ESP-IDF
pcnt_config_t
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
pcnt_config_t
pcnt_config_t struct
Pulse Counter configuration for a single channel
Syntax
Show:
Summary
Declaration
from
pcnt_types_legacy.h:93
typedef
struct
{
int
pulse_gpio_num
;
int
ctrl_gpio_num
;
pcnt_ctrl_mode_t
lctrl_mode
;
pcnt_ctrl_mode_t
hctrl_mode
;
pcnt_count_mode_t
pos_mode
;
pcnt_count_mode_t
neg_mode
;
int16_t
counter_h_lim
;
int16_t
counter_l_lim
;
pcnt_unit_t
unit
;
pcnt_channel_t
channel
;
}
pcnt_config_t
;
Fields
Field
Declared as
Description
pcnt_config_t::pulse_gpio_num
int
Pulse input GPIO number, if you want to use GPIO16, enter pulse_gpio_num = 16, a negative value will be ignored.
pcnt_config_t::ctrl_gpio_num
int
Control signal input GPIO number, a negative value will be ignored.
pcnt_config_t::lctrl_mode
pcnt_ctrl_mode_t
PCNT low control mode.
pcnt_config_t::hctrl_mode
pcnt_ctrl_mode_t
PCNT high control mode.
pcnt_config_t::pos_mode
pcnt_count_mode_t
PCNT positive edge count mode.
pcnt_config_t::neg_mode
pcnt_count_mode_t
PCNT negative edge count mode.
pcnt_config_t::counter_h_lim
int16_t
Maximum counter value.
pcnt_config_t::counter_l_lim
int16_t
Minimum counter value.
pcnt_config_t::unit
pcnt_unit_t
PCNT unit number.
pcnt_config_t::channel
pcnt_channel_t
the PCNT channel.
Related Functions
Found 2 other functions taking a
pcnt_config_t
argument:
Function
_pcnt_unit_config()
pcnt_unit_config()
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out