summaryrefslogtreecommitdiff
path: root/usrp/host/include
diff options
context:
space:
mode:
authorJohnathan Corgan2010-06-21 17:05:37 -0700
committerJohnathan Corgan2010-06-21 17:05:37 -0700
commit76eabccf014dfd1a055f2797179e3a4c0fe21d37 (patch)
tree720ab9bbec480e29050f7dde06a41799d688a382 /usrp/host/include
parent231609db08ccd0fc7bc8bd3282c4309b19e5f596 (diff)
parentf108f96074a7699f87d80dbd1a5bbc7c2170d1db (diff)
downloadgnuradio-76eabccf014dfd1a055f2797179e3a4c0fe21d37.tar.gz
gnuradio-76eabccf014dfd1a055f2797179e3a4c0fe21d37.tar.bz2
gnuradio-76eabccf014dfd1a055f2797179e3a4c0fe21d37.zip
Merge branch 'master' into next
* master: Add RFX2200 to burn-db-eeprom Copy paste for RFX2200 in USRP2 Copy paste for RFX2200 in USRP1
Diffstat (limited to 'usrp/host/include')
-rw-r--r--usrp/host/include/usrp/db_flexrf.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/usrp/host/include/usrp/db_flexrf.h b/usrp/host/include/usrp/db_flexrf.h
index 0c834402d..70a55514e 100644
--- a/usrp/host/include/usrp/db_flexrf.h
+++ b/usrp/host/include/usrp/db_flexrf.h
@@ -138,6 +138,18 @@ protected:
//----------------------------------------------------------------------
+class _2200_common : public _AD4360_common
+{
+ public:
+ _2200_common();
+ ~_2200_common() {}
+
+ double freq_min();
+ double freq_max();
+};
+
+//----------------------------------------------------------------------
+
class _2400_common : public _AD4360_common
{
public:
@@ -212,6 +224,34 @@ public:
//------------------------------------------------------------
+class db_flexrf_2200_tx : public flexrf_base_tx
+{
+ public:
+ db_flexrf_2200_tx(usrp_basic_sptr usrp, int which);
+ ~db_flexrf_2200_tx();
+
+ // Wrapper calls to d_common functions
+ bool _compute_regs(double freq, int &retR, int &retcontrol,
+ int &retN, double &retfreq);
+};
+
+class db_flexrf_2200_rx : public flexrf_base_rx
+{
+public:
+ db_flexrf_2200_rx(usrp_basic_sptr usrp, int which);
+ ~db_flexrf_2200_rx();
+
+ float gain_min();
+ float gain_max();
+ float gain_db_per_step();
+ bool i_and_q_swapped();
+
+ bool _compute_regs(double freq, int &retR, int &retcontrol,
+ int &retN, double &retfreq);
+};
+
+//------------------------------------------------------------
+
class db_flexrf_2400_tx : public flexrf_base_tx
{
public: