GNU Radio's OWC Package
OOK_Demodulator_cplus_impl.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_IMPL_H
9#define INCLUDED_OWC_OOK_DEMODULATOR_CPLUS_IMPL_H
10
12
13namespace gr {
14namespace owc {
15
17private:
18 float d_threshold;
19 int d_samples_per_symbol;
20
21public:
24
25 void set_threshold(float threshold) { d_threshold = threshold; }
26 float threshold() { return d_threshold; }
27
28 void set_samples_per_symbol(int samples_per_symbol) { d_samples_per_symbol = samples_per_symbol; }
29 int samples_per_symbol() { return d_samples_per_symbol;}
30
31 int work(int noutput_items, gr_vector_const_void_star &input_items,
32 gr_vector_void_star &output_items);
33};
34
35} // namespace owc
36} // namespace gr
37
38#endif /* INCLUDED_OWC_OOK_DEMODULATOR_CPLUS_IMPL_H */
void set_threshold(float threshold)
Definition OOK_Demodulator_cplus_impl.h:25
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
OOK_Demodulator_cplus_impl(float threshold, int samples_per_symbol)
float threshold()
Definition OOK_Demodulator_cplus_impl.h:26
void set_samples_per_symbol(int samples_per_symbol)
Definition OOK_Demodulator_cplus_impl.h:28
int samples_per_symbol()
Definition OOK_Demodulator_cplus_impl.h:29
<+description of block+>
Definition OOK_Demodulator_cplus.h:22
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:31
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:30