Editing Guided Tutorial GNU Radio in C++

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 64: Line 64:
  xyz@comp:mydir/gr-tutorial$ gr_modtool add my_qpsk_demod_cb
  xyz@comp:mydir/gr-tutorial$ gr_modtool add my_qpsk_demod_cb
  GNU Radio module name identified: tutorial
  GNU Radio module name identified: tutorial
('sink', 'source', 'sync', 'decimator', 'interpolator', 'general', 'tagged_stream', 'hier', 'noblock')
  Enter code type: general
  Enter block type: general
Language (python/cpp): cpp
  Language: C++
  Language: C++
  Block/code identifier: my_qpsk_demod_cb
  Block/code identifier: my_qpsk_demod_cb
Please specify the copyright holder: gnuradio.org
  Enter valid argument list, including default arguments:  bool gray_code
  Enter valid argument list, including default arguments:  
  Add Python QA code? [Y/n]  
  bool gray_code
  Add C++ QA code? [y/N] Y
  Add Python QA code? [Y/n] Y
  Adding file 'my_qpsk_demod_cb_impl.h'...
  Add C++ QA code? [y/N] N
  Adding file 'my_qpsk_demod_cb_impl.cc'...
  Adding file 'lib/my_qpsk_demod_cb_impl.h'...
  Adding file 'my_qpsk_demod_cb.h'...
  Adding file 'lib/my_qpsk_demod_cb_impl.cc'...
  Editing swig/qpsk_demod_swig.i...
  Adding file 'include/tutorial/my_qpsk_demod_cb.h'...
  Adding file 'qa_my_qpsk_demod_cb.py'...
  Editing swig/tutorial_swig.i...
  Adding file 'python/qa_my_qpsk_demod_cb.py'...
  Editing python/CMakeLists.txt...
  Editing python/CMakeLists.txt...
  Adding file 'grc/tutorial_my_qpsk_demod_cb.block.yml'...
  Adding file 'qpsk_demod_my_qpsk_demod_cb.xml'...
  Editing grc/CMakeLists.txt...
  Editing grc/CMakeLists.txt...


Line 91: Line 87:
  Enter code type: general
  Enter code type: general


In GNU Radio, there exist different kinds of blocks with the different possibilities listed above (since 3.8). Depending on the choice of our block, <code>gr_modtool</code> adds the corresponding code and functions. As illustrated, for <code>my_qpsk_demod_cb</code> block, we opt for a general block.
In GNU Radio, there exist different kinds of blocks: general, sync, interpolator/decimator, source/sink, Hierarchical, etc. Depending on the choice of our block, <code>gr_modtool</code> adds the corresponding code and functions. As illustrated, for <code>my_qpsk_demod_cb</code> block, we opt for a general block.
 
Please specify the copyright holder:
 
Since version 3.8, the tool asks for a copyright holder for the code you are about to write. The implications of what you write in that line are legal and not computational.


For <code>my_qpsk_demod_cb</code>, gray_code is selected to be "default arguments".
For <code>my_qpsk_demod_cb</code>, gray_code is selected to be "default arguments".

Please note that all contributions to GNU Radio are considered to be released under the Creative Commons Attribution-ShareAlike (see GNU Radio:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)