<?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 configurate transmitter/receiver radio?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6397/how-to-configurate-transmitter-receiver-radio</link><description>hi , i want to modify the &amp;quot;transmitter_pca10028&amp;quot; and &amp;quot;receiver_pca10028&amp;quot; examples in SDK to obtain a transmitter/receiver in the same time (tranceiver). So someone have idea how can i do this . thx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Apr 2015 10:29:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6397/how-to-configurate-transmitter-receiver-radio" /><item><title>RE: how to configurate transmitter/receiver radio?</title><link>https://devzone.nordicsemi.com/thread/22298?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2015 10:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4256342c-e4d3-4595-847a-29ba24355e93</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have not tried it myself but it should be fairly straight forward to merge this examples.&lt;/p&gt;
&lt;p&gt;Thing to take into consideration while merging is the packet pointer for NRF_RADIO-&amp;gt;PACKETPTR.
you have to configure this register everytime you send and receive data, so its best to have&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static uint32_t     tx_packet;              /**&amp;lt; Packet to transmit. */
static uint32_t     rx_packet;              /**&amp;lt; Packet to transmit. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;also change&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void send_packet()
{
     // Set payload pointer
     NRF_RADIO-&amp;gt;PACKETPTR = (uint32_t)&amp;amp;tx_packet;

    // send the packet:
    NRF_RADIO-&amp;gt;EVENTS_READY = 0U;
    NRF_RADIO-&amp;gt;TASKS_TXEN   = 1;

    while (NRF_RADIO-&amp;gt;EVENTS_READY == 0U)
    {
        // wait
    }
    NRF_RADIO-&amp;gt;EVENTS_END  = 0U;
    NRF_RADIO-&amp;gt;TASKS_START = 1U;

    while (NRF_RADIO-&amp;gt;EVENTS_END == 0U)
    {
        // wait
    }

    uint32_t err_code = bsp_indication_text_set(BSP_INDICATE_SENT_OK, &amp;quot;The packet was sent\n\r&amp;quot;);
    APP_ERROR_CHECK(err_code);

    NRF_RADIO-&amp;gt;EVENTS_DISABLED = 0U;
    // Disable radio
    NRF_RADIO-&amp;gt;TASKS_DISABLE = 1U;

    while (NRF_RADIO-&amp;gt;EVENTS_DISABLED == 0U)
    {
        // wait
    }

     // Set payload pointer  to receive
     NRF_RADIO-&amp;gt;PACKETPTR = (uint32_t)&amp;amp;rx_packet;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The rest are minor porting challenges.&lt;br /&gt;
Note that if you are testing this changes you need another transceiver which has to do transmit and receive in reverse order than the DeviceUnderTest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>