USRP Hardware Driver and USRP Manual Version: 4.1.0.1
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
16namespace uhd {
17
19{
20public:
21 typedef std::shared_ptr<gps_ctrl> sptr;
22
23 virtual ~gps_ctrl(void) = 0;
24
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
Definition: gps_ctrl.hpp:19
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
virtual bool gps_detected(void)=0
virtual ~gps_ctrl(void)=0
std::shared_ptr< gps_ctrl > sptr
Definition: gps_ctrl.hpp:21
std::shared_ptr< uart_iface > sptr
Definition: serial.hpp:164
#define UHD_API
Definition: config.h:70
Definition: build_info.hpp:12
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
Definition: sensors.hpp:29