USRP Hardware Driver and USRP Manual  Version: 4.9.0.0
UHD and USRP Manual
gps_iface.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2025 Ettus Research, a National Instruments Brand
3 //
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 #pragma once
8 
9 #include <uhd/config.hpp>
11 #include <uhd/types/sensors.hpp>
12 #include <memory>
13 #include <string>
14 #include <vector>
15 
16 namespace uhd { namespace features {
17 
22 {
23 public:
24  using sptr = std::shared_ptr<gps_iface>;
25 
27  {
29  }
30 
31  std::string get_feature_name() const
32  {
33  return "GPS Interface";
34  }
35 
36  virtual ~gps_iface() = default;
37 
40  virtual std::vector<std::string> get_sensors(void) = 0;
41 
47  virtual uhd::sensor_value_t get_sensor(const std::string& key) = 0;
48 
67  virtual std::string send_cmd(const std::string& cmd) = 0;
68 };
69 
70 }} // namespace uhd::features
discoverable_feature.hpp
sensors.hpp
uhd::features::discoverable_feature::GPS
@ GPS
Definition: discoverable_feature.hpp:42
config.hpp
uhd::features::gps_iface
Definition: gps_iface.hpp:21
UHD_API
#define UHD_API
Definition: config.h:87
uhd::features::gps_iface::get_feature_name
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition: gps_iface.hpp:31
uhd::features::discoverable_feature::feature_id_t
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:32
uhd
Definition: build_info.hpp:12
uhd::features::discoverable_feature
Definition: discoverable_feature.hpp:25
uhd::features::discoverable_feature::sptr
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:28
uhd::features::gps_iface::get_feature_id
static discoverable_feature::feature_id_t get_feature_id()
Definition: gps_iface.hpp:26
uhd::sensor_value_t
Definition: sensors.hpp:28