<?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>nrfx spis driver initialize using ncs 1.7.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112696/nrfx-spis-driver-initialize-using-ncs-1-7-1</link><description>when ntfx_spis_init() is done , NRFX_ERROR_INVALID_STATE errer occured. 
 pcb_state is NRF_DRV_STATE_INITIALIZED. 
 
 my code is 
 
 int cc3235_spi_init ( void ) 
 { 
 
 
 nrfx_spis_config_t spis_config = NRFX_SPIS_DEFAULT_CONFIG ( 8 , 2 , 3 , 4 ) ; </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jul 2024 09:09:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112696/nrfx-spis-driver-initialize-using-ncs-1-7-1" /><item><title>RE: nrfx spis driver initialize using ncs 1.7.1</title><link>https://devzone.nordicsemi.com/thread/492193?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 09:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f51548df-5637-411b-b4f9-a7fc5afb517b</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you show which sample code you are using as reference if any?&lt;/p&gt;
[quote user=""]&lt;div&gt;&lt;span&gt;nrfx_err_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;result&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;nrfx_spis_init&lt;/span&gt;&lt;span&gt;( &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;get_dev_config&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;dev_spis&lt;/span&gt;&lt;span&gt;)-&amp;gt;&lt;/span&gt;&lt;span&gt;spis_inst&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;spis_config&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;event_handler&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;dev_data&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;What is the first argument here? I see that it should be a pointer to the driver instance structure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>