From 1e9a5be6de1efecbeddde08b39ebc1fda1a1786e Mon Sep 17 00:00:00 2001 From: alekhgupta1441 <alekhgupta1441@gmail.com> Date: Sat, 20 Jun 2020 03:42:50 +0530 Subject: analog: signal source block accepts cmd messages containing * amplitude (ampl) * frequency (freq) * offset (offset) * phase (phase) key/value pairs. Deprecates the `freq` port and adds a logging message. Adds a small GRC example. --- gr-analog/lib/sig_source_impl.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gr-analog/lib/sig_source_impl.h') diff --git a/gr-analog/lib/sig_source_impl.h b/gr-analog/lib/sig_source_impl.h index 40445abc63..8894b42091 100644 --- a/gr-analog/lib/sig_source_impl.h +++ b/gr-analog/lib/sig_source_impl.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004,2012,2018 Free Software Foundation, Inc. + * Copyright 2004,2012,2018,2020 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -52,7 +52,12 @@ public: void set_sampling_freq(double sampling_freq); void set_waveform(gr_waveform_t waveform); - void set_frequency_msg(pmt::pmt_t msg); + + // Message handlers + //!\brief deprecated handler. Use "cmd" port instead. + void set_freq_msg(pmt::pmt_t msg); + void set_cmd_msg(pmt::pmt_t msg); + void set_frequency(double frequency); void set_amplitude(double ampl); void set_offset(T offset); -- cgit v1.2.3