esp_idf_sys

Function esp_timer_start_once

Source
pub unsafe extern "C" fn esp_timer_start_once(
    timer: esp_timer_handle_t,
    timeout_us: u64,
) -> esp_err_t
Expand description

@brief Start a one-shot timer

Timer represented by timer should not be running when this function is called.

@param timer timer handle created using esp_timer_create() @param timeout_us timer timeout, in microseconds relative to the current moment @return - ESP_OK on success - ESP_ERR_INVALID_ARG if the handle is invalid - ESP_ERR_INVALID_STATE if the timer is already running