USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
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/sensors.hpp>
12#include <uhd/types/serial.hpp>
14#include <boost/shared_ptr.hpp>
15#include <vector>
16
17namespace uhd {
18
20{
21public:
22 typedef boost::shared_ptr<gps_ctrl> sptr;
23
24 virtual ~gps_ctrl(void) = 0;
25
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} // namespace uhd
51
52#endif /* INCLUDED_GPS_CTRL_HPP */
Definition: gps_ctrl.hpp:20
static sptr make(uart_iface::sptr uart)
virtual std::vector< std::string > get_sensors(void)=0
virtual uhd::sensor_value_t get_sensor(std::string key)=0
boost::shared_ptr< gps_ctrl > sptr
Definition: gps_ctrl.hpp:22
virtual bool gps_detected(void)=0
virtual ~gps_ctrl(void)=0
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:165
#define UHD_API
Definition: config.h:68
Definition: build_info.hpp:13
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
Definition: sensors.hpp:30