We built an FPGA version off of the radio_block, re-using the registers as:

SR_BASE = 160
SR_DB_GPIO        = SR_BASE + 8’d32   = 192
SR_THRESHOLD   =    SR_BASE + 8'd40;
...etc

RB_MISC_IO   = RB_BASE + 0;
RB_SPI       = RB_BASE + 1;
RB_LEDS      = RB_BASE + 2;
..etc

But now I'm having a real tough time finding the documentation on
reading/writing these.  Right now I have gotten to:

auto usrp = uhd::device3::make(addr_string);
uhd::rfnoc::block_id_t radio_ctrl_id(0, "Radio");
auto radio = usrp->get_block_ctrl<uhd::rfnoc::radio_ctrl>(radio_ctrl_id);

and then I'm using:
radio->user_reg_read64(addr);

To read the registers -- Where addr == 24 to read the SB_DB_GPIO for
example.

But now I'm really struggling on how to write these values -- is this a two
step write on the settings bus, and is there a better way to understand the
mapping?

(The real answer would be to fix the xml most likely, but I'm hoping to not
go down that path quite yet.)

Thanks.
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to