1
6
7
8
9
10
11
12
13
14
15
16
17
18
19
22
27
28
34
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
78
83
84
89
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/* ... */
#pragma once
#include <stdint.h>
#include "esp_err.h"
#include "esp_etm.h"
#ifdef __cplusplus
extern "C" {
#endif
#define GPIO_ETM_EVENT_EDGE_TYPES 3
#define GPIO_ETM_TASK_ACTION_TYPES 3
/* ... */
typedef enum {
GPIO_ETM_EVENT_EDGE_POS = 1,
GPIO_ETM_EVENT_EDGE_NEG,
GPIO_ETM_EVENT_EDGE_ANY,
}{ ... } gpio_etm_event_edge_t;
/* ... */
typedef struct {
union {
gpio_etm_event_edge_t edge;
gpio_etm_event_edge_t edges[GPIO_ETM_EVENT_EDGE_TYPES];
}{ ... };
}{ ... } gpio_etm_event_config_t;
/* ... */
esp_err_t gpio_new_etm_event(const gpio_etm_event_config_t *config, esp_etm_event_handle_t *ret_event, ...);
/* ... */
esp_err_t gpio_etm_event_bind_gpio(esp_etm_event_handle_t event, int gpio_num);
/* ... */
typedef enum {
GPIO_ETM_TASK_ACTION_SET = 1,
GPIO_ETM_TASK_ACTION_CLR,
GPIO_ETM_TASK_ACTION_TOG,
}{ ... } gpio_etm_task_action_t;
/* ... */
typedef struct {
union {
gpio_etm_task_action_t action;
gpio_etm_task_action_t actions[GPIO_ETM_TASK_ACTION_TYPES];
}{ ... };
}{ ... } gpio_etm_task_config_t;
/* ... */
esp_err_t gpio_new_etm_task(const gpio_etm_task_config_t *config, esp_etm_task_handle_t *ret_task, ...);
/* ... */
esp_err_t gpio_etm_task_add_gpio(esp_etm_task_handle_t task, int gpio_num);
/* ... */
esp_err_t gpio_etm_task_rm_gpio(esp_etm_task_handle_t task, int gpio_num);
#ifdef __cplusplus
}{...}
#endif