aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/rfnoc/device_id.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc/device_id.hpp')
-rw-r--r--host/lib/include/uhdlib/rfnoc/device_id.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/device_id.hpp b/host/lib/include/uhdlib/rfnoc/device_id.hpp
new file mode 100644
index 000000000..d4cecc840
--- /dev/null
+++ b/host/lib/include/uhdlib/rfnoc/device_id.hpp
@@ -0,0 +1,22 @@
+//
+// Copyright 2019 Ettus Research, a National Instruments Brand
+//
+// SPDX-License-Identifier: GPL-3.0-or-later
+//
+
+#ifndef INCLUDED_LIBUHD_DEVICE_ID_HPP
+#define INCLUDED_LIBUHD_DEVICE_ID_HPP
+
+#include <uhdlib/rfnoc/rfnoc_common.hpp>
+
+namespace uhd { namespace rfnoc {
+
+//! Return a new, unique device ID.
+//
+// This function will never return the same device ID twice.
+device_id_t allocate_device_id();
+
+}} /* namespace uhd::rfnoc */
+
+#endif /* INCLUDED_LIBUHD_DEVICE_ID_HPP */
+