aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-01-19 15:32:01 +0100
committerMartin Braun <martin.braun@ettus.com>2015-01-20 10:16:56 +0100
commitfd2e2156ea5c263bf8c6d098980e4873b55de18e (patch)
treed44e27d2b2babb4dc7142e91447dfa379f3478ee /host
parent39b17fd7c18ad7896823f1d45bbb65e27325e198 (diff)
downloaduhd-fd2e2156ea5c263bf8c6d098980e4873b55de18e.tar.gz
uhd-fd2e2156ea5c263bf8c6d098980e4873b55de18e.tar.bz2
uhd-fd2e2156ea5c263bf8c6d098980e4873b55de18e.zip
uhd: Added direction type
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/types/CMakeLists.txt3
-rw-r--r--host/include/uhd/types/direction.hpp34
2 files changed, 36 insertions, 1 deletions
diff --git a/host/include/uhd/types/CMakeLists.txt b/host/include/uhd/types/CMakeLists.txt
index 0c6b7bd7a..8bb1de381 100644
--- a/host/include/uhd/types/CMakeLists.txt
+++ b/host/include/uhd/types/CMakeLists.txt
@@ -1,5 +1,5 @@
#
-# Copyright 2010-2011 Ettus Research LLC
+# Copyright 2010-2011,2015 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
@@ -21,6 +21,7 @@ UHD_INSTALL(FILES
device_addr.hpp
dict.ipp
dict.hpp
+ direction.hpp
endianness.hpp
io_type.hpp
mac_addr.hpp
diff --git a/host/include/uhd/types/direction.hpp b/host/include/uhd/types/direction.hpp
new file mode 100644
index 000000000..0f257de44
--- /dev/null
+++ b/host/include/uhd/types/direction.hpp
@@ -0,0 +1,34 @@
+//
+// Copyright 2015 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 {
+ //! Receive
+ RX_DIRECTION,
+ //! Transmit
+ TX_DIRECTION,
+ //! Duplex
+ DX_DIRECTION
+ };
+
+} //namespace uhd
+
+#endif /* INCLUDED_UHD_TYPES_DIRECTION_HPP */