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);
+       }
 
 };



_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio

Reply via email to