pub unsafe extern "C" fn furi_event_loop_timer_alloc(
instance: *mut FuriEventLoop,
callback: FuriEventLoopTimerCallback,
type_: FuriEventLoopTimerType,
context: *mut c_void,
) -> *mut FuriEventLoopTimerExpand description
Create a new event loop timer instance.
§Arguments
instance(direction in, out) - pointer to the current FuriEventLoop instancecallback(direction in) - pointer to the callback function to be executed upon timer timeouttype(direction in) - timer type value to determine its behavior (single-shot or periodic)context(direction in, out) - pointer to a user-specific object (will be passed to the callback)
§Returns
pointer to the created timer instance