File: types.h

package info (click to toggle)
soapyosmo 0.2.5-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,860 kB
  • sloc: cpp: 16,159; python: 11,343; xml: 263; makefile: 12; sh: 1
file content (65 lines) | stat: -rw-r--r-- 1,993 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* -*- c++ -*- */
/*
 * Copyright 2004,2013 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * GNU Radio 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, or (at your option)
 * any later version.
 *
 * GNU Radio 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 GNU Radio; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street,
 * Boston, MA 02110-1301, USA.
 */

#ifndef INCLUDED_GR_TYPES_H
#define INCLUDED_GR_TYPES_H

#include <osmosdr/api.h>
#include <boost/shared_ptr.hpp>
#include <vector>
#include <cstddef>

#include <gnuradio/gr_complex.h>

typedef std::vector<int>			gr_vector_int;
typedef std::vector<unsigned int>		gr_vector_uint;
typedef std::vector<float>			gr_vector_float;
typedef std::vector<double>			gr_vector_double;
typedef std::vector<void *>			gr_vector_void_star;
typedef std::vector<const void *>		gr_vector_const_void_star;

/*
 * #include <config.h> must be placed beforehand
 * in the source file including gnuradio/types.h for
 * the following to work correctly
 */
#ifdef HAVE_STDINT_H
#include <stdint.h>
typedef int16_t			gr_int16;
typedef int32_t			gr_int32;
typedef int64_t			gr_int64;
typedef uint16_t		gr_uint16;
typedef uint32_t 		gr_uint32;
typedef uint64_t		gr_uint64;
#else
/*
 * Note: these defaults may be wrong on 64-bit systems
 */
typedef short 			gr_int16;
typedef int   			gr_int32;
typedef long long		gr_int64;
typedef unsigned short 		gr_uint16;
typedef unsigned int   		gr_uint32;
typedef unsigned long long	gr_uint64;
#endif	/* HAVE_STDINT_H */

#endif /* INCLUDED_GR_TYPES_H */