USRP Hardware Driver and USRP Manual Version: 4.1.0.3
UHD and USRP Manual
trig_io_mode_iface.hpp
Go to the documentation of this file.
1//
2// Copyright 2021 Ettus Research, a National Instruments Brand
3//
4// SPDX-License-Identifier: GPL-3.0-or-later
5//
6
7#pragma once
8
11#include <memory>
12#include <string>
13
14namespace uhd { namespace features {
15
20{
21public:
22 using sptr = std::shared_ptr<trig_io_mode_iface>;
23
25 {
27 }
28
29 std::string get_feature_name() const
30 {
31 return "Trig IO Mode";
32 }
33
34 virtual ~trig_io_mode_iface() = default;
35
37 virtual void set_trig_io_mode(const uhd::trig_io_mode_t mode) = 0;
38};
39
40}} // namespace uhd::features
Definition: discoverable_feature.hpp:25
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:31
@ TRIG_IO_MODE
Definition: discoverable_feature.hpp:37
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:27
Definition: trig_io_mode_iface.hpp:20
virtual void set_trig_io_mode(const uhd::trig_io_mode_t mode)=0
Set the mode for the trig i/o port.
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition: trig_io_mode_iface.hpp:29
virtual ~trig_io_mode_iface()=default
static discoverable_feature::feature_id_t get_feature_id()
Definition: trig_io_mode_iface.hpp:24
Definition: build_info.hpp:12
trig_io_mode_t
Definition: trig_io_mode.hpp:11