diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-01-11 08:57:49 +0100 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-01-11 08:57:49 +0100 |
commit | e68f8505df0c021e1073ae407701bcc93900d679 (patch) | |
tree | 95e8ea915a04f0c19686b171ca6e3a1d5b583d33 /lib/bladerf/bladerf_common.h | |
parent | 80c4af4f31289daed6f20ee96a605948e3681fc8 (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.h | 9 |
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 |