[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/04: reset() for probe_avg_mag_sqrd
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/04: reset() for probe_avg_mag_sqrd |
Date: |
Fri, 31 Oct 2014 20:00:17 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 4fe0545f62a67814833b8019340a0f09d207341a
Author: Stefan-Olt <address@hidden>
Date: Sat Oct 25 16:12:06 2014 +0200
reset() for probe_avg_mag_sqrd
---
gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml | 1 +
gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_c.h | 1 +
gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_cf.h | 1 +
gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_f.h | 1 +
gr-analog/lib/probe_avg_mag_sqrd_c_impl.cc | 6 ++++++
gr-analog/lib/probe_avg_mag_sqrd_c_impl.h | 1 +
gr-analog/lib/probe_avg_mag_sqrd_cf_impl.cc | 6 ++++++
gr-analog/lib/probe_avg_mag_sqrd_cf_impl.h | 1 +
gr-analog/lib/probe_avg_mag_sqrd_f_impl.cc | 6 ++++++
gr-analog/lib/probe_avg_mag_sqrd_f_impl.h | 1 +
10 files changed, 25 insertions(+)
diff --git a/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
b/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
index b05ac6d..482982b 100644
--- a/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
+++ b/gr-analog/grc/analog_probe_avg_mag_sqrd_x.xml
@@ -11,6 +11,7 @@
<make>analog.probe_avg_mag_sqrd_$(type)($threshold, $alpha)</make>
<callback>set_alpha($alpha)</callback>
<callback>set_threshold($threshold)</callback>
+ <callback>reset()</callback>
<param>
<name>Type</name>
<key>type</key>
diff --git a/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_c.h
b/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_c.h
index 781d72f..e6816f7 100644
--- a/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_c.h
+++ b/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_c.h
@@ -60,6 +60,7 @@ namespace gr {
virtual void set_alpha(double alpha) = 0;
virtual void set_threshold(double decibels) = 0;
+ virtual void reset() = 0;
};
} /* namespace analog */
diff --git a/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_cf.h
b/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_cf.h
index 03f465b..9aeb876 100644
--- a/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_cf.h
+++ b/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_cf.h
@@ -62,6 +62,7 @@ namespace gr {
virtual void set_alpha(double alpha) = 0;
virtual void set_threshold(double decibels) = 0;
+ virtual void reset() = 0;
};
} /* namespace analog */
diff --git a/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_f.h
b/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_f.h
index b9424db..66095c3 100644
--- a/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_f.h
+++ b/gr-analog/include/gnuradio/analog/probe_avg_mag_sqrd_f.h
@@ -62,6 +62,7 @@ namespace gr {
virtual void set_alpha (double alpha) = 0;
virtual void set_threshold (double decibels) = 0;
+ virtual void reset() = 0;
};
} /* namespace analog */
diff --git a/gr-analog/lib/probe_avg_mag_sqrd_c_impl.cc
b/gr-analog/lib/probe_avg_mag_sqrd_c_impl.cc
index 78e0c84..3d04c8b 100644
--- a/gr-analog/lib/probe_avg_mag_sqrd_c_impl.cc
+++ b/gr-analog/lib/probe_avg_mag_sqrd_c_impl.cc
@@ -87,5 +87,11 @@ namespace gr {
d_iir.set_taps(alpha);
}
+ void
+ probe_avg_mag_sqrd_c_impl::reset()
+ {
+ d_iir.reset();
+ }
+
} /* namespace analog */
} /* namespace gr */
diff --git a/gr-analog/lib/probe_avg_mag_sqrd_c_impl.h
b/gr-analog/lib/probe_avg_mag_sqrd_c_impl.h
index cddb9a7..0128491 100644
--- a/gr-analog/lib/probe_avg_mag_sqrd_c_impl.h
+++ b/gr-analog/lib/probe_avg_mag_sqrd_c_impl.h
@@ -48,6 +48,7 @@ namespace gr {
void set_alpha(double alpha);
void set_threshold(double decibels);
+ void reset();
int work(int noutput_items,
gr_vector_const_void_star &input_items,
diff --git a/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.cc
b/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.cc
index 76d5488..c57f5ce 100644
--- a/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.cc
+++ b/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.cc
@@ -89,5 +89,11 @@ namespace gr {
d_iir.set_taps(alpha);
}
+ void
+ probe_avg_mag_sqrd_cf_impl::reset()
+ {
+ d_iir.reset();
+ }
+
} /* namespace analog */
} /* namespace gr */
diff --git a/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.h
b/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.h
index 359f7f8..0284981 100644
--- a/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.h
+++ b/gr-analog/lib/probe_avg_mag_sqrd_cf_impl.h
@@ -48,6 +48,7 @@ namespace gr {
void set_alpha(double alpha);
void set_threshold(double decibels);
+ void reset();
int work(int noutput_items,
gr_vector_const_void_star &input_items,
diff --git a/gr-analog/lib/probe_avg_mag_sqrd_f_impl.cc
b/gr-analog/lib/probe_avg_mag_sqrd_f_impl.cc
index 505a24a..0d2ce63 100644
--- a/gr-analog/lib/probe_avg_mag_sqrd_f_impl.cc
+++ b/gr-analog/lib/probe_avg_mag_sqrd_f_impl.cc
@@ -87,6 +87,12 @@ namespace gr {
d_iir.set_taps(alpha);
}
+ void
+ probe_avg_mag_sqrd_f_impl::reset()
+ {
+ d_iir.reset();
+ }
+
} /* namespace analog */
} /* namespace gr */
diff --git a/gr-analog/lib/probe_avg_mag_sqrd_f_impl.h
b/gr-analog/lib/probe_avg_mag_sqrd_f_impl.h
index bdccfc7..1f82f85 100644
--- a/gr-analog/lib/probe_avg_mag_sqrd_f_impl.h
+++ b/gr-analog/lib/probe_avg_mag_sqrd_f_impl.h
@@ -48,6 +48,7 @@ namespace gr {
void set_alpha(double alpha);
void set_threshold(double decibels);
+ void reset();
int work(int noutput_items,
gr_vector_const_void_star &input_items,