USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-ga1b5c4ae
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 #ifndef INCLUDED_GPS_CTRL_HPP
9 #define INCLUDED_GPS_CTRL_HPP
10 
11 #include <uhd/types/serial.hpp>
12 #include <uhd/types/sensors.hpp>
13 #include <boost/shared_ptr.hpp>
14 #include <boost/utility.hpp>
15 #include <boost/function.hpp>
16 #include <vector>
17 
18 namespace uhd{
19 
20 class UHD_API gps_ctrl : boost::noncopyable{
21 public:
22  typedef boost::shared_ptr<gps_ctrl> sptr;
23 
24  virtual ~gps_ctrl(void) = 0;
25 
29  static sptr make(uart_iface::sptr uart);
30 
34  virtual std::vector<std::string> get_sensors(void) = 0;
35 
39  virtual uhd::sensor_value_t get_sensor(std::string key) = 0;
40 
45  virtual bool gps_detected(void) = 0;
46 
47  //TODO: other fun things you can do with a GPS.
48 
49 };
50 
51 } //namespace uhd
52 
53 #endif /* INCLUDED_GPS_CTRL_HPP */
Definition: build_info.hpp:14
Definition: sensors.hpp:29
#define UHD_API
Definition: config.h:63
boost::shared_ptr< gps_ctrl > sptr
Definition: gps_ctrl.hpp:22
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:186
Definition: gps_ctrl.hpp:20