Loading...
Searching...
No Matches
example_event_loop_event_flags.c File Reference

Example application demonstrating the use of the FuriEventFlag primitive in FuriEventLoop instances. More...

#include <furi.h>
#include <gui/gui.h>
#include <gui/view_port.h>
#include <furi_hal_random.h>

Data Structures

struct  EventLoopEventFlagsApp
 

Macros

#define TAG   "ExampleEventLoopEventFlags"
 
#define EVENT_LOOP_EVENT_FLAGS_MASK
 

Enumerations

enum  EventLoopEventFlags {
  EventLoopEventFlagsOk = (1 << 0) , EventLoopEventFlagsUp = (1 << 1) , EventLoopEventFlagsDown = (1 << 2) , EventLoopEventFlagsLeft = (1 << 3) ,
  EventLoopEventFlagsRight = (1 << 4) , EventLoopEventFlagsBack = (1 << 5) , EventLoopEventFlagsExit = (1 << 6)
}
 

Functions

int32_t example_event_loop_event_flags_app (void *arg)
 

Detailed Description

Example application demonstrating the use of the FuriEventFlag primitive in FuriEventLoop instances.

This application receives keystrokes from the input service and sets the appropriate flags, which are subsequently processed in the event loop

Macro Definition Documentation

◆ EVENT_LOOP_EVENT_FLAGS_MASK

#define EVENT_LOOP_EVENT_FLAGS_MASK
Value:
(EventLoopEventFlagsOk | EventLoopEventFlagsUp | EventLoopEventFlagsDown | \
EventLoopEventFlagsLeft | EventLoopEventFlagsRight | EventLoopEventFlagsBack | \
EventLoopEventFlagsExit)