Loading...
Searching...
No Matches
gps_iface.hpp
Go to the documentation of this file.
//
// Copyright 2025 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#include <uhd/features/discoverable_feature.hpp>
#include <uhd/types/sensors.hpp>
#include <memory>
#include <string>
#include <vector>
namespace uhd { namespace features {
class UHD_API gps_iface : public discoverable_feature
{
public:
using sptr = std::shared_ptr<gps_iface>;
static discoverable_feature::feature_id_t get_feature_id()
{
return discoverable_feature::GPS;
}
std::string get_feature_name() const
{
return "GPS Interface";
}
virtual ~gps_iface() = default;
virtual std::vector<std::string> get_sensors(void) = 0;
virtual uhd::sensor_value_t get_sensor(const std::string& key) = 0;
virtual std::string send_cmd(const std::string& cmd) = 0;
};
}} // namespace uhd::features
uhd::features::discoverable_feature
Definition discoverable_feature.hpp:26
uhd::features::discoverable_feature::feature_id_t
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition discoverable_feature.hpp:32
uhd::features::discoverable_feature::GPS
@ GPS
Definition discoverable_feature.hpp:42
uhd::features::gps_iface
Definition gps_iface.hpp:22
uhd::features::gps_iface::get_sensor
virtual uhd::sensor_value_t get_sensor(const std::string &key)=0
uhd::features::gps_iface::get_feature_id
static discoverable_feature::feature_id_t get_feature_id()
Definition gps_iface.hpp:26
uhd::features::gps_iface::get_sensors
virtual std::vector< std::string > get_sensors(void)=0
uhd::features::gps_iface::send_cmd
virtual std::string send_cmd(const std::string &cmd)=0
uhd::features::gps_iface::get_feature_name
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition gps_iface.hpp:31
uhd::features::gps_iface::~gps_iface
virtual ~gps_iface()=default
uhd::features::gps_iface::sptr
std::shared_ptr< gps_iface > sptr
Definition gps_iface.hpp:24
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
discoverable_feature.hpp
uhd::features
Definition adc_self_calibration_iface.hpp:16
uhd
Definition build_info.hpp:12
sensors.hpp
uhd::sensor_value_t
Definition sensors.hpp:29