EasyManua.ls Logo

Espressif ESP32-S2 - Page 276

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
esp_err_t rtc_gpio_pullup_en(gpio_num_t gpio_num)
RTC GPIO pullup enable.
This function only works for RTC IOs. In general, call gpio_pullup_en, which will work both for normal
GPIOs and RTC IOs.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG GPIO is not an RTC IO
Parameters
gpio_num: GPIO number (e.g. GPIO_NUM_12)
esp_err_t rtc_gpio_pulldown_en(gpio_num_t gpio_num)
RTC GPIO pulldown enable.
This function only works for RTC IOs. In general, call gpio_pulldown_en, which will work both for normal
GPIOs and RTC IOs.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG GPIO is not an RTC IO
Parameters
gpio_num: GPIO number (e.g. GPIO_NUM_12)
esp_err_t rtc_gpio_pullup_dis(gpio_num_t gpio_num)
RTC GPIO pullup disable.
This function only works for RTC IOs. In general, call gpio_pullup_dis, which will work both for normal
GPIOs and RTC IOs.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG GPIO is not an RTC IO
Parameters
gpio_num: GPIO number (e.g. GPIO_NUM_12)
esp_err_t rtc_gpio_pulldown_dis(gpio_num_t gpio_num)
RTC GPIO pulldown disable.
This function only works for RTC IOs. In general, call gpio_pulldown_dis, which will work both for normal
GPIOs and RTC IOs.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG GPIO is not an RTC IO
Parameters
gpio_num: GPIO number (e.g. GPIO_NUM_12)
esp_err_t rtc_gpio_set_drive_capability(gpio_num_t gpio_num, gpio_drive_cap_t strength)
Set RTC GPIO pad drive capability.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG Parameter error
Parameters
gpio_num: GPIO number, only support output GPIOs
strength: Drive capability of the pad
esp_err_t rtc_gpio_get_drive_capability(gpio_num_t gpio_num, gpio_drive_cap_t *strength)
Get RTC GPIO pad drive capability.
Return
ESP_OK Success
ESP_ERR_INVALID_ARG Parameter error
Parameters
gpio_num: GPIO number, only support output GPIOs
Espressif Systems 265
Submit Document Feedback
Release v4.4

Table of Contents