GNU Radio's OWC Package
VPPM_Modulator_one.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /* gr-owc OOT module for optical wireless communications.
3  *
4  * Copyright 2021 Arsalan Ahmed from The Ubiquitous Communications and Networking (UCAN) Lab, University of Massachusetts, Boston.
5  *
6  * This 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  * This software 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 this software; 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_OWC_VPPM_MODULATOR_ONE_H
24 #define INCLUDED_OWC_VPPM_MODULATOR_ONE_H
25 
26 #include <owc/api.h>
27 #include <gnuradio/sync_interpolator.h>
28 
29 namespace gr {
30  namespace owc {
31 
32  /*!
33  * \brief <+description of block+>
34  * \ingroup owc
35  *
36  */
37  class OWC_API VPPM_Modulator_one : virtual public gr::sync_interpolator
38  {
39  public:
40  typedef boost::shared_ptr<VPPM_Modulator_one> sptr;
41 
42  /*!
43  * \brief Return a shared_ptr to a new instance of owc::VPPM_Modulator_one.
44  *
45  * To avoid accidental use of raw pointers, owc::VPPM_Modulator_one's
46  * constructor is in a private implementation
47  * class. owc::VPPM_Modulator_one::make is the public interface for
48  * creating new instances.
49  */
50  static sptr make(float max_magnitude, float min_magnitude, int samples_per_symbol, int samples_per_pulse);
51 
52  virtual void set_max_magnitude(float max_magnitude) = 0;
53  virtual float max_magnitude() = 0;
54 
55  virtual void set_min_magnitude(float min_magnitude) = 0;
56  virtual float min_magnitude() = 0;
57 
58  };
59 
60  } // namespace owc
61 } // namespace gr
62 
63 #endif /* INCLUDED_OWC_VPPM_MODULATOR_ONE_H */
64 
#define OWC_API
Definition: api.h:31
<+description of block+>
Definition: VPPM_Modulator_one.h:37
Definition: binary_to_decimal_mapper.h:29
boost::shared_ptr< VPPM_Modulator_one > sptr
Definition: VPPM_Modulator_one.h:40