<?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>can i store a struct in EEPROM using Nordic SPI api and sent struct through Nordic BLE api?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47093/can-i-store-a-struct-in-eeprom-using-nordic-spi-api-and-sent-struct-through-nordic-ble-api</link><description>can i store a struct in EEPROM using Nordic SPI api and sent struct through Nordic BLE api? 
 HW: PCA10056 
 SW: nRF5_SDK_15.2.0_9412b96</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 May 2019 09:48:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47093/can-i-store-a-struct-in-eeprom-using-nordic-spi-api-and-sent-struct-through-nordic-ble-api" /><item><title>RE: can i store a struct in EEPROM using Nordic SPI api and sent struct through Nordic BLE api?</title><link>https://devzone.nordicsemi.com/thread/186133?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 09:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5b9731c-9617-4e2b-a0ea-db7ab0424834</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume there are many ways of solving this, but the following thread show basically how you can cast&amp;nbsp;struct to an array, and thereby solve you problem:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/29661516/cast-struct-to-array"&gt;https://stackoverflow.com/questions/29661516/cast-struct-to-array&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The array (buffer) can be transferred or stored as you see fit, you cast the array to a struct when you want to read, write or modify the data in the array.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>