From 893f946b7a652497994309092fe84fb33504852c Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Fri, 19 Aug 2011 14:50:55 -0700 Subject: gr-uhd: add async metadata source block Add asynchronous message "block" that is independent of normal gnuradio scheduler. The block instantiates a thread to wait for asynchronous messages from UHD and encapsulates them in a gr_message posted into a message queue. The interface is empty because the block is internally driven and accessed through the the constructor specified message queue. --- gr-uhd/swig/uhd_swig.i | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gr-uhd/swig/uhd_swig.i') diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i index 9bdb962c9..b58fe9e18 100644 --- a/gr-uhd/swig/uhd_swig.i +++ b/gr-uhd/swig/uhd_swig.i @@ -55,6 +55,7 @@ %{ #include #include +#include %} //////////////////////////////////////////////////////////////////////// @@ -114,6 +115,9 @@ GR_SWIG_BLOCK_MAGIC(uhd,usrp_source) GR_SWIG_BLOCK_MAGIC(uhd,usrp_sink) %include +GR_SWIG_BLOCK_MAGIC(uhd,amsg_source) +%include + //////////////////////////////////////////////////////////////////////// // helpful constants //////////////////////////////////////////////////////////////////////// -- cgit