<?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>Non-blocking I2C Zephyr example with callbacks</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106528/non-blocking-i2c-zephyr-example-with-callbacks</link><description>Is there a Zephyr example somewhere for using non-blocking I2C writes? 
 
 I was able to get a basic I2C read/write command working using the blocking function i2c_write_read(). However, this is a blocking function, and I want to free up the CPU to do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Dec 2023 12:37:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106528/non-blocking-i2c-zephyr-example-with-callbacks" /><item><title>RE: Non-blocking I2C Zephyr example with callbacks</title><link>https://devzone.nordicsemi.com/thread/459917?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 12:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7f4f0d9-8885-46b4-984a-243b7fe97145</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You may consider using the nrfx driver directly, where there are some level source code for both blocking and non blocking (the i2c zephyr api is just a wrapper around this api):&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src/nrfx_twim_twis"&gt;https://github.com/zephyrproject-rtos/hal_nordic/tree/master/nrfx/samples/src/nrfx_twim_twis&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>