EasyManua.ls Logo

Espressif ESP32-S2 - Page 348

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
Enumerations
enum pcnt_port_t
PCNT port number, the max port number is (PCNT_PORT_MAX - 1).
Values:
PCNT_PORT_0
PCNT port 0
PCNT_PORT_MAX
PCNT port max
enum pcnt_unit_t
Selection of all available PCNT units.
Values:
PCNT_UNIT_0
PCNT unit 0
PCNT_UNIT_1
PCNT unit 1
PCNT_UNIT_2
PCNT unit 2
PCNT_UNIT_3
PCNT unit 3
PCNT_UNIT_MAX
enum pcnt_channel_t
Selection of channels available for a single PCNT unit.
Values:
PCNT_CHANNEL_0
PCNT channel 0
PCNT_CHANNEL_1
PCNT channel 1
PCNT_CHANNEL_MAX
enum pcnt_evt_type_t
Selection of counters events the may trigger an interrupt.
Values:
PCNT_EVT_THRES_1 = 1 << 2
PCNT watch point event: threshold1 value event
PCNT_EVT_THRES_0 = 1 << 3
PCNT watch point event: threshold0 value event
PCNT_EVT_L_LIM = 1 << 4
PCNT watch point event: Minimum counter value
PCNT_EVT_H_LIM = 1 << 5
PCNT watch point event: Maximum counter value
PCNT_EVT_ZERO = 1 << 6
PCNT watch point event: counter value zero event
PCNT_EVT_MAX
Header File
components/hal/include/hal/pcnt_types.h
Espressif Systems 337
Submit Document Feedback
Release v4.4

Table of Contents