furi_event_loop_tick_set

Function furi_event_loop_tick_set 

Source
pub unsafe extern "C" fn furi_event_loop_tick_set(
    instance: *mut FuriEventLoop,
    interval: u32,
    callback: FuriEventLoopTickCallback,
    context: *mut c_void,
)
Expand description

Set Event Loop tick callback

Tick callback is called periodically after specified inactivity time. It acts like a low-priority timer: it will only fire if there is time left after processing the synchronization primitives and the regular timers. Therefore, it is not monotonic: ticks will be skipped if the event loop is busy.

ยงArguments

  • instance - The Event Loop instance
  • interval (direction in) - The tick interval
  • callback (direction in) - The callback to call
  • context - The context for callback