[prev in list] [next in list] [prev in thread] [next in thread] 

List:       usrp-users
Subject:    Re: [USRP-users] Set Register Value of RFNoC block through C API
From:       Zhihong Luo via USRP-users <usrp-users () lists ! ettus ! com>
Date:       2016-02-24 19:28:11
Message-ID: CAH4wXLosjRcsrN1piX4q_fDQoFLF8u_HF-D71NrguacyHR1ZEA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Martin,

Okay, I'll look into it. Thank you for the help :)

Zhihong

On Wed, Feb 24, 2016 at 1:03 PM, Martin Braun <martin.braun@ettus.com>
wrote:

> Oh, I see. Yes, that's what it's supposed to do. However, I recommend
> you also look at the code in gr-ettus (even if you don't want to use GNU
> Radio), as it uses more features, such as named register access.
>
> Cheers,
> Martin
>
> On 02/24/2016 10:01 AM, Zhihong Luo wrote:
> > Hi Martin,
> >
> > Sorry for misleading you, what I meant is to use a cpp file like
> > *rx_samples_to_file.cpp. *I saw that block_ctrl_base has the function
> > sr_write to write to the setting register. Can I declare the setting
> > register in the XML file, then use this function to write value to it?
> >
> > Thanks,
> > Zhihong
> >
> > On Wed, Feb 24, 2016 at 12:51 PM, Martin Braun via USRP-users
> > <usrp-users@lists.ettus.com <mailto:usrp-users@lists.ettus.com>> wrote:
> >
> >     Hi,
> >
> >     the C API does not support RFNoC as of yet.
> >
> >     Cheers,
> >     Martin
> >
> >     On 02/24/2016 08:43 AM, Zhihong Luo via USRP-users wrote:
> >     > Hi all,
> >     >
> >     > I plan to create a RFNoC block to implement some DSP algorithm. If
> I
> >     > want to be able to set the values of certain register in the block
> >     > through C API, what should I do on host and fpga sides?
> >     >
> >     > Thanks in advance for any help.
> >     >
> >     > Zhihong Luo
> >     >
> >     >
> >     > _______________________________________________
> >     > USRP-users mailing list
> >     > USRP-users@lists.ettus.com <mailto:USRP-users@lists.ettus.com>
> >     > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >     >
> >
> >
> >     _______________________________________________
> >     USRP-users mailing list
> >     USRP-users@lists.ettus.com <mailto:USRP-users@lists.ettus.com>
> >     http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >
> >
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>Martin,</div><div><br></div><div>Okay, I&#39;ll look into it. \
Thank you for the help :)</div><div><br></div><div>Zhihong</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 1:03 PM, \
Martin Braun <span dir="ltr">&lt;<a href="mailto:martin.braun@ettus.com" \
target="_blank">martin.braun@ettus.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Oh, I see. Yes, that&#39;s what it&#39;s supposed to do. \
However, I recommend<br> you also look at the code in gr-ettus (even if you don&#39;t \
want to use GNU<br> Radio), as it uses more features, such as named register \
access.<br> <br>
Cheers,<br>
Martin<br>
<span><br>
On 02/24/2016 10:01 AM, Zhihong Luo wrote:<br>
&gt; Hi Martin,<br>
&gt;<br>
&gt; Sorry for misleading you, what I meant is to use a cpp file like<br>
</span>&gt; *rx_samples_to_file.cpp. *I saw that block_ctrl_base has the function<br>
<span>&gt; sr_write to write to the setting register. Can I declare the setting<br>
&gt; register in the XML file, then use this function to write value to it?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Zhihong<br>
&gt;<br>
&gt; On Wed, Feb 24, 2016 at 12:51 PM, Martin Braun via USRP-users<br>
</span><span>&gt; &lt;<a \
href="mailto:usrp-users@lists.ettus.com">usrp-users@lists.ettus.com</a> &lt;mailto:<a \
href="mailto:usrp-users@lists.ettus.com">usrp-users@lists.ettus.com</a>&gt;&gt; \
wrote:<br> &gt;<br>
&gt;        Hi,<br>
&gt;<br>
&gt;        the C API does not support RFNoC as of yet.<br>
&gt;<br>
&gt;        Cheers,<br>
&gt;        Martin<br>
&gt;<br>
&gt;        On 02/24/2016 08:43 AM, Zhihong Luo via USRP-users wrote:<br>
&gt;        &gt; Hi all,<br>
&gt;        &gt;<br>
&gt;        &gt; I plan to create a RFNoC block to implement some DSP algorithm. If \
I<br> &gt;        &gt; want to be able to set the values of certain register in the \
block<br> &gt;        &gt; through C API, what should I do on host and fpga \
sides?<br> &gt;        &gt;<br>
&gt;        &gt; Thanks in advance for any help.<br>
&gt;        &gt;<br>
&gt;        &gt; Zhihong Luo<br>
&gt;        &gt;<br>
&gt;        &gt;<br>
&gt;        &gt; _______________________________________________<br>
&gt;        &gt; USRP-users mailing list<br>
</span>&gt;        &gt; <a \
href="mailto:USRP-users@lists.ettus.com">USRP-users@lists.ettus.com</a> &lt;mailto:<a \
href="mailto:USRP-users@lists.ettus.com">USRP-users@lists.ettus.com</a>&gt;<br> \
<span>&gt;        &gt; <a \
href="http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com" \
target="_blank" rel="noreferrer">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com</a><br>
 &gt;        &gt;<br>
&gt;<br>
&gt;<br>
&gt;        _______________________________________________<br>
&gt;        USRP-users mailing list<br>
</span>&gt;        <a \
href="mailto:USRP-users@lists.ettus.com">USRP-users@lists.ettus.com</a> &lt;mailto:<a \
href="mailto:USRP-users@lists.ettus.com">USRP-users@lists.ettus.com</a>&gt;<br> &gt;  \
<a href="http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com" \
target="_blank" rel="noreferrer">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com</a><br>
 &gt;<br>
&gt;<br>
<br>
</blockquote></div><br></div>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic