EasyManua.ls Logo

Espressif ESP32-S2 - Page 274

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
GPIO_PULLUP_ENABLE = 0x1
Enable GPIO pull-up resistor
enum gpio_pulldown_t
Values:
GPIO_PULLDOWN_DISABLE = 0x0
Disable GPIO pull-down resistor
GPIO_PULLDOWN_ENABLE = 0x1
Enable GPIO pull-down resistor
enum gpio_pull_mode_t
Values:
GPIO_PULLUP_ONLY
Pad pull up
GPIO_PULLDOWN_ONLY
Pad pull down
GPIO_PULLUP_PULLDOWN
Pad pull up + pull down
GPIO_FLOATING
Pad floating
enum gpio_drive_cap_t
Values:
GPIO_DRIVE_CAP_0 = 0
Pad drive capability: weak
GPIO_DRIVE_CAP_1 = 1
Pad drive capability: stronger
GPIO_DRIVE_CAP_2 = 2
Pad drive capability: medium
GPIO_DRIVE_CAP_DEFAULT = 2
Pad drive capability: medium
GPIO_DRIVE_CAP_3 = 3
Pad drive capability: strongest
GPIO_DRIVE_CAP_MAX
API Reference - RTC GPIO
Header File
components/driver/include/driver/rtc_io.h
Functions
static bool rtc_gpio_is_valid_gpio(gpio_num_t gpio_num)
Determine if the specified GPIO is a valid RTC GPIO.
Return true if GPIO is valid for RTC GPIO use. false otherwise.
Parameters
gpio_num: GPIO number
static int rtc_io_number_get(gpio_num_t gpio_num)
Get RTC IO index number by gpio number.
Return >=0: Index of rtcio. -1 : The gpio is not rtcio.
Parameters
gpio_num: GPIO number
Espressif Systems 263
Submit Document Feedback
Release v4.4

Table of Contents