Flipper Zero Firmware
Loading...
Searching...
No Matches
notification.h
1#pragma once
2#include "stdint.h"
3#include "stdbool.h"
4#include <furi_hal_resources.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define RECORD_NOTIFICATION "notification"
11
12typedef struct NotificationApp NotificationApp;
13typedef struct {
14 float frequency;
15 float volume;
17
18typedef struct {
19 uint8_t value;
21
22typedef struct {
23 bool on;
25
26typedef struct {
27 uint32_t length;
29
30typedef struct {
31 float speaker_volume;
32 bool vibro;
33 float display_brightness;
35
36typedef struct {
37 uint16_t on_time;
38 uint16_t period;
39 Light color;
41
50
51typedef enum {
52 NotificationMessageTypeVibro,
53
54 NotificationMessageTypeSoundOn,
55 NotificationMessageTypeSoundOff,
56
57 NotificationMessageTypeLedRed,
58 NotificationMessageTypeLedGreen,
59 NotificationMessageTypeLedBlue,
60
61 NotificationMessageTypeLedBlinkStart,
62 NotificationMessageTypeLedBlinkStop,
63 NotificationMessageTypeLedBlinkColor,
64
65 NotificationMessageTypeDelay,
66
67 NotificationMessageTypeLedDisplayBacklight,
68 NotificationMessageTypeLedDisplayBacklightEnforceOn,
69 NotificationMessageTypeLedDisplayBacklightEnforceAuto,
70
71 NotificationMessageTypeDoNotReset,
72
73 NotificationMessageTypeForceSpeakerVolumeSetting,
74 NotificationMessageTypeForceVibroSetting,
75 NotificationMessageTypeForceDisplayBrightnessSetting,
76
77 NotificationMessageTypeLedBrightnessSettingApply,
78
79 NotificationMessageTypeLcdContrastUpdate,
80} NotificationMessageType;
81
82typedef struct {
83 NotificationMessageType type;
86
87typedef const NotificationMessage* NotificationSequence[];
88
89void notification_message(NotificationApp* app, const NotificationSequence* sequence);
90void notification_message_block(NotificationApp* app, const NotificationSequence* sequence);
91
98void notification_internal_message(NotificationApp* app, const NotificationSequence* sequence);
99
106void notification_internal_message_block(
107 NotificationApp* app,
108 const NotificationSequence* sequence);
109
110#ifdef __cplusplus
111}
112#endif
Definition notification_app.h:49
Definition notification.h:26
Definition notification.h:30
Definition notification.h:18
Definition notification.h:13
Definition notification.h:22
Definition notification.h:82
Definition notification.h:42