| USRP Hardware Driver and USRP Manual Version: 4.8.0.makepkg-0-g308126a4 UHD and USRP Manual |

Loading...
Searching...
No Matches
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>
12#include <uhd/utils/noncopyable.hpp>
13#include <memory>
14#include <vector>
15
16 namespace uhd {
17
18 class UHD_API gps_ctrl : uhd::noncopyable
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
uhd::gps_ctrl
Definition gps_ctrl.hpp:19
uhd::gps_ctrl::make
static sptr make(uart_iface::sptr uart)
uhd::gps_ctrl::get_sensors
virtual std::vector< std::string > get_sensors(void)=0
uhd::gps_ctrl::get_sensor
virtual uhd::sensor_value_t get_sensor(std::string key)=0
uhd::gps_ctrl::gps_detected
virtual bool gps_detected(void)=0
uhd::gps_ctrl::~gps_ctrl
virtual ~gps_ctrl(void)=0
uhd::gps_ctrl::sptr
std::shared_ptr< gps_ctrl > sptr
Definition gps_ctrl.hpp:21
uhd::uart_iface::sptr
std::shared_ptr< uart_iface > sptr
Definition serial.hpp:172
UHD_API
#define UHD_API
Definition config.h:87
uhd
Definition build_info.hpp:12
uhd::noncopyable
boost::noncopyable noncopyable
Definition noncopyable.hpp:45
noncopyable.hpp
sensors.hpp
serial.hpp
uhd::sensor_value_t
Definition sensors.hpp:29