]> git.gag.com Git - debian/gnuradio/blobdiff - gr-usrp2/src/usrp2.i
Implements USRP2 peek() command, allowing arbitrary reads from the internal
[debian/gnuradio] / gr-usrp2 / src / usrp2.i
index df07ee8f4a97331561ebc3fc4c99a968e78b6517..a484397f8ea2da7c9881ddcad6abddd88580d644 100644 (file)
@@ -24,6 +24,7 @@
 
 %include "exception.i"
 %import "gnuradio.i"                   // the common stuff
+%import <stdint.i>     
 
 %{
 #include <gnuradio_swig_bug_workaround.h>
@@ -35,6 +36,8 @@
 
 %include <usrp2/tune_result.h>
 
+%template(uint8_t_vector) std::vector<uint8_t>;
+
 // ----------------------------------------------------------------
 
 class usrp2_base : public gr_sync_block 
@@ -49,6 +52,7 @@ public:
   %rename(_real_fpga_master_clock_freq) fpga_master_clock_freq;
   bool fpga_master_clock_freq(long *freq);
   bool sync_to_pps();
+  std::vector<uint8_t> peek(uint32_t addr, uint32_t len);
 };
 
 // ----------------------------------------------------------------