[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/12: dtv: atsc: adds ControlPort interfac
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/12: dtv: atsc: adds ControlPort interface to get equalizer taps. |
Date: |
Tue, 29 Dec 2015 22:49:22 +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 a78483c10dfcca68b6e005f10bda1a511a5c5b0f
Author: Tom Rondeau <address@hidden>
Date: Mon Apr 27 17:26:41 2015 -0400
dtv: atsc: adds ControlPort interface to get equalizer taps.
---
gr-dtv/include/gnuradio/dtv/atsc_equalizer.h | 2 ++
gr-dtv/lib/atsc/atsc_equalizer_impl.cc | 22 ++++++++++++++++++++++
gr-dtv/lib/atsc/atsc_equalizer_impl.h | 4 ++++
3 files changed, 28 insertions(+)
diff --git a/gr-dtv/include/gnuradio/dtv/atsc_equalizer.h
b/gr-dtv/include/gnuradio/dtv/atsc_equalizer.h
index 3fe101a..566dafc 100644
--- a/gr-dtv/include/gnuradio/dtv/atsc_equalizer.h
+++ b/gr-dtv/include/gnuradio/dtv/atsc_equalizer.h
@@ -45,6 +45,8 @@ namespace gr {
* \brief Make a new instance of gr::dtv::atsc_equalizer.
*/
static sptr make();
+
+ virtual std::vector<float> taps() const = 0;
};
} /* namespace dtv */
diff --git a/gr-dtv/lib/atsc/atsc_equalizer_impl.cc
b/gr-dtv/lib/atsc/atsc_equalizer_impl.cc
index 60bc05e..e2782a9 100644
--- a/gr-dtv/lib/atsc/atsc_equalizer_impl.cc
+++ b/gr-dtv/lib/atsc/atsc_equalizer_impl.cc
@@ -90,6 +90,12 @@ namespace gr {
{
}
+ std::vector<float>
+ atsc_equalizer_impl::taps() const
+ {
+ return d_taps;
+ }
+
void
atsc_equalizer_impl::filterN(const float *input_samples,
float *output_samples,
@@ -187,5 +193,21 @@ namespace gr {
return output_produced;
}
+ void
+ atsc_equalizer_impl::setup_rpc()
+ {
+#ifdef GR_CTRLPORT
+ add_rpc_variable(
+ rpcbasic_sptr(new rpcbasic_register_get<atsc_equalizer,
std::vector<float> >(
+ alias(), "taps",
+ &atsc_equalizer::taps,
+ pmt::make_f32vector(1,-10),
+ pmt::make_f32vector(1,10),
+ pmt::make_f32vector(1,0),
+ "", "Equalizer Taps", RPC_PRIVLVL_MIN,
+ DISPTIME)));
+#endif /* GR_CTRLPORT */
+ }
+
} /* namespace dtv */
} /* namespace gr */
diff --git a/gr-dtv/lib/atsc/atsc_equalizer_impl.h
b/gr-dtv/lib/atsc/atsc_equalizer_impl.h
index 1312ae7..3fcefc6 100644
--- a/gr-dtv/lib/atsc/atsc_equalizer_impl.h
+++ b/gr-dtv/lib/atsc/atsc_equalizer_impl.h
@@ -59,6 +59,10 @@ namespace gr {
atsc_equalizer_impl();
~atsc_equalizer_impl();
+ void setup_rpc();
+
+ std::vector<float> taps() const;
+
virtual int general_work(int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
- [Commit-gnuradio] [gnuradio] branch master updated (b858d8f -> b17bcb8), git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 04/12: dtv: atsc: adds ControlPort interface to get equalizer taps.,
git <=
- [Commit-gnuradio] [gnuradio] 10/12: dtv: installing all examples, git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 12/12: Merge remote-tracking branch 'tom/dtv/atsc_controlport', git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 03/12: dtv: atsc: performance improvements for equalizer., git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 11/12: Merge remote-tracking branch 'iohannez/gr_uhd_issue_stream_cmd_on_start', git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 06/12: dtv: atsc: adds ControlPort hooks to RS decoder., git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 08/12: dtv: Adding a ControlPort client example for plotting the quality of an ATSC receiver., git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 02/12: gr-uhd: add parameter to enable/disable streaming when flowgraph starts, git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 01/12: Check RX/TX streamers::sptr before flush/reset, git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 05/12: dtv: atsc: adds controlport hooks to equalizer., git, 2015/12/29
- [Commit-gnuradio] [gnuradio] 09/12: dtv: Cleanup; ATSC RS decoder - change log level to INFO instead of DEBUG., git, 2015/12/29