GNU Radio's GR-AIR-MODES Package
air_modes_int_and_dump.h
Go to the documentation of this file.
1 /*
2 # Copyright 2010 Nick Foster
3 #
4 # This file is part of gr-air-modes
5 #
6 # gr-air-modes is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10 #
11 # gr-air-modes is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with gr-air-modes; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20 #
21 */
22 
23 #ifndef INCLUDED_AIR_MODES_int_and_dump_H
24 #define INCLUDED_AIR_MODES_int_and_dump_H
25 
26 #include <gr_block.h>
27 
29 typedef boost::shared_ptr<air_modes_int_and_dump> air_modes_int_and_dump_sptr;
30 
31 air_modes_int_and_dump_sptr air_make_modes_int_and_dump(int samples_per_chip);
32 
33 /*!
34  * \brief mode select int_and_dump filter
35  * \ingroup block
36  */
37 class air_modes_int_and_dump : public gr_block
38 {
39 private:
40  friend air_modes_int_and_dump_sptr air_make_modes_int_and_dump(int samples_per_chip);
41  air_modes_int_and_dump(int samples_per_chip);
42 
43  int d_samples_per_chip;
44  float d_acc;
45  float d_pos;
46 
47 public:
48  int general_work (int noutput_items,
49  gr_vector_int &ninput_items,
50  gr_vector_const_void_star &input_items,
51  gr_vector_void_star &output_items);
52 };
53 
54 #endif /* INCLUDED_AIR_MODES_int_and_dump_H */