Function esp_idf_svc::hal::sys::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.
@note The timeout period is the time interval with which a timer restarts after expiry. For one-shot timers, the period is 0 as there is no periodicity associated with such timers.
@param timer timer handle allocated 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