From 2a49dbbc8acdd601eb4d541b43bcfa6724333785 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 12 Nov 2014 18:38:16 +0100 Subject: uhd: Added endianness type --- host/include/uhd/types/CMakeLists.txt | 1 + host/include/uhd/types/endianness.hpp | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 host/include/uhd/types/endianness.hpp (limited to 'host') diff --git a/host/include/uhd/types/CMakeLists.txt b/host/include/uhd/types/CMakeLists.txt index 334f1b41b..0c6b7bd7a 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 + endianness.hpp io_type.hpp mac_addr.hpp metadata.hpp diff --git a/host/include/uhd/types/endianness.hpp b/host/include/uhd/types/endianness.hpp new file mode 100644 index 000000000..e309de665 --- /dev/null +++ b/host/include/uhd/types/endianness.hpp @@ -0,0 +1,32 @@ +// +// 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 . +// + +#ifndef INCLUDED_UHD_TYPES_ENDIANNESS_HPP +#define INCLUDED_UHD_TYPES_ENDIANNESS_HPP + +#include + +namespace uhd{ + + enum endianness_t { + ENDIANNESS_BIG, + ENDIANNESS_LITTLE + }; + +} //namespace uhd + +#endif /* INCLUDED_UHD_TYPES_ENDIANNESS_HPP */ -- cgit v1.2.3