USRP Hardware Driver and USRP Manual  Version: 003.009.000-0-gcd88f80f
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 
27 namespace uhd{
28 
39 
43  size_t width; //in bits
44 
50  size_t shift; //in bits
51 
55  enum /*bo_t*/ {
56  BO_NATIVE = int('='),
57  BO_LITTLE_ENDIAN = int('<'),
58  BO_BIG_ENDIAN = int('>'),
59  BO_NOT_APPLICABLE = int('|')
60  } byteorder;
61 
66  size_t get_sample_size(void) const;
67 
68  otw_type_t(void);
69  };
70 
71 } //namespace uhd
72 
73 #endif /* INCLUDED_UHD_TYPES_OTW_TYPE_HPP */
74 
75 #include <uhd/types/io_type.hpp> //wish it was in here
76 #include <uhd/types/clock_config.hpp> //wish it was in here
size_t shift
Definition: deprecated.hpp:50
Definition: deprecated.hpp:38
Definition: convert.hpp:28
size_t width
Definition: deprecated.hpp:43
#define UHD_API
Definition: config.h:66