esp_idf_sys

Function esp_timer_is_active

Source
pub unsafe extern "C" fn esp_timer_is_active(
    timer: esp_timer_handle_t,
) -> bool
Expand description

@brief Returns status of a timer, active or not

This function is used to identify if the timer is still active (running) or not.

@param timer timer handle created using esp_timer_create() @return - 1 if timer is still active (running) - 0 if timer is not active