A class for a generic IQ capture device.
More...
#include <Capture.h>
|
| static const std::string | VALID_TYPE [2] = {"RspDuo", "HackRF"} |
| | The valid capture devices. More...
|
| |
A class for a generic IQ capture device.
- Author
- 30hours
◆ Capture()
| Capture::Capture |
( |
std::string |
type, |
|
|
uint32_t |
fs, |
|
|
uint32_t |
fc, |
|
|
std::string |
path |
|
) |
| |
Constructor.
- Parameters
-
| type | The capture device type. |
| fs | Sampling frequency (Hz). |
| fc | Center frequency (Hz). |
| path | Absolute path to IQ save location. |
- Returns
- The object.
◆ process()
| void Capture::process |
( |
IqData * |
buffer1, |
|
|
IqData * |
buffer2 |
|
) |
| |
Implement the capture process.
- Parameters
-
| buffer1 | Buffer for reference samples. |
| buffer2 | Buffer for surveillance samples. |
- Returns
- Void.
◆ set_replay()
| void Capture::set_replay |
( |
bool |
loop, |
|
|
std::string |
file |
|
) |
| |
Set parameters to enable file replay.
- Parameters
-
| loop | True if replay file should loop when complete. |
| file | Absolute path of file to replay. |
- Returns
- Void.
◆ fc
◆ file
| std::string Capture::file |
|
private |
Absolute path of file to replay.
◆ fs
◆ loop
True if replay file should loop when complete.
◆ path
| std::string Capture::path |
Absolute path to IQ save location.
◆ replay
True if file replay is enabled.
◆ saveIq
True if IQ data is saved to file.
◆ type
| std::string Capture::type |
◆ VALID_TYPE
| const std::string Capture::VALID_TYPE = {"RspDuo", "HackRF"} |
|
staticprivate |
The valid capture devices.
The documentation for this class was generated from the following files: