pub unsafe extern "C" fn gptimer_get_captured_count(
    timer: gptimer_handle_t,
    value: *mut u64
) -> esp_err_t
Expand description

@brief Get GPTimer captured count value

@note The capture action can be issued either by ETM event or by software (see also gptimer_get_raw_count). @note This function is allowed to run within ISR context @note If CONFIG_GPTIMER_CTRL_FUNC_IN_IRAM is enabled, this function will be placed in the IRAM by linker, makes it possible to execute even when the Flash Cache is disabled.

@param[in] timer Timer handle created by gptimer_new_timer @param[out] value Returned captured count value @return - ESP_OK: Get GPTimer captured count value successfully - ESP_ERR_INVALID_ARG: Get GPTimer captured count value failed because of invalid argument - ESP_FAIL: Get GPTimer captured count value failed because of other error