USRP Hardware Driver and USRP Manual  Version: 3.14.0.HEAD-0-g6875d061
UHD and USRP Manual
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 #ifndef INCLUDED_GPS_CTRL_HPP
9 #define INCLUDED_GPS_CTRL_HPP
10 
11 #include <uhd/types/sensors.hpp>
12 #include <uhd/types/serial.hpp>
13 #include <boost/function.hpp>
14 #include <boost/shared_ptr.hpp>
15 #include <boost/utility.hpp>
16 #include <vector>
17 
18 namespace uhd {
19 
20 class UHD_API gps_ctrl : boost::noncopyable
21 {
22 public:
23  typedef boost::shared_ptr<gps_ctrl> sptr;
24 
25  virtual ~gps_ctrl(void) = 0;
26 
30  static sptr make(uart_iface::sptr uart);
31 
35  virtual std::vector<std::string> get_sensors(void) = 0;
36 
40  virtual uhd::sensor_value_t get_sensor(std::string key) = 0;
41 
46  virtual bool gps_detected(void) = 0;
47 
48  // TODO: other fun things you can do with a GPS.
49 };
50 
51 } // namespace uhd
52 
53 #endif /* INCLUDED_GPS_CTRL_HPP */
Definition: build_info.hpp:13
Definition: sensors.hpp:29
#define UHD_API
Definition: config.h:68
boost::shared_ptr< gps_ctrl > sptr
Definition: gps_ctrl.hpp:23
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:164
Definition: gps_ctrl.hpp:20