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
26#include <gnuradio/sync_block.h>
27
28namespace gr {
29namespace 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 */
38class SATNOGS_API cw_encoder : virtual public gr::sync_block
39{
40public:
41 typedef std::shared_ptr<cw_encoder> sptr;
42
43 /*!
44 * \brief Return a shared_ptr to a new instance of satnogs::cw_encoder.
45 * @param samp_rate the sampling rate
46 * @param cw_freq the CW tone frequency
47 * @param wpm words per minute (WPM)
48 */
49 static sptr 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 */
#define SATNOGS_API
Definition: api.h:19
CW encoder block, mainly for debugging and testing purposes. It accepts a CW word via a message sourc...
Definition: cw_encoder.h:39
static sptr make(double samp_rate, double cw_freq=700, size_t wpm=20)
Return a shared_ptr to a new instance of satnogs::cw_encoder.
std::shared_ptr< cw_encoder > sptr
Definition: cw_encoder.h:41
Definition: amsat_duv_decoder.h:29