USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
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
sensors.hpp
UHD_API
#define UHD_API
Definition: config.h:87
noncopyable.hpp
uhd::uart_iface::sptr
std::shared_ptr< uart_iface > sptr
Definition: serial.hpp:171
uhd::gps_ctrl::sptr
std::shared_ptr< gps_ctrl > sptr
Definition: gps_ctrl.hpp:21
uhd
Definition: build_info.hpp:12
uhd::gps_ctrl
Definition: gps_ctrl.hpp:18
serial.hpp
uhd::noncopyable
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
uhd::sensor_value_t
Definition: sensors.hpp:28