- added message debug
git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@484 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -24,5 +24,6 @@ install(FILES
|
||||
jay_pocsag_decoder.xml
|
||||
jay_bit_packer.xml
|
||||
jay_add.xml
|
||||
jay_peak_detect.xml DESTINATION share/gnuradio/grc/blocks
|
||||
jay_peak_detect.xml
|
||||
jay_message_debug.xml DESTINATION share/gnuradio/grc/blocks
|
||||
)
|
||||
|
||||
@@ -29,5 +29,6 @@ install(FILES
|
||||
pocsag_decoder.h
|
||||
bit_packer.h
|
||||
add.h
|
||||
peak_detect.h DESTINATION include/jay
|
||||
peak_detect.h
|
||||
message_debug.h DESTINATION include/jay
|
||||
)
|
||||
|
||||
@@ -33,7 +33,8 @@ list(APPEND jay_sources
|
||||
pocsag_decoder_impl.cc
|
||||
bit_packer_impl.cc
|
||||
add_impl.cc
|
||||
peak_detect_impl.cc )
|
||||
peak_detect_impl.cc
|
||||
message_debug_impl.cc )
|
||||
|
||||
set(jay_sources "${jay_sources}" PARENT_SCOPE)
|
||||
if(NOT jay_sources)
|
||||
|
||||
@@ -37,7 +37,13 @@ namespace gr {
|
||||
{
|
||||
if (pmt::is_dict(msg))
|
||||
{
|
||||
fprintf(stderr, "Is dictionary\n!");
|
||||
fprintf(stderr, "Is dictionary.\n");
|
||||
pmt::pmt_t keys = pmt::dict_keys(msg);
|
||||
for (int i=0; i < pmt::length(keys); i++)
|
||||
{
|
||||
pmt::pmt_t key = pmt::nth(i, keys);
|
||||
fprintf(stderr, "Key: %s\n!", pmt::symbol_to_string(key));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -49,3 +49,4 @@ GR_ADD_TEST(qa_pocsag_decoder ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/q
|
||||
GR_ADD_TEST(qa_bit_packer ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_bit_packer.py)
|
||||
GR_ADD_TEST(qa_add ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_add.py)
|
||||
GR_ADD_TEST(qa_peak_detect ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_peak_detect.py)
|
||||
GR_ADD_TEST(qa_message_debug ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_message_debug.py)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "jay/bit_packer.h"
|
||||
#include "jay/add.h"
|
||||
#include "jay/peak_detect.h"
|
||||
#include "jay/message_debug.h"
|
||||
%}
|
||||
|
||||
|
||||
@@ -33,3 +34,5 @@ GR_SWIG_BLOCK_MAGIC2(jay, bit_packer);
|
||||
GR_SWIG_BLOCK_MAGIC2(jay, add);
|
||||
%include "jay/peak_detect.h"
|
||||
GR_SWIG_BLOCK_MAGIC2(jay, peak_detect);
|
||||
%include "jay/message_debug.h"
|
||||
GR_SWIG_BLOCK_MAGIC2(jay, message_debug);
|
||||
|
||||
Reference in New Issue
Block a user