diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2016-01-06 10:03:29 -0800 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2016-01-06 10:03:29 -0800 |
commit | 04a4d6348bff100305bb7481d652c7170b8ff62c (patch) | |
tree | 1ad2dae096d3fd3682dab8c029e4aef0b70ecd81 /host/lib/usrp/n230/n230_resource_manager.hpp | |
parent | 81bbb57c06feaa05406ba86abc237a2e80841226 (diff) | |
download | uhd-04a4d6348bff100305bb7481d652c7170b8ff62c.tar.gz uhd-04a4d6348bff100305bb7481d652c7170b8ff62c.tar.bz2 uhd-04a4d6348bff100305bb7481d652c7170b8ff62c.zip |
n230: Fixed GPSDO detection logic
Diffstat (limited to 'host/lib/usrp/n230/n230_resource_manager.hpp')
-rw-r--r-- | host/lib/usrp/n230/n230_resource_manager.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/n230/n230_resource_manager.hpp b/host/lib/usrp/n230/n230_resource_manager.hpp index 0c01e765a..c98140141 100644 --- a/host/lib/usrp/n230/n230_resource_manager.hpp +++ b/host/lib/usrp/n230/n230_resource_manager.hpp @@ -181,6 +181,10 @@ public: //Methods } //GPSDO control + inline bool is_gpsdo_present() { + return _gps_ctrl.get() and _gps_ctrl->gps_detected(); + } + inline uhd::gps_ctrl::sptr get_gps_ctrl(void) { return _gps_ctrl; } @@ -283,7 +287,7 @@ private: fpga::core_radio_ctrl_reg_t _core_radio_ctrl_reg; fpga::core_misc_reg_t _core_misc_reg; fpga::core_pps_sel_reg_t _core_pps_sel_reg; - fpga::core_radio_status_reg_t _core_status_reg; + fpga::core_status_reg_t _core_status_reg; //Radio peripherals radio_resource_t _radios[fpga::NUM_RADIOS]; |