From b8a6c64d6012ab1ec0b3b843fccec2d990d440a3 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 15 May 2019 10:26:44 -0700 Subject: rfnoc: Add action API - Added action_info class - Allow to send actions from node to node - Allow to post actions into nodes - Allow to set default forwarding policies - Added unit tests --- host/lib/rfnoc/actions.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 host/lib/rfnoc/actions.cpp (limited to 'host/lib/rfnoc/actions.cpp') diff --git a/host/lib/rfnoc/actions.cpp b/host/lib/rfnoc/actions.cpp new file mode 100644 index 000000000..1f5f0f2f7 --- /dev/null +++ b/host/lib/rfnoc/actions.cpp @@ -0,0 +1,21 @@ +// +// Copyright 2019 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#include +#include + +using namespace uhd::rfnoc; + +namespace { + // A static counter, which we use to uniquely label actions + std::atomic action_counter{0}; +} + +action_info::action_info(const std::string& key_) : id(action_counter++), key(key_) +{ + // nop +} + -- cgit v1.2.3