esp_idf_hal::sys

Function esp_timer_get_period

Source
pub unsafe extern "C" fn esp_timer_get_period(
    timer: *mut esp_timer,
    period: *mut u64,
) -> i32
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