aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_sbx_common.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-06-10 10:59:16 -0700
committerJosh Blum <josh@joshknows.com>2013-06-10 10:59:16 -0700
commit91e0ed6d4d81ec036070b9ccd327fd496399d273 (patch)
tree166c412d423fc296ade49de888e31ab429bc4d53 /host/lib/usrp/dboard/db_sbx_common.hpp
parent49a4929bd32797fe01b441dda0076b6b4f06f686 (diff)
parent2d485dfb940190d33bd4e2e1d263cb98c69cb948 (diff)
downloaduhd-91e0ed6d4d81ec036070b9ccd327fd496399d273.tar.gz
uhd-91e0ed6d4d81ec036070b9ccd327fd496399d273.tar.bz2
uhd-91e0ed6d4d81ec036070b9ccd327fd496399d273.zip
Merge branch 'mergeme/cbx'
Conflicts: host/docs/calibration.rst host/lib/usrp/dboard/db_sbx_common.cpp
Diffstat (limited to 'host/lib/usrp/dboard/db_sbx_common.hpp')
-rw-r--r--host/lib/usrp/dboard/db_sbx_common.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/db_sbx_common.hpp b/host/lib/usrp/dboard/db_sbx_common.hpp
index 2a0e83115..4f3a2eeaa 100644
--- a/host/lib/usrp/dboard/db_sbx_common.hpp
+++ b/host/lib/usrp/dboard/db_sbx_common.hpp
@@ -100,6 +100,7 @@ using namespace boost::assign;
* The SBX dboard constants
**********************************************************************/
static const freq_range_t sbx_freq_range(400e6, 4.4e9);
+static const freq_range_t cbx_freq_range(1200e6, 6.0e9);
static const freq_range_t sbx_tx_lo_2dbm = list_of
(range_t(0.35e9, 0.37e9))
@@ -213,6 +214,30 @@ protected:
};
/*!
+ * CBX daughterboard
+ *
+ * The only driver difference between SBX and CBX is the MAX2870 vs. ADF435x.
+ * There is also no LO filter switching required, but the GPIO is left blank
+ * so we don't worry about it.
+ */
+ class cbx : public sbx_versionx {
+ public:
+ cbx(sbx_xcvr *_self_sbx_xcvr);
+ ~cbx(void);
+
+ double set_lo_freq(dboard_iface::unit_t unit, double target_freq);
+
+ /*! This is the registered instance of the wrapper class, sbx_base. */
+ sbx_xcvr *self_base;
+ };
+
+ /*!
+ * Frequency range of the daughterboard; this is set in the constructor
+ * to correspond either to SBX or CBX.
+ */
+ freq_range_t freq_range;
+
+ /*!
* Handle to the version-specific implementation of the SBX.
*
* Since many of this class's functions are dependent on the version of the