aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bladerf/bladerf_common.h
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2014-01-11 08:57:49 +0100
committerDimitri Stolnikov <horiz0n@gmx.net>2014-01-11 08:57:49 +0100
commite68f8505df0c021e1073ae407701bcc93900d679 (patch)
tree95e8ea915a04f0c19686b171ca6e3a1d5b583d33 /lib/bladerf/bladerf_common.h
parent80c4af4f31289daed6f20ee96a605948e3681fc8 (diff)
bladerf: implement DC offset and IQ imbalance correction
This patch has been provided by Brent J.
Diffstat (limited to 'lib/bladerf/bladerf_common.h')
-rw-r--r--lib/bladerf/bladerf_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bladerf/bladerf_common.h b/lib/bladerf/bladerf_common.h
index 41f5028..2507c79 100644
--- a/lib/bladerf/bladerf_common.h
+++ b/lib/bladerf/bladerf_common.h
@@ -43,6 +43,15 @@
/* We currently read/write 1024 samples (pairs of 16-bit signed ints) */
#define BLADERF_SAMPLE_BLOCK_SIZE (1024)
+/*
+ * BladeRF IQ correction defines
+ */
+#define BLADERF_RX_DC_RANGE 63
+#define BLADERF_TX_DC_RANGE 127
+#define BLADERF_GAIN_ZERO 4096
+#define BLADERF_GAIN_RANGE 4096
+#define BLADERF_PHASE_RANGE 2048
+
typedef boost::shared_ptr<struct bladerf> bladerf_sptr;
class bladerf_common