Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

ESP32 PCNT driver public extensions. More...

Go to the source code of this file.

Macros

#define SENSOR_CHAN_PCNT_ESP32_UNIT(n)
 Produce a sensor_channel value selecting PCNT unit n.

Enumerations

enum  sensor_attribute_pcnt_esp32 { SENSOR_ATTR_PCNT_ESP32_RESET = SENSOR_ATTR_PRIV_START }
 PCNT-specific sensor attributes. More...

Detailed Description

ESP32 PCNT driver public extensions.

Helpers for addressing a specific PCNT unit through the legacy sensor_attr_set()/sensor_attr_get()/sensor_trigger_set() APIs, which do not natively carry a channel index. Multi-unit access through the Read-and-Decode API uses sensor_chan_spec.chan_idx directly and does not need these helpers.