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.

@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