资源简介
UHD+GNURadio安装工具,Python脚本,以及安装源码。亲测Ubuntu12.04安装可用,具体可参看我的博文,安装方法二进行安装。
代码片段和文件信息
#
# Copyright 2010-2012 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.
#
“““
Creates the swig_doc.i SWIG interface file.
Execute using: python swig_doc.py xml_path outputfilename
The file instructs SWIG to transfer the doxygen comments into the
python docstrings.
“““
import sys time
from doxyxml import DoxyIndex DoxyClass DoxyFriend DoxyFunction DoxyFile
from doxyxml import DoxyOther base
def py_name(name):
bits = name.split(‘_‘)
return ‘_‘.join(bits[1:])
def make_name(name):
bits = name.split(‘_‘)
return bits[0] + ‘_make_‘ + ‘_‘.join(bits[1:])
class Block(object):
“““
Checks if doxyxml produced objects correspond to a gnuradio block.
“““
@classmethod
def includes(cls item):
if not isinstance(item DoxyClass):
return False
# Check for a parsing error.
if item.error():
return False
friendname = make_name(item.name())
is_a_block = item.has_member(friendname DoxyFriend)
# But now sometimes the make function isn‘t a friend so check again.
if not is_a_block:
is_a_block = di.has_member(friendname DoxyFunction)
return is_a_block
class Block2(object):
“““
Checks if doxyxml produced objects correspond to a new style
gnuradio block.
“““
@classmethod
def includes(cls item):
if not isinstance(item DoxyClass):
return False
# Check for a parsing error.
if item.error():
return False
is_a_block2 = item.has_member(‘make‘ DoxyFunction) and item.has_member(‘sptr‘ DoxyOther)
return is_a_block2
def utoascii(text):
“““
Convert unicode text into ascii and escape quotes.
“““
if text is None:
return ‘‘
out = text.encode(‘ascii‘ ‘replace‘)
out = out.replace(‘“‘ ‘\\“‘)
return out
def combine_descriptions(obj):
“““
Combines the brief and detailed descriptions of an object together.
“““
description = []
bd = obj.brief_description.strip()
dd = obj.detailed_description.strip()
if bd:
description.append(bd)
if dd:
description.append(dd)
return utoascii(‘\n\n‘.join(description)).strip()
def format_params(parameteritems):
output = [‘Args:‘
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-02-04 19:24 GNURADIO\
文件 29395 2016-01-19 10:24 GNURADIO\build-gnuradio
文件 29630 2016-01-19 09:52 GNURADIO\build-gnuradio~
目录 0 2016-01-20 08:33 GNURADIO\gnuradio\
文件 18651 2015-08-06 08:22 GNURADIO\gnuradio\CMakeLists.txt
文件 35147 2013-04-18 07:37 GNURADIO\gnuradio\COPYING
文件 4548 2015-08-06 02:54 GNURADIO\gnuradio\README
文件 2419 2015-08-06 02:54 GNURADIO\gnuradio\README.building-boost
文件 7699 2015-08-06 02:54 GNURADIO\gnuradio\README.hacking
目录 0 2013-05-02 07:57 GNURADIO\gnuradio\cmake\
目录 0 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\
文件 4003 2013-05-02 07:57 GNURADIO\gnuradio\cmake\Modules\CMakeMacroLibtoolFile.cmake
文件 5891 2013-05-02 07:57 GNURADIO\gnuradio\cmake\Modules\CMakeParseArgumentsCopy.cmake
文件 980 2013-05-02 07:57 GNURADIO\gnuradio\cmake\Modules\FindALSA.cmake
文件 1073 2014-10-02 02:08 GNURADIO\gnuradio\cmake\Modules\FindCppUnit.cmake
文件 1108 2013-05-02 07:57 GNURADIO\gnuradio\cmake\Modules\FindFFTW3f.cmake
文件 4593 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\FindGSL.cmake
文件 1465 2013-05-02 07:57 GNURADIO\gnuradio\cmake\Modules\FindGit.cmake
文件 4805 2015-07-07 06:32 GNURADIO\gnuradio\cmake\Modules\FindGnuradio.cmake
文件 2278 2013-05-02 07:57 GNURADIO\gnuradio\cmake\Modules\FindJack.cmake
文件 1445 2014-07-31 04:39 GNURADIO\gnuradio\cmake\Modules\FindLog4cpp.cmake
文件 1041 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\FindOSS.cmake
文件 1523 2014-10-02 02:08 GNURADIO\gnuradio\cmake\Modules\FindPortaudio.cmake
文件 1835 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\FindQwt.cmake
文件 4006 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\FindSWIG.cmake
文件 1085 2013-05-02 07:57 GNURADIO\gnuradio\cmake\Modules\FindSphinx.cmake
文件 2286 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\FindThrift.cmake
文件 2767 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\FindUHD.cmake
文件 812 2014-10-02 02:32 GNURADIO\gnuradio\cmake\Modules\FindUSB.cmake
文件 645 2014-10-02 02:08 GNURADIO\gnuradio\cmake\Modules\FindZeroMQ.cmake
文件 5625 2015-08-06 02:54 GNURADIO\gnuradio\cmake\Modules\GnuradioConfig.cmake
............此处省略6408个文件信息
- 上一篇:Python 数据分析之金融欺诈行为检测
- 下一篇:Django银行业务管理系统
评论
共有 条评论