aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_impl.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-07-25 08:08:43 -0700
committerMartin Braun <martin.braun@ettus.com>2019-08-02 11:03:11 -0700
commite2ce13e35d915c2d8b1300fd88745610c17638d1 (patch)
tree90c3656b118cf0698c359b20a93f59341b13fbeb /host/lib/usrp/x300/x300_impl.hpp
parent1210a633aeca082052621629a5643c661d7a7f34 (diff)
downloaduhd-e2ce13e35d915c2d8b1300fd88745610c17638d1.tar.gz
uhd-e2ce13e35d915c2d8b1300fd88745610c17638d1.tar.bz2
uhd-e2ce13e35d915c2d8b1300fd88745610c17638d1.zip
x300: Factor out mb-type specific code
This puts all functions that identify motherboards, distinguishes X310/X300/NI2974, checks MB revs etc. into its own compilation unit.
Diffstat (limited to 'host/lib/usrp/x300/x300_impl.hpp')
-rw-r--r--host/lib/usrp/x300/x300_impl.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/host/lib/usrp/x300/x300_impl.hpp b/host/lib/usrp/x300/x300_impl.hpp
index 8d50f9914..d8bd23592 100644
--- a/host/lib/usrp/x300/x300_impl.hpp
+++ b/host/lib/usrp/x300/x300_impl.hpp
@@ -13,6 +13,7 @@
#include "x300_defaults.hpp"
#include "x300_device_args.hpp"
#include "x300_fw_common.h"
+#include "x300_mboard_type.hpp"
#include "x300_radio_ctrl_impl.hpp"
#include "x300_regs.hpp"
#include <uhd/property_tree.hpp>
@@ -76,11 +77,8 @@ public:
static bool try_to_claim(uhd::wb_iface::sptr iface, long timeout = 2000);
static void release(uhd::wb_iface::sptr iface);
- enum x300_mboard_t { USRP_X300_MB, USRP_X310_MB, USRP_X310_MB_NI_2974, UNKNOWN };
- static x300_mboard_t get_mb_type_from_pcie(
+ static uhd::usrp::x300::x300_mboard_t get_mb_type_from_pcie(
const std::string& resource, const std::string& rpc_port);
- static x300_mboard_t get_mb_type_from_eeprom(
- const uhd::usrp::mboard_eeprom_t& mb_eeprom);
//! Read out the on-board EEPROM, convert to dict, and return
static uhd::usrp::mboard_eeprom_t get_mb_eeprom(uhd::i2c_iface::sptr i2c);