<?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>Sample RSSI code of nrf51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1593/sample-rssi-code-of-nrf51422</link><description>Hi, 
 Where can I get sample RSSI code of nrf51422? Thanks a lot in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Mar 2014 16:29:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1593/sample-rssi-code-of-nrf51422" /><item><title>RE: Sample RSSI code of nrf51422</title><link>https://devzone.nordicsemi.com/thread/7047?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2014 16:29:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:917687f4-b714-40f8-9caf-63cb2755b2e6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Xinhua,
I am terribly sorry for a late response.&lt;/p&gt;
&lt;p&gt;If you use the Radio directly (without ANT) you can sample the signal strength by triggering a RSSISTART task and readout the RSSISAMPLE register.&lt;/p&gt;
&lt;p&gt;If you use ANT you can&lt;/p&gt;
&lt;p&gt;/* Enable RSSI level for received messages */
sd_ant_lib_config_set(ANT_LIB_CONFIG_MESG_OUT_INC_RSSI);&lt;/p&gt;
&lt;p&gt;Then each time you receive a payload, byte 13 in event_message_buffer will contain the RSSI value, when reading out the event by:
/* Fetch the event */
return_value = sd_ant_event_get(&amp;amp;ant_channel, &amp;amp;event, event_message_buffer);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>