aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-12-12 18:19:02 +0100
committerMartin Braun <martin.braun@ettus.com>2014-12-12 18:19:50 +0100
commitc7796ea9714d1781df3acb4cf2283c0266babf13 (patch)
tree29175e43c8cedfb29dd76aa803d0d300e3791964 /host
parent82ca8a921cae477275fdcda8df87a76784587251 (diff)
downloaduhd-c7796ea9714d1781df3acb4cf2283c0266babf13.tar.gz
uhd-c7796ea9714d1781df3acb4cf2283c0266babf13.tar.bz2
uhd-c7796ea9714d1781df3acb4cf2283c0266babf13.zip
uhd: Added direction_t for RX & TX
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/types/CMakeLists.txt1
-rw-r--r--host/include/uhd/types/direction.hpp27
2 files changed, 28 insertions, 0 deletions
diff --git a/host/include/uhd/types/CMakeLists.txt b/host/include/uhd/types/CMakeLists.txt
index 66b8662a1..444ff71ae 100644
--- a/host/include/uhd/types/CMakeLists.txt
+++ b/host/include/uhd/types/CMakeLists.txt
@@ -21,6 +21,7 @@ UHD_INSTALL(FILES
device_addr.hpp
dict.ipp
dict.hpp
+ direction.hpp
io_type.hpp
mac_addr.hpp
metadata.hpp
diff --git a/host/include/uhd/types/direction.hpp b/host/include/uhd/types/direction.hpp
new file mode 100644
index 000000000..400e7e0d4
--- /dev/null
+++ b/host/include/uhd/types/direction.hpp
@@ -0,0 +1,27 @@
+//
+// Copyright 2014 Ettus Research LLC
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#ifndef INCLUDED_UHD_TYPES_DIRECTION_HPP
+#define INCLUDED_UHD_TYPES_DIRECTION_HPP
+
+namespace uhd {
+
+ enum direction_t { RX, TX };
+
+} //namespace uhd
+
+#endif /* INCLUDED_UHD_TYPES_DIRECTION_HPP */