projects
/
debian
/
gnuradio
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implements USRP2 poke32() command.
[debian/gnuradio]
/
usrp2
/
host
/
lib
/
control.h
diff --git
a/usrp2/host/lib/control.h
b/usrp2/host/lib/control.h
index fe30b3f74378824aabf0af75fa4c4e61f849ea85..2c042f0cf78e9946d9243255598992bfd5a07b75 100644
(file)
--- a/
usrp2/host/lib/control.h
+++ b/
usrp2/host/lib/control.h
@@
-23,6
+23,13
@@
#include <usrp2_eth_packet.h>
namespace usrp2 {
#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
*/
/*!
* OP_CONFIG_RX_V2 command packet
*/
@@
-73,6
+80,18
@@
namespace usrp2 {
op_generic_t eop;
};
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
/*!
* Control mechanism to allow API calls to block waiting for reply packets