Furi Event Flag.
More...
#include "base.h"
Go to the source code of this file.
|
typedef struct FuriEventFlag | FuriEventFlag |
| Opaque event flag type.
|
|
◆ furi_event_flag_alloc()
Allocate FuriEventFlag.
- Returns
- pointer to FuriEventFlag
◆ furi_event_flag_clear()
uint32_t furi_event_flag_clear |
( |
FuriEventFlag * | instance, |
|
|
uint32_t | flags ) |
Clear flags.
- Parameters
-
| instance | pointer to FuriEventFlag |
[in] | flags | The flags |
- Returns
- Resulting flags or error (FuriStatus)
◆ furi_event_flag_free()
Deallocate FuriEventFlag.
- Parameters
-
instance | pointer to FuriEventFlag |
◆ furi_event_flag_get()
Get flags.
- Parameters
-
instance | pointer to FuriEventFlag |
- Returns
- Resulting flags
◆ furi_event_flag_set()
uint32_t furi_event_flag_set |
( |
FuriEventFlag * | instance, |
|
|
uint32_t | flags ) |
Set flags.
- Warning
- result of this function can be flags that you've just asked to set or not if someone was waiting for them and asked to clear it. It is highly recommended to read this function and xEventGroupSetBits source code.
- Parameters
-
| instance | pointer to FuriEventFlag |
[in] | flags | The flags to set |
- Returns
- Resulting flags(see warning) 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
-
| instance | pointer to FuriEventFlag |
[in] | flags | The flags |
[in] | options | The option flags |
[in] | timeout | The timeout |
- Returns
- Resulting flags or error (FuriStatus)