USRP Hardware Driver and USRP Manual  Version: 003.010.002.HEAD-0-gbd6e21dc
UHD and USRP Manual
deprecated.hpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------
2 //-- deprecated interfaces below, to be removed when the API is changed
3 //----------------------------------------------------------------------
4 
5 //
6 // Copyright 2010 Ettus Research LLC
7 //
8 // This program is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or
11 // (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 //
21 
22 #ifndef INCLUDED_UHD_TYPES_OTW_TYPE_HPP
23 #define INCLUDED_UHD_TYPES_OTW_TYPE_HPP
24 
25 #include <uhd/config.hpp>
26 #include <cstddef>
27 
28 namespace uhd{
29 
40 
44  size_t width; //in bits
45 
51  size_t shift; //in bits
52 
56  enum /*bo_t*/ {
57  BO_NATIVE = int('='),
58  BO_LITTLE_ENDIAN = int('<'),
59  BO_BIG_ENDIAN = int('>'),
60  BO_NOT_APPLICABLE = int('|')
61  } byteorder;
62 
67  size_t get_sample_size(void) const;
68 
69  otw_type_t(void);
70  };
71 
72 } //namespace uhd
73 
74 #endif /* INCLUDED_UHD_TYPES_OTW_TYPE_HPP */
75 
76 #include <uhd/types/io_type.hpp> //wish it was in here
77 #include <uhd/types/clock_config.hpp> //wish it was in here
size_t shift
Definition: deprecated.hpp:51
Definition: deprecated.hpp:39
Definition: build_info.hpp:25
size_t width
Definition: deprecated.hpp:44
#define UHD_API
Definition: config.h:73