pub type FuriEventLoopTimerCallback = Option<unsafe extern "C" fn(context: *mut c_void)>;Expand description
Timer callback type for functions to be called when a timer expires.
In the timer callback, it is ALLOWED:
- To start, stop, or restart an existing timer,
- To create new timers using furi_event_loop_timer_alloc(),
- To delete timers using furi_event_loop_timer_free().
§Arguments
context(direction in, out) - pointer to a user-specific object that was provided during timer creation
Aliased Type§
pub enum FuriEventLoopTimerCallback {
None,
Some(unsafe extern "C" fn(*mut c_void)),
}