GNU Radio's DPD Package
gain_phase_calibrate_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2020 Alekh Gupta
4  *
5  * SPDX-License-Identifier: GPL-3.0-or-later
6  */
7 
8 #ifndef INCLUDED_DPD_GAIN_PHASE_CALIBRATE_IMPL_H
9 #define INCLUDED_DPD_GAIN_PHASE_CALIBRATE_IMPL_H
10 
12 
13 namespace gr {
14 namespace dpd {
15 
17 {
18 private:
19  gr_complex cfactor, previous_cfactor, current_cfactor;
20  int ninput_items, item;
21  bool d_reference_acquired, reference_acquired;
22  gr_complex d_sample, sample;
23 
24 
25 public:
28 
29  // Decides closeness to zero or null
30  bool almost_equals_zero(double a, int num_digits);
31  // Where all the action really happens
32  int general_work(int noutput_items,
33  gr_vector_int& ninput_items,
34  gr_vector_const_void_star& input_items,
35  gr_vector_void_star& output_items);
36 };
37 
38 } // namespace dpd
39 } // namespace gr
40 
41 #endif /* INCLUDED_DPD_GAIN_PHASE_CALIBRATE_IMPL_H */
Removes the gain from the Power Amplifier Output to calibrate it for error calculation with the predi...
Definition: gain_phase_calibrate.h:29
Definition: gain_phase_calibrate_impl.h:16
Definition: gain_phase_calibrate.h:14
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
bool almost_equals_zero(double a, int num_digits)