aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x400/x400_radio_control.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/x400/x400_radio_control.hpp')
-rw-r--r--host/lib/usrp/x400/x400_radio_control.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/host/lib/usrp/x400/x400_radio_control.hpp b/host/lib/usrp/x400/x400_radio_control.hpp
index 65b37cc2b..8848926c7 100644
--- a/host/lib/usrp/x400/x400_radio_control.hpp
+++ b/host/lib/usrp/x400/x400_radio_control.hpp
@@ -23,6 +23,8 @@
#include <mutex>
#include <string>
#include <vector>
+#include <uhdlib/usrp/cores/gpio_atr_3000.hpp>
+#include "x400_gpio_control.hpp"
namespace uhd { namespace rfnoc {
@@ -55,6 +57,12 @@ public:
uhd::eeprom_map_t get_db_eeprom() override;
+ // GPIO methods
+ std::vector<std::string> get_gpio_banks() const override;
+ uint32_t get_gpio_attr(const std::string& bank, const std::string& attr) override;
+ void set_gpio_attr(
+ const std::string& bank, const std::string& attr, const uint32_t value) override;
+
// Shim calls for every method in rf_control_core
double set_rate(const double rate) override;
std::string get_tx_antenna(const size_t chan) const override;
@@ -171,6 +179,8 @@ private:
uhd::features::adc_self_calibration_iface::sptr _adc_self_calibration;
+ x400::gpio_control::sptr _gpios;
+
class fpga_onload : public uhd::features::fpga_load_notification_iface
{
public: