Function flipperzero_sys::furi_event_loop_timer_alloc

source ·
pub unsafe extern "C" fn furi_event_loop_timer_alloc(
    instance: *mut FuriEventLoop,
    callback: FuriEventLoopTimerCallback,
    type_: FuriEventLoopTimerType,
    context: *mut c_void,
) -> *mut FuriEventLoopTimer
Expand description

Create a new event loop timer instance.

§Arguments

  • instance (direction in, out) - pointer to the current FuriEventLoop instance
  • callback (direction in) - pointer to the callback function to be executed upon timer timeout
  • type (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