commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10987 - in gnuradio/branches/developers/eb/vrt/vrt: .


From: eb
Subject: [Commit-gnuradio] r10987 - in gnuradio/branches/developers/eb/vrt/vrt: . apps lib
Date: Thu, 7 May 2009 03:25:16 -0600 (MDT)

Author: eb
Date: 2009-05-07 03:25:15 -0600 (Thu, 07 May 2009)
New Revision: 10987

Added:
   gnuradio/branches/developers/eb/vrt/vrt/apps/
   gnuradio/branches/developers/eb/vrt/vrt/apps/Makefile.am
Modified:
   gnuradio/branches/developers/eb/vrt/vrt/Makefile.am
   gnuradio/branches/developers/eb/vrt/vrt/lib/rx_udp.cc
Log:
work-in-progress

Modified: gnuradio/branches/developers/eb/vrt/vrt/Makefile.am
===================================================================
--- gnuradio/branches/developers/eb/vrt/vrt/Makefile.am 2009-05-07 09:01:07 UTC 
(rev 10986)
+++ gnuradio/branches/developers/eb/vrt/vrt/Makefile.am 2009-05-07 09:25:15 UTC 
(rev 10987)
@@ -26,4 +26,4 @@
 EXTRA_DIST = \
        vrt.pc.in        
 
-SUBDIRS = include lib
+SUBDIRS = include lib apps


Property changes on: gnuradio/branches/developers/eb/vrt/vrt/apps
___________________________________________________________________
Added: svn:ignore
   + Makefile
Makefile.in
.deps
.libs
*.la
*.lo
rx_streaming_samples


Added: gnuradio/branches/developers/eb/vrt/vrt/apps/Makefile.am
===================================================================
--- gnuradio/branches/developers/eb/vrt/vrt/apps/Makefile.am                    
        (rev 0)
+++ gnuradio/branches/developers/eb/vrt/vrt/apps/Makefile.am    2009-05-07 
09:25:15 UTC (rev 10987)
@@ -0,0 +1,34 @@
+#
+# Copyright 2009 Free Software Foundation, Inc.
+#
+# This program 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 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+include $(top_srcdir)/Makefile.common
+
+AM_CPPFLAGS = \
+    $(VRT_INCLUDES) \
+    $(STD_DEFINES_AND_INCLUDES) \
+    $(CPPUNIT_INCLUDES)
+
+LDADD = \
+       $(VRT_LA)
+
+
+bin_PROGRAMS = 
+
+#noinst_PROGRAMS = \
+#      rx_streaming_samples
+
+#rx_streaming_samples_SOURCES = rx_streaming_samples.cc


Property changes on: gnuradio/branches/developers/eb/vrt/vrt/apps/Makefile.am
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: gnuradio/branches/developers/eb/vrt/vrt/lib/rx_udp.cc
===================================================================
--- gnuradio/branches/developers/eb/vrt/vrt/lib/rx_udp.cc       2009-05-07 
09:01:07 UTC (rev 10986)
+++ gnuradio/branches/developers/eb/vrt/vrt/lib/rx_udp.cc       2009-05-07 
09:25:15 UTC (rev 10987)
@@ -25,7 +25,28 @@
 #include <unistd.h>
 #include "socket_rx_buffer.h"
 #include "data_handler.h"
+#include <stdio.h>
 
+static void
+print_words(size_t offset, uint32_t *buf, size_t n)
+{
+  size_t i;
+  for (i = 0; i < n; i++){
+    if (i % 4 == 0){
+      printf("%04zx:", i);
+    }
+
+    putchar(' ');
+    printf("%08x", buf[i]);
+    if (i % 4 == 3)
+      putchar('\n');
+  }
+
+  putchar('\n');
+}
+
+
+
 namespace vrt {
   
   rx_udp::sptr
@@ -65,11 +86,16 @@
   data_handler::result
   vrt_data_handler::operator()(const void *base, size_t len)
   {
+#if 1
+    print_words(0, (uint32_t *)base, len/(sizeof(uint32_t)));
+    return 0;
+#else
     const uint32_t *payload = 0;       // FIXME
     size_t n32_bit_words = 0;          // FIXME
     expanded_headers hdrs;             // FIXME
     bool want_more = (*d_handler)(payload, n32_bit_words, &hdrs);
     return !want_more ? data_handler::DONE : 0;
+#endif
   }
 
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]