Function esp_idf_svc::hal::sys::esp_task_wdt_status

source ยท
pub unsafe extern "C" fn esp_task_wdt_status(
    task_handle: *mut tskTaskControlBlock,
) -> i32
Expand description

@brief Query whether a task is subscribed to the Task Watchdog Timer (TWDT)

This function will query whether a task is currently subscribed to the TWDT, or whether the TWDT is initialized.

@param[in] task_handle Handle of the task. Input NULL to query the current running task. @return:

  • ESP_OK: The task is currently subscribed to the TWDT
  • ESP_ERR_NOT_FOUND: The task is not subscribed
  • ESP_ERR_INVALID_STATE: TWDT was never initialized