GNU Radio's TUTORIAL Package
my_qpsk_demod_cb.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef INCLUDED_DEMOD_MY_QPSK_DEMOD_CB_H
24 #define INCLUDED_DEMOD_MY_QPSK_DEMOD_CB_H
25 
26 #include <tutorial/api.h>
27 #include <gnuradio/block.h>
28 
29 namespace gr {
30  namespace tutorial {
31 
32  /*!
33  * \brief A QPSK demodulator.
34  * \ingroup tutorial
35  *
36  * Maps complex symbols to unpacked bytes.
37  *
38  * This demodulator understands two constellations:
39  *
40  * With Gray coding:
41  *
42  * <pre>
43  * (1,0) | (0,0)
44  * ------+------
45  * (1,1) | (0,1)
46  * </pre>
47  *
48  * Without Gray coding:
49  *
50  * <pre>
51  * (1,0) | (0,0)
52  * ------+------
53  * (1,1) | (0,1)
54  * </pre>
55  */
56  class TUTORIAL_API my_qpsk_demod_cb : virtual public gr::block
57  {
58  public:
59  typedef boost::shared_ptr<my_qpsk_demod_cb> sptr;
60 
61  /*!
62  * \brief Return a shared_ptr to a new instance of demod::my_qpsk_demod_cb.
63  *
64  * To avoid accidental use of raw pointers, demod::my_qpsk_demod_cb's
65  * constructor is in a private implementation
66  * class. demod::my_qpsk_demod_cb::make is the public interface for
67  * creating new instances.
68  *
69  * \param gray_code Set to true to activate the Gray code.
70  */
71  static sptr make(bool gray_code);
72  };
73 
74  } // namespace tutorial
75 } // namespace gr
76 
77 #endif /* INCLUDED_DEMOD_MY_QPSK_DEMOD_CB_H */
78 
A QPSK demodulator.Maps complex symbols to unpacked bytes.
Definition: my_qpsk_demod_cb.h:56
Definition: my_qpsk_demod_cb.h:29
#define TUTORIAL_API
Definition: api.h:30
boost::shared_ptr< my_qpsk_demod_cb > sptr
Definition: my_qpsk_demod_cb.h:59