Loading...
Searching...
No Matches
trig_io_mode_iface.hpp
Go to the documentation of this file.
//
// Copyright 2021 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/trig_io_mode.hpp>
#include <memory>
#include <string>
namespace uhd { namespace features {
class UHD_API trig_io_mode_iface : public discoverable_feature
{
public:
using sptr = std::shared_ptr<trig_io_mode_iface>;
static discoverable_feature::feature_id_t get_feature_id()
{
return discoverable_feature::TRIG_IO_MODE;
}
std::string get_feature_name() const
{
return "Trig IO Mode";
}
virtual ~trig_io_mode_iface() = default;
virtual void set_trig_io_mode(const uhd::trig_io_mode_t mode) = 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::TRIG_IO_MODE
@ TRIG_IO_MODE
Definition discoverable_feature.hpp:38
uhd::features::trig_io_mode_iface
Definition trig_io_mode_iface.hpp:21
uhd::features::trig_io_mode_iface::set_trig_io_mode
virtual void set_trig_io_mode(const uhd::trig_io_mode_t mode)=0
Set the mode for the trig i/o port.
uhd::features::trig_io_mode_iface::get_feature_name
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition trig_io_mode_iface.hpp:30
uhd::features::trig_io_mode_iface::~trig_io_mode_iface
virtual ~trig_io_mode_iface()=default
uhd::features::trig_io_mode_iface::sptr
std::shared_ptr< trig_io_mode_iface > sptr
Definition trig_io_mode_iface.hpp:23
uhd::features::trig_io_mode_iface::get_feature_id
static discoverable_feature::feature_id_t get_feature_id()
Definition trig_io_mode_iface.hpp:25
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
uhd::trig_io_mode_t
trig_io_mode_t
Definition trig_io_mode.hpp:11
trig_io_mode.hpp