<?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>Both the enqueue operation in the ESB queue buffer (esb_write_payload) and the dequeue operation (esb_pop_tx) use ++tx_fifo.back.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127608/both-the-enqueue-operation-in-the-esb-queue-buffer-esb_write_payload-and-the-dequeue-operation-esb_pop_tx-use-tx_fifo-back</link><description>In the enqueue function esb_write_payload , the enqueue implementation uses ++tx_fifo.back . 
 In the dequeue function esb_pop_tx , the dequeue processing also uses ++tx_fifo.back . 
 Is this reasonable?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Mar 2026 15:22:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127608/both-the-enqueue-operation-in-the-esb-queue-buffer-esb_write_payload-and-the-dequeue-operation-esb_pop_tx-use-tx_fifo-back" /><item><title>RE: Both the enqueue operation in the ESB queue buffer (esb_write_payload) and the dequeue operation (esb_pop_tx) use ++tx_fifo.back.</title><link>https://devzone.nordicsemi.com/thread/564210?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2026 15:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2bafd3e-a3e9-4fb4-b979-61194b44cb2a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe the implementation is correct.&lt;/p&gt;
&lt;p&gt;Enqueue: Adds items at the back (tail) pointer&lt;br /&gt;Dequeue: Removes items from the front (head) pointer&lt;/p&gt;
&lt;p&gt;Both pointers wrap around to 0 when they reach CONFIG_ESB_TX_FIFO_SIZE&lt;/p&gt;
&lt;p&gt;The dequeue operation modifies the front pointer, not the back pointer, which is the expected behavior.&lt;/p&gt;
&lt;p&gt;Hope that helps,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>