USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
gps_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-2011,2014 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_GPS_CTRL_HPP
8 #define INCLUDED_GPS_CTRL_HPP
9 
10 #include <uhd/types/serial.hpp>
11 #include <uhd/types/sensors.hpp>
12 #include <boost/shared_ptr.hpp>
13 #include <boost/utility.hpp>
14 #include <boost/function.hpp>
15 #include <vector>
16 
17 namespace uhd{
18 
19 class UHD_API gps_ctrl : boost::noncopyable{
20 public:
21  typedef boost::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 
50 } //namespace uhd
51 
52 #endif /* INCLUDED_GPS_CTRL_HPP */
Definition: build_info.hpp:14
Definition: sensors.hpp:28
#define UHD_API
Definition: config.h:62
boost::shared_ptr< gps_ctrl > sptr
Definition: gps_ctrl.hpp:21
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:185
Definition: gps_ctrl.hpp:19