[][src]Function esp_idf_sys::esp_sleep_enable_touchpad_wakeup

pub unsafe extern "C" fn esp_sleep_enable_touchpad_wakeup() -> esp_err_t

@brief Enable wakeup by touch sensor

@note In revisions 0 and 1 of the ESP32, touch wakeup source can not be used when RTC_PERIPH power domain is forced to be powered on (ESP_PD_OPTION_ON) or when ext0 wakeup source is used.

@note The FSM mode of the touch button should be configured as the timer trigger mode.

@return - ESP_OK on success - ESP_ERR_NOT_SUPPORTED if additional current by touch (CONFIG_ESP32_RTC_EXTERNAL_CRYSTAL_ADDITIONAL_CURRENT) is enabled. - ESP_ERR_INVALID_STATE if wakeup triggers conflict