Implements USRP2 poke32() command.
[debian/gnuradio] / usrp2 / host / lib / control.h
index fe30b3f74378824aabf0af75fa4c4e61f849ea85..2c042f0cf78e9946d9243255598992bfd5a07b75 100644 (file)
 #include <usrp2_eth_packet.h>
 
 namespace usrp2 {
+
+  struct op_generic_cmd {
+    u2_eth_packet_t h;
+    op_generic_t    op;
+    op_generic_t    eop;
+  };
+
   /*!
    * OP_CONFIG_RX_V2 command packet
    */
@@ -73,6 +80,18 @@ namespace usrp2 {
     op_generic_t    eop;
   };
 
+  struct op_peek_cmd {
+    u2_eth_packet_t h;
+    op_peek_t       op;
+    op_generic_t    eop;
+  };
+
+  struct op_poke_cmd {
+    u2_eth_packet_t h;
+    op_poke_t       op;
+    // words to write go here
+    // eop must be dynamically written here
+  };
 
   /*!
    * Control mechanism to allow API calls to block waiting for reply packets