summaryrefslogtreecommitdiff
path: root/gr-blocks/include
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/include')
-rw-r--r--gr-blocks/include/blocks/CMakeLists.txt5
-rw-r--r--gr-blocks/include/blocks/control_loop.h1
-rw-r--r--gr-blocks/include/blocks/message_sink.h5
-rw-r--r--gr-blocks/include/blocks/message_source.h2
-rw-r--r--gr-blocks/include/blocks/packed_to_unpacked_XX.h.t2
-rw-r--r--gr-blocks/include/blocks/random_pdu.h51
-rw-r--r--gr-blocks/include/blocks/rms_ff.h1
-rw-r--r--gr-blocks/include/blocks/socket_pdu.h8
-rw-r--r--gr-blocks/include/blocks/unpacked_to_packed_XX.h.t2
-rw-r--r--gr-blocks/include/blocks/wavfile.h2
10 files changed, 69 insertions, 10 deletions
diff --git a/gr-blocks/include/blocks/CMakeLists.txt b/gr-blocks/include/blocks/CMakeLists.txt
index b34809ae59..a922af6426 100644
--- a/gr-blocks/include/blocks/CMakeLists.txt
+++ b/gr-blocks/include/blocks/CMakeLists.txt
@@ -65,8 +65,8 @@ endmacro(expand_h)
# Invoke macro to generate various sources
########################################################################
expand_h(add_XX ss ii cc)
-expand_h(add_const_XX ss ii ff cc)
-expand_h(add_const_vXX ss ii ff cc)
+expand_h(add_const_XX bb ss ii ff cc)
+expand_h(add_const_vXX bb ss ii ff cc)
expand_h(and_XX bb ss ii)
expand_h(and_const_XX bb ss ii)
expand_h(argmax_XX fs is ss)
@@ -166,6 +166,7 @@ install(FILES
pdu.h
pdu_to_tagged_stream.h
peak_detector2_fb.h
+ random_pdu.h
probe_rate.h
regenerate_bb.h
repack_bits_bb.h
diff --git a/gr-blocks/include/blocks/control_loop.h b/gr-blocks/include/blocks/control_loop.h
index e59429a1f7..475b28f944 100644
--- a/gr-blocks/include/blocks/control_loop.h
+++ b/gr-blocks/include/blocks/control_loop.h
@@ -37,6 +37,7 @@ namespace gr {
float d_alpha, d_beta;
public:
+ control_loop(void) {}
control_loop(float loop_bw, float max_freq, float min_freq);
virtual ~control_loop();
diff --git a/gr-blocks/include/blocks/message_sink.h b/gr-blocks/include/blocks/message_sink.h
index 5d14836dd4..5d3084d02d 100644
--- a/gr-blocks/include/blocks/message_sink.h
+++ b/gr-blocks/include/blocks/message_sink.h
@@ -40,7 +40,10 @@ namespace gr {
// gr::blocks::message_sink::sptr
typedef boost::shared_ptr<message_sink> sptr;
- static sptr make (size_t itemsize, gr_msg_queue_sptr msgq, bool dont_block);
+ static sptr make(size_t itemsize, gr_msg_queue_sptr msgq, bool dont_block);
+ static sptr make(size_t itemsize, gr_msg_queue_sptr msgq, bool dont_block,
+ const std::string& lengthtagname);
+
};
} /* namespace blocks */
diff --git a/gr-blocks/include/blocks/message_source.h b/gr-blocks/include/blocks/message_source.h
index 5b55191880..cf4bafc22b 100644
--- a/gr-blocks/include/blocks/message_source.h
+++ b/gr-blocks/include/blocks/message_source.h
@@ -42,6 +42,8 @@ namespace gr {
static sptr make(size_t itemsize, int msgq_limit=0);
static sptr make(size_t itemsize, gr_msg_queue_sptr msgq);
+ static sptr make(size_t itemsize, gr_msg_queue_sptr msgq,
+ const std::string& lengthtagname);
virtual gr_msg_queue_sptr msgq() const = 0;
};
diff --git a/gr-blocks/include/blocks/packed_to_unpacked_XX.h.t b/gr-blocks/include/blocks/packed_to_unpacked_XX.h.t
index 9ab8b8bdfc..c00a27527e 100644
--- a/gr-blocks/include/blocks/packed_to_unpacked_XX.h.t
+++ b/gr-blocks/include/blocks/packed_to_unpacked_XX.h.t
@@ -47,7 +47,7 @@ namespace gr {
* processed. The right thing is done if bits_per_chunk is not a
* power of two.
*
- * The combination of gr_packed_to_unpacked_XX_ followed by
+ * The combination of gr::blocks::packed_to_unpacked_XX_ followed by
* gr_chunks_to_symbols_Xf or gr_chunks_to_symbols_Xc handles the
* general case of mapping from a stream of bytes or shorts into
* arbitrary float or complex symbols.
diff --git a/gr-blocks/include/blocks/random_pdu.h b/gr-blocks/include/blocks/random_pdu.h
new file mode 100644
index 0000000000..5a13f5eca6
--- /dev/null
+++ b/gr-blocks/include/blocks/random_pdu.h
@@ -0,0 +1,51 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2013 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef INCLUDED_BLOCKS_RANDOM_PDU_H
+#define INCLUDED_BLOCKS_RANDOM_PDU_H
+
+#include <blocks/api.h>
+#include <gr_block.h>
+
+namespace gr {
+ namespace blocks {
+
+ /*!
+ * \brief Sends a random PDU at intervals
+ * \ingroup source_blk
+ */
+ class BLOCKS_API random_pdu : virtual public gr_block
+ {
+ public:
+ // gr::blocks::random_pdu::sptr
+ typedef boost::shared_ptr<random_pdu> sptr;
+
+ /*!
+ * \brief Construct a random PDU generator
+ */
+ static sptr make(int mintime, int maxtime);
+ };
+
+ } /* namespace blocks */
+} /* namespace gr */
+
+#endif /* INCLUDED_BLOCKS_RANDOM_PDU_H */
diff --git a/gr-blocks/include/blocks/rms_ff.h b/gr-blocks/include/blocks/rms_ff.h
index 19fb0016d4..b945096907 100644
--- a/gr-blocks/include/blocks/rms_ff.h
+++ b/gr-blocks/include/blocks/rms_ff.h
@@ -19,6 +19,7 @@
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
+
#ifndef INCLUDED_BLOCKS_RMS_FF_H
#define INCLUDED_BLOCKS_RMS_FF_H
diff --git a/gr-blocks/include/blocks/socket_pdu.h b/gr-blocks/include/blocks/socket_pdu.h
index 58d5ad2628..0ed64a2557 100644
--- a/gr-blocks/include/blocks/socket_pdu.h
+++ b/gr-blocks/include/blocks/socket_pdu.h
@@ -41,10 +41,10 @@ namespace gr {
/*!
* \brief Construct a SOCKET PDU interface
- * \param type type of socket (TCP_SERVER, TCP_CLIENT, UDP_SERVER, UDP_CLIENT)
- * \param addr address of host
- * \param port port number to use
- * \param MTU Maximum Transmission Unit size
+ * \param type "TCP_SERVER", "TCP_CLIENT", "UDP_SERVER", or "UDP_CLIENT"
+ * \param addr network address to use
+ * \param port network port to use
+ * \param MTU maximum transmission unit
*/
static sptr make(std::string type, std::string addr, std::string port, int MTU=10000);
};
diff --git a/gr-blocks/include/blocks/unpacked_to_packed_XX.h.t b/gr-blocks/include/blocks/unpacked_to_packed_XX.h.t
index 749f0e00f9..d570785a68 100644
--- a/gr-blocks/include/blocks/unpacked_to_packed_XX.h.t
+++ b/gr-blocks/include/blocks/unpacked_to_packed_XX.h.t
@@ -46,7 +46,7 @@ namespace gr {
* output bytes or shorts are filled with valid input bits. The
* right thing is done if bits_per_chunk is not a power of two.
*
- * The combination of gr_packed_to_unpacked_XX followed by
+ * The combination of gr::blocks::packed_to_unpacked_XX followed by
* gr_chunks_to_symbols_Xf or gr_chunks_to_symbols_Xc handles the
* general case of mapping from a stream of bytes or shorts into
* arbitrary float or complex symbols.
diff --git a/gr-blocks/include/blocks/wavfile.h b/gr-blocks/include/blocks/wavfile.h
index 690f8fc22a..b852c01e2d 100644
--- a/gr-blocks/include/blocks/wavfile.h
+++ b/gr-blocks/include/blocks/wavfile.h
@@ -20,7 +20,7 @@
* Boston, MA 02110-1301, USA.
*/
-// This file stores all the RIFF file type knowledge for the gr_wavfile_*
+// This file stores all the RIFF file type knowledge for the wavfile_*
// blocks.
#include <blocks/api.h>