aboutsummaryrefslogtreecommitdiffstats
path: root/src/libsdr/sdr.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-11-17 22:51:18 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-12-03 08:45:45 +0100
commit1650cc5ad2eba4fb8857ffc920170ae0f9f1a18d (patch)
tree8af7057e2205de7548c70998c46e5ede8eabbad4 /src/libsdr/sdr.h
parent45a5568f7032b11953d6ac4321970d5780eaf613 (diff)
Restructure: Move sdr from common code to 'libsdr'
Diffstat (limited to 'src/libsdr/sdr.h')
-rw-r--r--src/libsdr/sdr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsdr/sdr.h b/src/libsdr/sdr.h
new file mode 100644
index 0000000..360f424
--- /dev/null
+++ b/src/libsdr/sdr.h
@@ -0,0 +1,8 @@
+
+int sdr_start(void *inst);
+void *sdr_open(const char *audiodev, double *tx_frequency, double *rx_frequency, int channels, double paging_frequency, int samplerate, int latspl, double bandwidth, double sample_deviation);
+void sdr_close(void *inst);
+int sdr_write(void *inst, sample_t **samples, uint8_t **power, int num, enum paging_signal *paging_signal, int *on, int channels);
+int sdr_read(void *inst, sample_t **samples, int num, int channels, double *rf_level_db);
+int sdr_get_tosend(void *inst, int latspl);
+