blah2
A real-time passive radar
Capture.h
Go to the documentation of this file.
1 
6 #ifndef CAPTURE_H
7 #define CAPTURE_H
8 
9 #include <string>
10 #include "data/IqData.h"
11 
12 class Capture
13 {
14 private:
16  static const std::string VALID_TYPE[2];
17 
19  bool replay;
20 
22  bool loop;
23 
25  std::string file;
26 
27 public:
29  std::string type;
30 
32  uint32_t fs;
33 
35  uint32_t fc;
36 
38  bool saveIq;
39 
41  std::string path;
42 
49  Capture(std::string type, uint32_t fs, uint32_t fc, std::string path);
50 
56 
61  void set_replay(bool loop, std::string file);
62 };
63 
64 #endif
IqData * buffer1
Definition: RspDuo.cpp:55
IqData * buffer2
Definition: RspDuo.cpp:56
A class for a generic IQ capture device.
Definition: Capture.h:13
Capture(std::string type, uint32_t fs, uint32_t fc, std::string path)
Constructor.
Definition: Capture.cpp:11
bool saveIq
True if IQ data is saved to file.
Definition: Capture.h:38
uint32_t fs
Sampling frequency (Hz).
Definition: Capture.h:32
std::string path
Absolute path to IQ save location.
Definition: Capture.h:41
void set_replay(bool loop, std::string file)
Set parameters to enable file replay.
Definition: Capture.cpp:74
std::string type
The capture device type.
Definition: Capture.h:29
std::string file
Absolute path of file to replay.
Definition: Capture.h:25
bool replay
True if file replay is enabled.
Definition: Capture.h:19
bool loop
True if replay file should loop when complete.
Definition: Capture.h:22
void process(IqData *buffer1, IqData *buffer2)
Implement the capture process.
Definition: Capture.cpp:20
static const std::string VALID_TYPE[2]
The valid capture devices.
Definition: Capture.h:16
uint32_t fc
Center frequency (Hz).
Definition: Capture.h:35
A class to store IQ data.
Definition: IqData.h:17