<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>how to use PA in esb_ptx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29859/how-to-use-pa-in-esb_ptx</link><description>examples\proprietary_rf\esb_ptx例程中如何切换PA收发方向呢，基本思路就是数据发送完了就切成接收的方向，来接收ACK，但是问题是esb_ptx程序中怎么知道数据什么时候发送完？
下面这个代码，并不是等数据发送完了才返回SUCCESS的。请帮忙解答一下，谢谢！
if (nrf_esb_write_payload(&amp;amp;tx_payload) == NRF_SUCCESS)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jan 2018 06:18:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29859/how-to-use-pa-in-esb_ptx" /><item><title>RE: how to use PA in esb_ptx</title><link>https://devzone.nordicsemi.com/thread/118698?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2018 06:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:616ce27d-dd14-4a89-a830-95325b51035d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You could hook into the hardware events from the radio, and use them to control your GPIO.&lt;/p&gt;
&lt;p&gt;If the ESB library is idle and you upload a new packet then the radio will go into a sequence of TX/RX transactions, to send packets and listen for ACK&amp;#39;s. When the radio is enabled in either TX or RX mode you will get an event called EVENT_READY, signaling that the radio is ready for TX/RX. The first READY event will be in TX mode, the second will be in RX mode, and so forth.&lt;/p&gt;
&lt;p&gt;You could use the PPI controller and the GPIOTE module to connect this event to a GPIO, so that the GPIO is set whenever the READY event occurs. You just have to make sure that you keep the TX and RX events apart.&lt;/p&gt;
&lt;p&gt;When the radio is disabled the DISABLED event will occur, and you can use this to clear the pin, to avoid running the PA excessively.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbj&amp;oslash;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use PA in esb_ptx</title><link>https://devzone.nordicsemi.com/thread/118697?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 13:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db3b16de-d62e-41ad-9e07-20f1a2f74d6b</guid><dc:creator>chenwenbin</dc:creator><description>&lt;p&gt;the question is I don&amp;#39;t know when the TX is over after run function: nrf_esb_write_payload(&amp;amp;tx_payload)
so i don&amp;#39;t know when i have to trig GPIO to rx mode to receive ACK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use PA in esb_ptx</title><link>https://devzone.nordicsemi.com/thread/118696?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 13:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d5bb11f-0805-4190-8c48-19e423131f3c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This is currently not supported by the ESB library. Some updates would have to be made to trigger a GPIO whenever the radio enters TX or RX mode.&lt;/p&gt;
&lt;p&gt;Do you know how long before the TX or RX packet the rxf2401c needs to be enabled?
In many cases it is too late to raise a pin at the exact moment a packet is being sent or received.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use PA in esb_ptx</title><link>https://devzone.nordicsemi.com/thread/118695?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 14:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad6f33ce-385f-4191-817d-25cfca1f7659</guid><dc:creator>chenwenbin</dc:creator><description>&lt;p&gt;I use 52810, need two pin to change PA RX or TX direction .the PA is rxf2401c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use PA in esb_ptx</title><link>https://devzone.nordicsemi.com/thread/118694?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2018 14:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4f2b2f2-66c6-49a5-b62b-7211b2e3ac3f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Which Nordic chip are you using?&lt;/p&gt;
&lt;p&gt;If I understand you correctly you need a pin that will allow you to turn on and off an external PA?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>