forked from baycom/tfrec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
engine.h
45 lines (36 loc) · 825 Bytes
/
engine.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
/*
tfrec - Receiver for TFA IT+ (and compatible) sensors
(c) 2017 Georg Acher, Deti Fliegl {acher|fliegl}(at)baycom.de
#include <GPL-v2>
*/
#ifndef _INCLUDE_ENGINE_H
#define _INCLUDE_ENGINE_H
#include <unistd.h>
#include <stdlib.h>
#include <string>
using std::string;
#include "sdr.h"
#include "dsp_stuff.h"
#include "fm_demod.h"
class engine {
public:
engine(int device, uint32_t freq, int gain, int filter, fsk_demod *fsk, int dbg, int dmpmode, char *dumpfile);
~engine(void);
void run(int timeout);
void get_properties(string &vendor, string &product, string &serial) {
/* if (s) {
s->get_properties(vendor, product, serial);
}
*/
};
private:
fsk_demod *fsk;
int srate;
int filter_type;
int dbg;
int read_dump;
sdr* s;
int dumpmode;
char *dumpfile;
};
#endif