-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathjammer_app.h
42 lines (38 loc) · 965 Bytes
/
jammer_app.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
#pragma once
#include <gui/gui.h>
#include <furi.h>
#include <furi_hal.h>
#include <lib/subghz/subghz_tx_rx_worker.h>
#include <stdint.h>
typedef struct {
Gui* gui;
ViewPort* view_port;
FuriMessageQueue* event_queue;
uint32_t frequency;
uint8_t cursor_position;
bool running;
const SubGhzDevice* device;
SubGhzTxRxWorker* subghz_txrx;
FuriThread* tx_thread;
bool tx_running;
int jamming_mode;
} JammerApp;
typedef enum {
JammerModeOok650Async,
JammerMode2FSKDev238Async,
JammerMode2FSKDev476Async,
JammerModeMSK99_97KbAsync,
JammerModeGFSK9_99KbAsync,
JammerModeBruteforce,
JammerModeSineWave,
JammerModeSquareWave,
JammerModeSawtoothWave,
JammerModeWhiteNoise,
JammerModeTriangleWave,
JammerModeChirp,
JammerModeGaussianNoise,
JammerModeBurst,
} JammerMode;
JammerApp* jammer_app_alloc(void);
void jammer_app_free(JammerApp* app);
int32_t jammer_app(void* p);