USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-2+b1
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
>
13
#include <
uhd/utils/noncopyable.hpp
>
14
#include <boost/shared_ptr.hpp>
15
#include <vector>
16
17
namespace
uhd
{
18
19
class
UHD_API
gps_ctrl
:
uhd::noncopyable
20
{
21
public
:
22
typedef
boost::shared_ptr<gps_ctrl>
sptr
;
23
24
virtual
~
gps_ctrl
(
void
) = 0;
25
29
static
sptr
make(
uart_iface::sptr
uart);
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 */
sensors.hpp
UHD_API
#define UHD_API
Definition:
config.h:68
noncopyable.hpp
uhd::gps_ctrl::sptr
boost::shared_ptr< gps_ctrl > sptr
Definition:
gps_ctrl.hpp:22
uhd
Definition:
build_info.hpp:13
uhd::gps_ctrl
Definition:
gps_ctrl.hpp:19
serial.hpp
uhd::noncopyable
boost::noncopyable noncopyable
Definition:
noncopyable.hpp:46
uhd::uart_iface::sptr
boost::shared_ptr< uart_iface > sptr
Definition:
serial.hpp:165
uhd::sensor_value_t
Definition:
sensors.hpp:29
include
uhd
usrp
gps_ctrl.hpp
Generated by
1.8.16