esp_idf_sys

Function esp_timer_get_period

Source
pub unsafe extern "C" fn esp_timer_get_period(
    timer: esp_timer_handle_t,
    period: *mut u64,
) -> esp_err_t
Expand description

@brief Get the period of a timer

This function fetches the timeout period of a timer. For a one-shot timer, the timeout period will be 0.

@param timer timer handle created using esp_timer_create() @param period memory to store the timer period value in microseconds @return - ESP_OK on success - ESP_ERR_INVALID_ARG if the arguments are invalid