diff options
author | jcorgan | 2008-12-29 01:35:48 +0000 |
---|---|---|
committer | jcorgan | 2008-12-29 01:35:48 +0000 |
commit | 50b2df2ed93de8dbba3185714a3e07e7470e1229 (patch) | |
tree | 2eb77cbebb878fc6f7ee8ebed3b5c546b5e330bd /usrp2/firmware/include | |
parent | 31daef30bc197cb86c7310db386d0b5835c03422 (diff) | |
download | gnuradio-50b2df2ed93de8dbba3185714a3e07e7470e1229.tar.gz gnuradio-50b2df2ed93de8dbba3185714a3e07e7470e1229.tar.bz2 gnuradio-50b2df2ed93de8dbba3185714a3e07e7470e1229.zip |
Implements USRP2 poke32() command.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10176 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware/include')
-rw-r--r-- | usrp2/firmware/include/usrp2_eth_packet.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usrp2/firmware/include/usrp2_eth_packet.h b/usrp2/firmware/include/usrp2_eth_packet.h index 8a9994f17..515394fab 100644 --- a/usrp2/firmware/include/usrp2_eth_packet.h +++ b/usrp2/firmware/include/usrp2_eth_packet.h @@ -187,6 +187,8 @@ typedef struct { #define OP_SYNC_TO_PPS_REPLY (OP_SYNC_TO_PPS | OP_REPLY_BIT) #define OP_PEEK 11 #define OP_PEEK_REPLY (OP_PEEK | OP_REPLY_BIT) +#define OP_POKE 12 +#define OP_POKE_REPLY (OP_POKE | OP_REPLY_BIT) /* * All subpackets are a multiple of 4 bytes long. @@ -388,6 +390,18 @@ typedef struct { uint32_t bytes; } _AL4 op_peek_t; +/*! + * \brief Write to Wishbone memory + */ +typedef struct { + uint8_t opcode; + uint8_t len; + uint8_t rid; + uint8_t mbz; + uint32_t addr; + // Words follow here +} _AL4 op_poke_t; + /* * ================================================================ * union of all of subpacket types @@ -406,6 +420,7 @@ typedef union { op_config_tx_reply_v2_t op_config_tx_reply_v2; op_config_mimo_t op_config_mimo; op_peek_t op_peek; + op_poke_t op_poke; } u2_subpkt_t; |