Hello Users,

I have creating a personnal block but when I read the value of my register it 
return always the same value.
When I use set_arg and get_arg the value change like I want but when I try to 
read the register that is associating with the precedent arg with sr_read32 it 
look likes that the value didn't change.
For example in my xml file I have :
<registers>
              <setreg>
                            <name>REG_CFG</name>
                            <address>130</name>
              </setreg>
</registers>

<args>
              <arg>
                            <name>config</name>
                            <type>int</type>
                            <value>0</value>
                            <action>
                                          SR_WRITE("REG_CFG", $config)
                            </action>
              <arg>
</args>

If I use sr_read32 for read at the address 130 it always return 10 even if I 
have try to modify the value with sr_write("REG_CFG", 1000) or sr_write(130, 
1000)
It is the same problem if I change the value with set_arg("config", 1000), it's 
okay when I read with get_arg("config") I obtain 1000 but sr_write return 
always 10.

I'm working with UHD 3.13 in C++.

Thanks for your help.

Regards.

Fred
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to