Select one of the symbols to view example projects that use it.
 
Outline
#include "sdkconfig.h"
#include <esp_types.h>
#include "soc/soc_caps.h"
#include "driver/gpio.h"
gpio_func_sel(gpio_num_t, uint32_t);
gpio_output_enable(gpio_num_t);
gpio_output_disable(gpio_num_t);
gpio_od_disable(gpio_num_t);
gpio_od_enable(gpio_num_t);
Files
loading (4/5)...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_driver_gpio/include/esp_private/gpio.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include "sdkconfig.h" #include <esp_types.h> #include "soc/soc_caps.h" #include "driver/gpio.h" #ifdef __cplusplus extern "C" { #endif #if CONFIG_GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL /** * @brief Emulate ESP32S2 behaviour to backup FUN_PU, FUN_PD information * * @note Need to be called before sleep. * * @return * - ESP_OK Success * - ESP_ERR_INVALID_ARG GPIO number error *//* ... */ esp_err_t gpio_sleep_pupd_config_apply(gpio_num_t gpio_num); /** * @brief Emulate ESP32S2 behaviour to restore FUN_PU, FUN_PD information * * @note Need to be called after sleep. * * @return * - ESP_OK Success * - ESP_ERR_INVALID_ARG GPIO number error *//* ... */ esp_err_t gpio_sleep_pupd_config_unapply(gpio_num_t gpio_num);/* ... */ #endif /** * @brief Configure a pin to perform GPIO function or an IOMUX function * * @param gpio_num GPIO number. * @param func Function to assign to the pin. see "io_mux_reg.h" * * @return * - ESP_OK Success * - ESP_ERR_INVALID_ARG GPIO number error *//* ... */ esp_err_t gpio_func_sel(gpio_num_t gpio_num, uint32_t func); /** * @brief Enable output for an IO * * @param gpio_num GPIO number * * @return * - ESP_OK Success * - ESP_ERR_INVALID_ARG GPIO number error *//* ... */ esp_err_t gpio_output_enable(gpio_num_t gpio_num); /** * @brief Disable output for an IO * * @param gpio_num GPIO number * * @return * - ESP_OK Success * - ESP_ERR_INVALID_ARG GPIO number error *//* ... */ esp_err_t gpio_output_disable(gpio_num_t gpio_num); /** * @brief Enable open-drain for an IO * * @param gpio_num GPIO number * * @return * - ESP_OK Success * - ESP_ERR_INVALID_ARG GPIO number error *//* ... */ esp_err_t gpio_od_disable(gpio_num_t gpio_num); /** * @brief Disable open-drain for an IO * * @param gpio_num GPIO number * * @return * - ESP_OK Success * - ESP_ERR_INVALID_ARG GPIO number error *//* ... */ esp_err_t gpio_od_enable(gpio_num_t gpio_num); #ifdef __cplusplus }{...} #endif
Details