[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 05/11: uhd: added length tag name parameter
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 05/11: uhd: added length tag name parameter in GRC |
Date: |
Sat, 26 Apr 2014 22:34:11 +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 b013092531e801c4c6ac7ea64c19ed7c62846bf3
Author: Sean Nowlan <address@hidden>
Date: Thu Apr 3 22:04:54 2014 -0400
uhd: added length tag name parameter in GRC
---
gr-uhd/grc/gen_uhd_usrp_blocks.py | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py
b/gr-uhd/grc/gen_uhd_usrp_blocks.py
index 02a89af..e6e3201 100644
--- a/gr-uhd/grc/gen_uhd_usrp_blocks.py
+++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py
@@ -41,7 +41,7 @@ MAIN_TMPL = """\
\#else
channels=range(\$nchan),
\#end if
- ),
+ ),$lentag_arg
)
\#if \$clock_rate()
self.\$(id).set_clock_rate(\$clock_rate, uhd.ALL_MBOARDS)
@@ -165,7 +165,7 @@ self.\$(id).set_bandwidth(\$bw$(n), $n)
<param>
<name>Device Addr</name>
<key>dev_addr</key>
- <value></value>
+ <value>""</value>
<type>string</type>
<hide>
\#if \$dev_addr()
@@ -372,6 +372,10 @@ To use the default bandwidth filter setting, this should
be zero. \\
Only certain subdevices have configurable bandwidth filters. \\
See the daughterboard application notes for possible configurations.
+Length tag key (Sink only):
+When a nonempty string is given, the USRP sink will look for length tags \\
+to determine transmit burst lengths.
+
See the UHD manual for more detailed documentation:
http://code.ettus.com/redmine/ettus/projects/uhd/wiki
</doc>
@@ -425,6 +429,18 @@ PARAMS_TMPL = """
</param>
"""
+LENTAG_PARAM = """ <param>
+ <name>Length tag name</name>
+ <key>len_tag_name</key>
+ <value></value>
+ <type>string</type>
+ </param>"""
+
+LENTAG_ARG = """
+ #if $len_tag_name()
+ length_tag_name=$len_tag_name,
+ #end if"""
+
def parse_tmpl(_tmpl, **kwargs):
from Cheetah import Template
return str(Template.Template(_tmpl, kwargs))
@@ -444,7 +460,12 @@ if __name__ == '__main__':
else: raise Exception, 'is %s a source or sink?'%file
params = ''.join([parse_tmpl(PARAMS_TMPL, n=n) for n in
range(max_num_channels)])
+ if sourk == 'sink':
+ params += LENTAG_PARAM
+ lentag_arg = LENTAG_ARG
+ else: lentag_arg = ''
open(file, 'w').write(parse_tmpl(MAIN_TMPL,
+ lentag_arg=lentag_arg,
max_nchan=max_num_channels,
max_mboards=max_num_mboards,
params=params,
- [Commit-gnuradio] [gnuradio] branch master updated (754cfa7 -> a337dcb), git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 02/11: uhd: fixed tags_demo, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 01/11: gr-uhd: added tagged stream support, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 10/11: uhd: Added freq hopping example, improved tag handling in usrp_sink, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 06/11: uhd: modified tag preemption/gap handling, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 03/11: uhd: changed length_tag member variable from string to pmt symbol, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 11/11: uhd: Used uhd-internal fragmentation handling, bursty tx w/o time tags now no longer uses time specs, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 05/11: uhd: added length tag name parameter in GRC,
git <=
- [Commit-gnuradio] [gnuradio] 07/11: uhd: Added retune-by-tag and a command interface via message passing, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 08/11: uhd: Allow post-burst tune; tag handling less restrictive, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 04/11: uhd: added notification for tagged stream preemptions/gaps, git, 2014/04/26
- [Commit-gnuradio] [gnuradio] 09/11: docs: Updated uhd to reflect tag changes., git, 2014/04/26