<?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>Problem with instruction</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8778/problem-with-instruction</link><description>Hello, I am trying to follow the instruction for a 2way communication between nRF chip and the client device (cell phone). Although my chip is nRF51422/ PCA10028, I have found this doument that belongs to nRF51822/ PCA10008 series. So far I have been</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Aug 2015 07:34:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8778/problem-with-instruction" /><item><title>RE: Problem with instruction</title><link>https://devzone.nordicsemi.com/thread/32201?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2015 07:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96378e91-7090-4fbf-a31e-589300b72a7b</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The solution is to forward declare the ble_lbs_t first.&lt;/p&gt;
&lt;p&gt;// Forward declaration of the ble_lbs_t type.&lt;/p&gt;
&lt;p&gt;typedef struct ble_lbs_s ble_lbs_t;&lt;/p&gt;
&lt;p&gt;// declare the write handler&lt;/p&gt;
&lt;p&gt;typedef void (*ble_lbs_led_write_handler_t) (ble_lbs_t * p_lbs, uint8_t new_state);&lt;/p&gt;
&lt;p&gt;// declare the ble_lbs_s struct&lt;/p&gt;
&lt;p&gt;struct ble_lbs_s
{
variable1 name1;
variable2 name2;
....
};&lt;/p&gt;
&lt;p&gt;You can see examples of this in other example projects inside the sdk. For example in the file &amp;quot;ble_hrs.h&amp;quot; inside the &amp;quot;ble_app_hrs&amp;quot; peripheral example project.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6371.ble_5F00_hrs.h"&gt;ble_hrs.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>