<?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>Direct usage of a kernel driver for lower level access to a sensor?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126989/direct-usage-of-a-kernel-driver-for-lower-level-access-to-a-sensor</link><description>Hello. 
 I&amp;#39;m developing a project with nRF (because of Bluetooth) and 6DOF sensor LSM6DSO. I would like to be able to configure the sensor in more precise way, e.g. like continuous FIFO buffer, but the universal sensor API has only the basic functionality</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Feb 2026 08:47:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126989/direct-usage-of-a-kernel-driver-for-lower-level-access-to-a-sensor" /><item><title>RE: Direct usage of a kernel driver for lower level access to a sensor?</title><link>https://devzone.nordicsemi.com/thread/561437?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 08:47:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65d4f1f1-1cbf-477f-9924-2e17d144543b</guid><dc:creator>Benik3</dc:creator><description>&lt;p&gt;I ended simply with using generic I2C driver and mapping the ctx for STM32 ipa driver. At the end it was easier then I though :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct usage of a kernel driver for lower level access to a sensor?</title><link>https://devzone.nordicsemi.com/thread/561329?ContentTypeID=1</link><pubDate>Tue, 17 Feb 2026 09:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae78021-0e0e-4d2d-9918-d0b0c77a4978</guid><dc:creator>Benik3</dc:creator><description>&lt;p&gt;&lt;br /&gt;Hi.&lt;br /&gt;Thanks for the reply.&lt;br /&gt;So the best would be probably to make a new custom driver (which will be almost copy of the actual driver) but it will expose the needed functions in the driver API.&lt;br /&gt;&lt;br /&gt;Or of course I should be able to simply use the the I2C directly, in such case I just have to investigate, how it is mapped to the stm ipa driver.&lt;br /&gt;&lt;br /&gt;I have also one maybe &amp;quot;heretical&amp;quot; idea: What to make a custom driver, map the I2C line (using the STMEMSC_CTX_I2C) and expose this ctx object in the driver API so I can use it with the stm ipa driver directly (and I don&amp;#39;t have to do zephyr driver wrapper definition for each function)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct usage of a kernel driver for lower level access to a sensor?</title><link>https://devzone.nordicsemi.com/thread/561140?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2026 15:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b72de3a2-43d3-4e78-850e-3cbf5e1e1ead</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please have a look at this devafademy course :&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-7-device-driver-dev/topic/device-driver-model-2/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-7-device-driver-dev/topic/device-driver-model-2/&lt;/a&gt;, and see if this helps you get started. I have not looked at this particular driver integration but I don&amp;#39;t see why you should not be able to reuse existing parts of the ST driver and include it in your application, but I see&amp;nbsp;&lt;span&gt;lsm6dso.c is created specifically for the sensor API.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>