USRP Hardware Driver and USRP Manual  Version: 4.7.0.0
UHD and USRP Manual
gps_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-2011,2014 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/types/sensors.hpp>
11 #include <uhd/types/serial.hpp>
13 #include <memory>
14 #include <vector>
15 
16 namespace uhd {
17 
19 {
20 public:
21  typedef std::shared_ptr<gps_ctrl> sptr;
22 
23  virtual ~gps_ctrl(void) = 0;
24 
28  static sptr make(uart_iface::sptr uart);
29 
33  virtual std::vector<std::string> get_sensors(void) = 0;
34 
38  virtual uhd::sensor_value_t get_sensor(std::string key) = 0;
39 
44  virtual bool gps_detected(void) = 0;
45 
46  // TODO: other fun things you can do with a GPS.
47 };
48 
49 } // namespace uhd
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
std::shared_ptr< uart_iface > sptr
Definition: serial.hpp:171
Definition: build_info.hpp:12
Definition: sensors.hpp:28
#define UHD_API
Definition: config.h:87
Definition: gps_ctrl.hpp:18
std::shared_ptr< gps_ctrl > sptr
Definition: gps_ctrl.hpp:21