<div dir="ltr"><div>Jeff,</div><div><br></div><div>Yes. For ATR to put that line high on TX, the value should be 1 as you noted.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sam Reiter <br><div>Ettus Research<br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 7, 2020 at 1:12 PM Jeff S via USRP-users <<a href="mailto:usrp-users@lists.ettus.com">usrp-users@lists.ettus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<p>Relating to the description of the GPIO:  <a href="https://files.ettus.com/manual/page_gpio_api.html" rel="noopener noreferrer" target="_blank">
https://files.ettus.com/manual/page_gpio_api.html</a></p>
<p> </p>
<p>Should the code example on this page, which has the following code:</p>
<p> </p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:maroon">// finally, let's set up GPIO6 as we described above</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black"></span></p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_0X"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">, 0, AMP_GPIO_MASK);</span></p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_RX"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">, 0, AMP_GPIO_MASK);</span></p>
<p style="margin-left:75.75pt"><b><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_TX"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">, 0, AMP_GPIO_MASK);</span></b></p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_XX"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">, 0, AMP_GPIO_MASK);</span></p>
<p> </p>
<p>actually be:</p>
<p> </p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:maroon">// finally, let's set up GPIO6 as we described above</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black"></span></p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_0X"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">, 0, AMP_GPIO_MASK);</span></p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_RX"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">, 0, AMP_GPIO_MASK);</span></p>
<p style="margin-left:75.75pt"><b><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_TX"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
<span style="background:yellow none repeat scroll 0% 0%">1</span>, AMP_GPIO_MASK);  <span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:maroon">
// Should it be a 1?</span><br>
</span></b></p>
<p style="margin-left:75.75pt"><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">usrp_x300->set_gpio_attr(</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"FP0"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">,
</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:rgb(0,32,128)">"ATR_XX"</span><span style="font-size:10pt;font-family:"Courier New",serif,"EmojiFont";color:black">, 0, AMP_GPIO_MASK);</span></p>
<p> </p>
<p>for setting up GPIO6 to be high only when transmitting?  If not, then I'm not understanding what the code is really doing to get GPIO6 to be high when transmitting.</p>
<p><br>
</p>
<p>Thx.</p>
<p>Jeff<br>
</p>
<br>
</div>

_______________________________________________<br>
USRP-users mailing list<br>
<a href="mailto:USRP-users@lists.ettus.com" target="_blank">USRP-users@lists.ettus.com</a><br>
<a href="http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com" rel="noreferrer" target="_blank">http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com</a><br>
</blockquote></div>