1 /*
2  * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #pragma once
8 
9 #include <stdint.h>
10 #include "soc/soc_caps.h"
11 #include "soc/periph_defs.h"
12 #include "soc/pcnt_reg.h"
13 #include "soc/pcnt_struct.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 typedef struct {
20     struct {
21         struct {
22             struct {
23                 const uint32_t pulse_sig;
24                 const uint32_t control_sig;
25             } channels[SOC_PCNT_CHANNELS_PER_UNIT];
26         } units[SOC_PCNT_UNITS_PER_GROUP];
27         const uint32_t irq;
28         const periph_module_t module;
29     } groups[SOC_PCNT_GROUPS];
30 } pcnt_signal_conn_t;
31 
32 extern const pcnt_signal_conn_t pcnt_periph_signals;
33 
34 #ifdef __cplusplus
35 }
36 #endif
37