197typedef void FuriEventLoopObject;
326 furi_event_loop_maybe_unsubscribe(
FuriEventLoop* instance, FuriEventLoopObject*
object) {
void furi_event_loop_subscribe_stream_buffer(FuriEventLoop *instance, FuriStreamBuffer *stream_buffer, FuriEventLoopEvent event, FuriEventLoopEventCallback callback, void *context)
Subscribe to stream buffer events.
Definition event_loop.c:382
void furi_event_loop_subscribe_semaphore(FuriEventLoop *instance, FuriSemaphore *semaphore, FuriEventLoopEvent event, FuriEventLoopEventCallback callback, void *context)
Subscribe to semaphore events.
Definition event_loop.c:394
void furi_event_loop_run(FuriEventLoop *instance)
Continuously poll for events.
Definition event_loop.c:203
void furi_event_loop_subscribe_event_flag(FuriEventLoop *instance, FuriEventFlag *event_flag, FuriEventLoopEvent event, FuriEventLoopEventCallback callback, void *context)
Subscribe to event flag events.
Definition event_loop.c:359
void furi_event_loop_pend_callback(FuriEventLoop *instance, FuriEventLoopPendingCallback callback, void *context)
Call a function when all preceding timer commands are processed.
Definition event_loop.c:288
bool furi_event_loop_is_subscribed(FuriEventLoop *instance, FuriEventLoopObject *object)
Checks if the loop is subscribed to an object of any kind.
Definition event_loop.c:460
void furi_event_loop_unsubscribe(FuriEventLoop *instance, FuriEventLoopObject *object)
Unsubscribe from events (common)
Definition event_loop.c:422
void furi_event_loop_free(FuriEventLoop *instance)
Free Event Loop instance.
Definition event_loop.c:81
void furi_event_loop_stop(FuriEventLoop *instance)
Stop Event Loop instance.
Definition event_loop.c:279
FuriEventLoop * furi_event_loop_alloc(void)
Allocate Event Loop instance.
Definition event_loop.c:62
void furi_event_loop_subscribe_mutex(FuriEventLoop *instance, FuriMutex *mutex, FuriEventLoopEvent event, FuriEventLoopEventCallback callback, void *context)
Subscribe to mutex events.
Definition event_loop.c:406
void furi_event_loop_subscribe_message_queue(FuriEventLoop *instance, FuriMessageQueue *message_queue, FuriEventLoopEvent event, FuriEventLoopEventCallback callback, void *context)
Subscribe to message queue events.
Definition event_loop.c:370
void(* FuriEventLoopPendingCallback)(void *context)
Timer callback type for functions to be called in a deferred manner.
Definition event_loop.h:177
FuriEventLoopEvent
Enumeration of event types, flags and masks.
Definition event_loop.h:35
@ FuriEventLoopEventFlagEdge
Use edge triggered events.
Definition event_loop.h:86
@ FuriEventLoopEventIn
Subscribe to In events.
Definition event_loop.h:45
@ FuriEventLoopEventFlagMask
Special value containing the event flag bits, used internally.
Definition event_loop.h:98
@ FuriEventLoopEventOut
Subscribe to Out events.
Definition event_loop.h:55
@ FuriEventLoopEventFlagOnce
Automatically unsubscribe from events after one time.
Definition event_loop.h:94
@ FuriEventLoopEventMask
Special value containing the event direction bits, used internally.
Definition event_loop.h:59
@ FuriEventLoopEventReserved
Special value to force the enum to 32-bit values.
Definition event_loop.h:102
void(* FuriEventLoopEventCallback)(FuriEventLoopObject *object, void *context)
Callback type for event loop events.
Definition event_loop.h:204
void(* FuriEventLoopTickCallback)(void *context)
Tick callback type.
Definition event_loop.h:147
void furi_event_loop_tick_set(FuriEventLoop *instance, uint32_t interval, FuriEventLoopTickCallback callback, void *context)
Set Event Loop tick callback.
Definition event_loop_tick.c:56
Definition event_flag.c:14
Definition event_loop_i.h:78
Definition message_queue.c:16
Definition semaphore.c:15
Definition stream_buffer.c:14