GNU Radio's OWC Package
OOK_Demodulator_cplus.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2024 Kunal Sangurmath from The Ubiquitous Communications and Networking(UCAN) Lab, University of Massachusetts, Boston.
4 *
5 * SPDX-License-Identifier: GPL-3.0-or-later
6 */
7
8#ifndef INCLUDED_OWC_OOK_DEMODULATOR_CPLUS_H
9#define INCLUDED_OWC_OOK_DEMODULATOR_CPLUS_H
10
11#include <gnuradio/owc/api.h>
12#include <gnuradio/sync_decimator.h>
13
14namespace gr {
15namespace owc {
16
17/*!
18 * \brief <+description of block+>
19 * \ingroup owc
20 *
21 */
22class OWC_API OOK_Demodulator_cplus : virtual public gr::sync_decimator {
23public:
24 typedef std::shared_ptr<OOK_Demodulator_cplus> sptr;
25
26 /*!
27 * \brief Return a shared_ptr to a new instance of owc::OOK_Demodulator_cplus.
28 *
29 * To avoid accidental use of raw pointers, owc::OOK_Demodulator_cplus's
30 * constructor is in a private implementation
31 * class. owc::OOK_Demodulator_cplus::make is the public interface for
32 * creating new instances.
33 */
34 static sptr make(float threshold, int samples_per_symbol);
35 virtual void set_threshold(float threshold) = 0;
36 virtual float threshold() = 0;
37};
38
39} // namespace owc
40} // namespace gr
41
42#endif /* INCLUDED_OWC_OOK_DEMODULATOR_CPLUS_H */
#define OWC_API
Definition api.h:19
<+description of block+>
Definition OOK_Demodulator_cplus.h:22
virtual void set_threshold(float threshold)=0
std::shared_ptr< OOK_Demodulator_cplus > sptr
Definition OOK_Demodulator_cplus.h:24
static sptr make(float threshold, int samples_per_symbol)
Return a shared_ptr to a new instance of owc::OOK_Demodulator_cplus.
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:31
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:30