GNU Radio's OWC Package
OOK_Demodulator_cpvolk_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_CPVOLK_IMPL_H
9#define INCLUDED_OWC_OOK_DEMODULATOR_CPVOLK_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 // Where all the action really happens
32 int work(int noutput_items, gr_vector_const_void_star &input_items,
33 gr_vector_void_star &output_items);
34};
35
36} // namespace owc
37} // namespace gr
38
39#endif /* INCLUDED_OWC_OOK_DEMODULATOR_CPVOLK_IMPL_H */
void set_threshold(float threshold)
Definition OOK_Demodulator_cpvolk_impl.h:25
OOK_Demodulator_cpvolk_impl(float threshold, int samples_per_symbol)
float threshold()
Definition OOK_Demodulator_cpvolk_impl.h:26
int samples_per_symbol()
Definition OOK_Demodulator_cpvolk_impl.h:29
void set_samples_per_symbol(int samples_per_symbol)
Definition OOK_Demodulator_cpvolk_impl.h:28
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
<+description of block+>
Definition OOK_Demodulator_cpvolk.h:22
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:31
Definition Hermitian_Symmetry_i_o_same_vec_size_cplus.h:30