UHD
003.004.002-27-stable
|
00001 //---------------------------------------------------------------------- 00002 //-- deprecated interfaces below, to be removed when the API is changed 00003 //---------------------------------------------------------------------- 00004 00005 // 00006 // Copyright 2010 Ettus Research LLC 00007 // 00008 // This program is free software: you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation, either version 3 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 // 00021 00022 #ifndef INCLUDED_UHD_TYPES_OTW_TYPE_HPP 00023 #define INCLUDED_UHD_TYPES_OTW_TYPE_HPP 00024 00025 #include <uhd/config.hpp> 00026 00027 namespace uhd{ 00028 00038 struct UHD_API otw_type_t{ 00039 00043 size_t width; //in bits 00044 00050 size_t shift; //in bits 00051 00055 enum /*bo_t*/ { 00056 BO_NATIVE = int('='), 00057 BO_LITTLE_ENDIAN = int('<'), 00058 BO_BIG_ENDIAN = int('>'), 00059 BO_NOT_APPLICABLE = int('|') 00060 } byteorder; 00061 00066 size_t get_sample_size(void) const; 00067 00068 otw_type_t(void); 00069 }; 00070 00071 } //namespace uhd 00072 00073 #endif /* INCLUDED_UHD_TYPES_OTW_TYPE_HPP */ 00074 00075 #include <uhd/types/io_type.hpp> //wish it was in here 00076 #include <uhd/types/clock_config.hpp> //wish it was in here