Function esp_idf_sys::rtc_gpio_set_direction

source ยท
pub unsafe extern "C" fn rtc_gpio_set_direction(
    gpio_num: gpio_num_t,
    mode: rtc_gpio_mode_t,
) -> esp_err_t
Expand description

@brief RTC GPIO set direction

Configure RTC GPIO direction, such as output only, input only, output and input.

@param gpio_num GPIO number (e.g. GPIO_NUM_12) @param mode GPIO direction

@return - ESP_OK Success - ESP_ERR_INVALID_ARG GPIO is not an RTC IO