GNU Radio's OWC Package
OOK_Demodulator_cpvolk.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_CPVOLK_H
9#define INCLUDED_OWC_OOK_DEMODULATOR_CPVOLK_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_cpvolk : virtual public gr::sync_decimator {
23public:
24 typedef std::shared_ptr<OOK_Demodulator_cpvolk> sptr;
25
26 /*!
27 * \brief Return a shared_ptr to a new instance of
28 * owc::OOK_Demodulator_cpvolk.
29 *
30 * To avoid accidental use of raw pointers, owc::OOK_Demodulator_cpvolk's
31 * constructor is in a private implementation
32 * class. owc::OOK_Demodulator_cpvolk::make is the public interface for
33 * creating new instances.
34 */
35 static sptr make(float threshold, int samples_per_symbol);
36 virtual void set_threshold(float threshold) = 0;
37 virtual float threshold() = 0;
38};
39
40} // namespace owc
41} // namespace gr
42
43#endif /* INCLUDED_OWC_OOK_DEMODULATOR_CPVOLK_H */
#define OWC_API
Definition api.h:19
<+description of block+>
Definition OOK_Demodulator_cpvolk.h:22
std::shared_ptr< OOK_Demodulator_cpvolk > sptr
Definition OOK_Demodulator_cpvolk.h:24
virtual void set_threshold(float threshold)=0
static sptr make(float threshold, int samples_per_symbol)
Return a shared_ptr to a new instance of owc::OOK_Demodulator_cpvolk.
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:31
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:30