<?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>twim apis</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94999/twim-apis</link><description>hi team, 
 i have one query that is what is the p_context parameter in nrfx_twim_init() function provided in nRF5 SDK v15.0 in i nfocenter.nordicsemi.com and then what is use of p_context in nrfx_twim_event_handler_t() function. please explain difference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Dec 2022 06:30:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94999/twim-apis" /><item><title>RE: twim apis</title><link>https://devzone.nordicsemi.com/thread/401631?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 06:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ccd5073-2405-49e4-b805-26219ae83187</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The p_context parameter is a void pointer (points to the address of variables) to an object used for differentiating different transfers, for example it is used in&amp;nbsp;&lt;/span&gt;&lt;a title="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__twi__mngr.html" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__twi__mngr.html" rel="noopener noreferrer" target="_blank"&gt;twi_mngt library&lt;/a&gt;.&amp;nbsp;&lt;span&gt;The TWI mgmt library can schedule transfers with different configs, the library will re-init the driver if the next transfer uses a different config than the previous.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;p_context object provided in init function will be passed to the event handler.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>