-
Notifications
You must be signed in to change notification settings - Fork 1
/
SoapyRadioberry.cpp
34 lines (25 loc) · 1.04 KB
/
SoapyRadioberry.cpp
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
#include <SoapySDR/Device.hpp>
#include <SoapySDR/Registry.hpp>
#include "SoapyRadioberry.hpp"
/***********************************************************************
* Find available devices
**********************************************************************/
SoapySDR::KwargsList findMyRadioberry(const SoapySDR::Kwargs &args)
{
SoapySDR::Kwargs options;
static std::vector<SoapySDR::Kwargs> results;
options["driver"] = "radioberry";
results.push_back(options);
return results;
}
/***********************************************************************
* Make device instance
**********************************************************************/
SoapySDR::Device *makeMyRadioberry(const SoapySDR::Kwargs &args)
{
return new SoapyRadioberry(args);
}
/***********************************************************************
* Registration
**********************************************************************/
static SoapySDR::Registry registerRadioberry("radioberry", &findMyRadioberry, &makeMyRadioberry, SOAPY_SDR_ABI_VERSION);