summaryrefslogtreecommitdiff
path: root/gr-analog/lib/sig_source_impl.h
diff options
context:
space:
mode:
authoralekhgupta1441 <alekhgupta1441@gmail.com>2020-06-20 03:42:50 +0530
committerMarcus Müller <marcus@hostalia.de>2020-06-23 00:38:46 +0200
commit1e9a5be6de1efecbeddde08b39ebc1fda1a1786e (patch)
treefd2e85a1b66f7019be7fb29aa350ebad154e1ec8 /gr-analog/lib/sig_source_impl.h
parent0adc2c23c7a73ac78a91ff9e2aa4c1727aaa87bc (diff)
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.
Diffstat (limited to 'gr-analog/lib/sig_source_impl.h')
-rw-r--r--gr-analog/lib/sig_source_impl.h9
1 files changed, 7 insertions, 2 deletions
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);