Add a bladeRF SDR type.

This commit is contained in:
Oliver Jowett 2017-01-27 17:44:42 +00:00
parent 234beb0bc4
commit cf9e3005e8
5 changed files with 526 additions and 2 deletions

8
sdr.c
View file

@ -2,11 +2,15 @@
#include "sdr.h"
#define ENABLE_RTLSDR
#define ENABLE_BLADERF
#include "sdr_ifile.h"
#ifdef ENABLE_RTLSDR
# include "sdr_rtlsdr.h"
#endif
#ifdef ENABLE_BLADERF
# include "sdr_bladerf.h"
#endif
typedef struct {
const char *name;
@ -61,6 +65,10 @@ static sdr_handler sdr_handlers[] = {
{ "rtlsdr", SDR_RTLSDR, rtlsdrInitConfig, rtlsdrShowHelp, rtlsdrHandleOption, rtlsdrOpen, rtlsdrRun, rtlsdrClose },
#endif
#ifdef ENABLE_BLADERF
{ "bladerf", SDR_BLADERF, bladeRFInitConfig, bladeRFShowHelp, bladeRFHandleOption, bladeRFOpen, bladeRFRun, bladeRFClose },
#endif
{ "ifile", SDR_IFILE, ifileInitConfig, ifileShowHelp, ifileHandleOption, ifileOpen, ifileRun, ifileClose },
{ "none", SDR_NONE, noInitConfig, noShowHelp, noHandleOption, noOpen, noRun, noClose },