Flipper Zero Firmware
Loading...
Searching...
No Matches
event_flag.h File Reference

Furi Event Flag. More...

#include "base.h"

Go to the source code of this file.

Typedefs

typedef struct FuriEventFlag FuriEventFlag
 

Functions

FuriEventFlagfuri_event_flag_alloc (void)
 Allocate FuriEventFlag.
 
void furi_event_flag_free (FuriEventFlag *instance)
 Deallocate FuriEventFlag.
 
uint32_t furi_event_flag_set (FuriEventFlag *instance, uint32_t flags)
 Set flags.
 
uint32_t furi_event_flag_clear (FuriEventFlag *instance, uint32_t flags)
 Clear flags.
 
uint32_t furi_event_flag_get (FuriEventFlag *instance)
 Get flags.
 
uint32_t furi_event_flag_wait (FuriEventFlag *instance, uint32_t flags, uint32_t options, uint32_t timeout)
 Wait flags.
 

Detailed Description

Furi Event Flag.

Function Documentation

◆ furi_event_flag_alloc()

FuriEventFlag * furi_event_flag_alloc ( void )

Allocate FuriEventFlag.

Returns
pointer to FuriEventFlag

◆ furi_event_flag_clear()

uint32_t furi_event_flag_clear ( FuriEventFlag * instance,
uint32_t flags )

Clear flags.

Parameters
instancepointer to FuriEventFlag
[in]flagsThe flags
Returns
Resulting flags or error (FuriStatus)

◆ furi_event_flag_free()

void furi_event_flag_free ( FuriEventFlag * instance)

Deallocate FuriEventFlag.

Parameters
instancepointer to FuriEventFlag

◆ furi_event_flag_get()

uint32_t furi_event_flag_get ( FuriEventFlag * instance)

Get flags.

Parameters
instancepointer to FuriEventFlag
Returns
Resulting flags

◆ furi_event_flag_set()

uint32_t furi_event_flag_set ( FuriEventFlag * instance,
uint32_t flags )

Set flags.

Parameters
instancepointer to FuriEventFlag
[in]flagsThe flags
Returns
Resulting flags or error (FuriStatus)

◆ furi_event_flag_wait()

uint32_t furi_event_flag_wait ( FuriEventFlag * instance,
uint32_t flags,
uint32_t options,
uint32_t timeout )

Wait flags.

Parameters
instancepointer to FuriEventFlag
[in]flagsThe flags
[in]optionsThe option flags
[in]timeoutThe timeout
Returns
Resulting flags or error (FuriStatus)