aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/ic_reg_maps
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-09-09 20:41:38 -0400
committerPhilip Balister <philip@opensdr.com>2010-09-09 20:41:38 -0400
commit5fe26aa11d3fbd32aa60d44aef2a50381b497eeb (patch)
treee227349732a7aa1508fcb5a727b851500a45c97f /host/lib/ic_reg_maps
parent09a1b77a65202e6c569be7e1b31d9d453ef388a2 (diff)
parentbc824badaa981c1785d8c76d7cf56274d7c582b8 (diff)
downloaduhd-5fe26aa11d3fbd32aa60d44aef2a50381b497eeb.tar.gz
uhd-5fe26aa11d3fbd32aa60d44aef2a50381b497eeb.tar.bz2
uhd-5fe26aa11d3fbd32aa60d44aef2a50381b497eeb.zip
Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/lib/ic_reg_maps')
-rwxr-xr-xhost/lib/ic_reg_maps/gen_ad9522_regs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/ic_reg_maps/gen_ad9522_regs.py b/host/lib/ic_reg_maps/gen_ad9522_regs.py
index ed6b5f48d..a5debe568 100755
--- a/host/lib/ic_reg_maps/gen_ad9522_regs.py
+++ b/host/lib/ic_reg_maps/gen_ad9522_regs.py
@@ -134,8 +134,8 @@ reg2eeprom 0xB03[0] 0
# Template for methods in the body of the struct
########################################################################
BODY_TMPL="""\
-boost::uint8_t get_reg(boost::uint16_t addr){
- boost::uint8_t reg = 0;
+boost::uint32_t get_reg(boost::uint16_t addr){
+ boost::uint32_t reg = 0;
switch(addr){
#for $addr in sorted(set(map(lambda r: r.get_addr(), $regs)))
case $addr:
@@ -154,7 +154,7 @@ boost::uint8_t get_reg(boost::uint16_t addr){
return reg;
}
-void set_reg(boost::uint8_t addr, boost::uint32_t reg){
+void set_reg(boost::uint16_t addr, boost::uint32_t reg){
switch(addr){
#for $addr in sorted(set(map(lambda r: r.get_addr(), $regs)))
case $addr: