commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r4919 - gnuradio/branches/developers/gnychis/inband/us


From: gnychis
Subject: [Commit-gnuradio] r4919 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband
Date: Sat, 7 Apr 2007 16:24:20 -0600 (MDT)

Author: gnychis
Date: 2007-04-07 16:24:19 -0600 (Sat, 07 Apr 2007)
New Revision: 4919

Modified:
   gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am
   
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.cc
Log:
creating the payload in USB packets with set_payload()


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am    
    2007-04-07 20:31:30 UTC (rev 4918)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/Makefile.am    
    2007-04-07 22:24:19 UTC (rev 4919)
@@ -48,7 +48,6 @@
 
 include_HEADERS =                      \
        usrp_server.h                   
-       usrp_inband_usb_packet.h
 
 MOSTLYCLEANFILES = \
        $(BUILT_SOURCES) *~ *.pyc

Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.cc
  2007-04-07 20:31:30 UTC (rev 4918)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.cc
  2007-04-07 22:24:19 UTC (rev 4919)
@@ -129,6 +129,8 @@
     return d_payload; 
   }
 
-  // need to set payload
+       void set_payload(unsigned char *payload, int payload_len) {
+               memcpy(d_payload, payload, payload_len);
+       }
 
 };





reply via email to

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