GNU Radio's SATNOGS Package
cw_encoder.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * gr-satnogs: SatNOGS GNU Radio Out-Of-Tree Module
4  *
5  * Copyright (C) 2017
6  * Libre Space Foundation <http://librespacefoundation.org/>
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_SATNOGS_CW_ENCODER_H
23 #define INCLUDED_SATNOGS_CW_ENCODER_H
24 
25 #include <satnogs/api.h>
26 #include <gnuradio/sync_block.h>
27 
28 namespace gr {
29 namespace satnogs {
30 
31 /*!
32  * \brief CW encoder block, mainly for debugging and testing purposes.
33  * It accepts a CW word via a message source port and transmits the
34  * corresponding CW symbols.
35  * \ingroup satnogs
36  *
37  */
38 class SATNOGS_API cw_encoder : virtual public gr::sync_block {
39 public:
40  typedef boost::shared_ptr<cw_encoder> sptr;
41 
42  /*!
43  * \brief Return a shared_ptr to a new instance of satnogs::cw_encoder.
44  * @param samp_rate the sampling rate
45  * @param cw_freq the CW tone frequency
46  * @param wpm words per minute (WPM)
47  */
48  static sptr
49  make(double samp_rate, double cw_freq = 700, size_t wpm = 20);
50 };
51 
52 } // namespace satnogs
53 } // namespace gr
54 
55 #endif /* INCLUDED_SATNOGS_CW_ENCODER_H */
56 
CW encoder block, mainly for debugging and testing purposes. It accepts a CW word via a message sourc...
Definition: cw_encoder.h:38
Definition: amsat_duv_decoder.h:29
boost::shared_ptr< cw_encoder > sptr
Definition: cw_encoder.h:40
#define SATNOGS_API
Definition: api.h:30