-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdolphinsauce.h
45 lines (34 loc) · 993 Bytes
/
dolphinsauce.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef arha_dolphinsauce
#define arha_dolphinsauce
#include <furi.h>
#include <furi_hal.h>
#include <gui/gui.h>
#include <input/input.h>
#include <stdlib.h>
#include <lib/subghz/receiver.h>
#include <lib/subghz/transmitter.h>
#include <lib/subghz/subghz_file_encoder_worker.h>
#define MARKER_HZ 220*8*2
typedef struct
{
FuriMutex* model_mutex;
FuriMessageQueue* event_queue;
ViewPort* view_port;
Gui* gui;
bool cw_on;
bool txing;
FuriTimer* timer;
uint32_t* active_msg;
uint8_t sos_mode_code;
} AppFSM;
void rf_start_cw();
void rf_stop_cw();
static void update_timer_callback(FuriMessageQueue* event_queue);
AppFSM* app_global;
/* > S <> X >< S < */
// uint32_t sos_msg = 0b10101011101110111010101000000000;
uint32_t sms_msg = 0b10101000111011100010101000000000;
uint32_t sos_msg = 0b10101011101110111010101000000000;
//uint32_t test_msg = 0b10101010111111110011001100001111;
uint8_t test_msg_pos = 0;
#endif