Type Alias esp_idf_sys::gptimer_alarm_cb_t

source ·
pub type gptimer_alarm_cb_t = Option<unsafe extern "C" fn(timer: gptimer_handle_t, edata: *const gptimer_alarm_event_data_t, user_ctx: *mut c_void) -> bool>;
Expand description

@brief Timer alarm callback prototype

@param[in] timer Timer handle created by gptimer_new_timer @param[in] edata Alarm event data, fed by driver @param[in] user_ctx User data, passed from gptimer_register_event_callbacks @return Whether a high priority task has been waken up by this function

Aliased Type§

enum gptimer_alarm_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *mut gptimer_t, _: *const gptimer_alarm_event_data_t, _: *mut c_void) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut gptimer_t, _: *const gptimer_alarm_event_data_t, _: *mut c_void) -> bool)

Some value of type T.