Generic SDR support

This commit is contained in:
Andreas Eversberg
2017-01-04 14:21:49 +01:00
parent c5cf88ce57
commit b30b61282c
9 changed files with 371 additions and 2 deletions

8
src/common/sdr.h Normal file
View File

@@ -0,0 +1,8 @@
int sdr_init(const char *device_args, double rx_gain, double tx_gain);
void *sdr_open(const char *audiodev, double *tx_frequency, double *rx_frequency, int channels, int samplerate, double bandwidth, double sample_deviation);
void sdr_close(void *inst);
int sdr_write(void *inst, int16_t **samples, int num, int channels);
int sdr_read(void *inst, int16_t **samples, int num, int channels);
int sdr_get_inbuffer(void *inst);