Flipper Zero Firmware
Loading...
Searching...
No Matches
dolphin_i.h
1#pragma once
2
3#include <furi.h>
4
5#include <core/pubsub.h>
6
7#include "dolphin.h"
8#include "helpers/dolphin_state.h"
9
10typedef enum {
11 DolphinEventTypeDeed,
12 DolphinEventTypeStats,
13 DolphinEventTypeFlush,
14 DolphinEventTypeLevel,
15} DolphinEventType;
16
17typedef struct {
18 DolphinEventType type;
19 FuriEventFlag* flag;
20 union {
21 DolphinDeed deed;
22 DolphinStats* stats;
23 };
25
26struct Dolphin {
27 DolphinState* state;
28 FuriPubSub* pubsub;
29 FuriMessageQueue* event_queue;
30 FuriEventLoop* event_loop;
31 FuriEventLoopTimer* butthurt_timer;
32 FuriEventLoopTimer* flush_timer;
33 FuriEventLoopTimer* clear_limits_timer;
34};
FuriPubSub.
Definition dolphin_i.h:17
Definition dolphin_i.h:26
Definition dolphin_state.h:19
Definition dolphin.h:16
Definition event_flag.c:11
Definition event_loop_i.h:78
Definition event_loop_timer_i.h:14
Definition message_queue.c:14
Definition pubsub.c:14