Function esp_idf_sys::esp_timer_create

source ยท
pub unsafe extern "C" fn esp_timer_create(
    create_args: *const esp_timer_create_args_t,
    out_handle: *mut esp_timer_handle_t,
) -> esp_err_t
Expand description

@brief Create an esp_timer instance

@note When done using the timer, delete it with esp_timer_delete function.

@param create_args Pointer to a structure with timer creation arguments. Not saved by the library, can be allocated on the stack. @param[out] out_handle Output, pointer to esp_timer_handle_t variable which will hold the created timer handle.

@return - ESP_OK on success - ESP_ERR_INVALID_ARG if some of the create_args are not valid - ESP_ERR_INVALID_STATE if esp_timer library is not initialized yet - ESP_ERR_NO_MEM if memory allocation fails