<?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>Migrating LSM6DSL Custom FIFO and Interrupts Implementation from nRF to Zephyr SDK: Seeking Guidance</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99612/migrating-lsm6dsl-custom-fifo-and-interrupts-implementation-from-nrf-to-zephyr-sdk-seeking-guidance</link><description>Hello Everyone, 
 I am currently in the process of migrating code for step detection using LSM6DSL, written for an older version of the nRF SDK, to the latest Zephyr SDK. 
 My primary query revolves around setting up custom interrupts and attributes for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 May 2023 15:23:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99612/migrating-lsm6dsl-custom-fifo-and-interrupts-implementation-from-nrf-to-zephyr-sdk-seeking-guidance" /><item><title>RE: Migrating LSM6DSL Custom FIFO and Interrupts Implementation from nRF to Zephyr SDK: Seeking Guidance</title><link>https://devzone.nordicsemi.com/thread/426159?ContentTypeID=1</link><pubDate>Thu, 18 May 2023 15:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bc03b27-ed20-481a-9845-fbfd136191cd</guid><dc:creator>choesy</dc:creator><description>&lt;p&gt;We can close this issue because i managed to implement the library from&amp;nbsp;&lt;a id="" href="https://github.com/STMicroelectronics/lsm6dsl-pid"&gt;https://github.com/STMicroelectronics/lsm6dsl-pid&lt;/a&gt;&amp;nbsp;. I did it all by totally avoiding the sensors abstractions. I used the direct I2C acess.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating LSM6DSL Custom FIFO and Interrupts Implementation from nRF to Zephyr SDK: Seeking Guidance</title><link>https://devzone.nordicsemi.com/thread/426081?ContentTypeID=1</link><pubDate>Wed, 17 May 2023 15:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1243e9e9-3d3f-49e5-9f96-97db8f747ad3</guid><dc:creator>choesy</dc:creator><description>&lt;p&gt;Hi, i misspoke, it is more like 5 actions to do durring the execution time, not exactly trigger modes. But it includes these steps: First i need the continous sampling low power mode and i need set triggers to check wether there is significant movement. If the movement occurs i need to start checking if the 7 walking steps have occured ( i additionaly need to set number of steps treshold), then switch to fifo mode to start collecting data (also in fifo mode i need to set tresholds and setup collecting data from fifo buffers). I know how to do all this using acess to the registers via I2C and using Interrputs. But the main question was if there is an easyer way of doing this using already existing sensor api. But thank you &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating LSM6DSL Custom FIFO and Interrupts Implementation from nRF to Zephyr SDK: Seeking Guidance</title><link>https://devzone.nordicsemi.com/thread/425981?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 18:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db2357c-99f6-4768-988d-3d9cf936f22d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Could you please elaborate which five trigger modes you have to add?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;#39;&amp;#39;Could you point me to where i can find how to include custom library into the project?&amp;#39;&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/discussions/30746"&gt;https://github.com/zephyrproject-rtos/zephyr/discussions/30746&lt;/a&gt;&amp;nbsp;may help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating LSM6DSL Custom FIFO and Interrupts Implementation from nRF to Zephyr SDK: Seeking Guidance</title><link>https://devzone.nordicsemi.com/thread/425559?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 10:14:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99fed06c-1d81-41fc-ba86-bdf50c51a64a</guid><dc:creator>choesy</dc:creator><description>&lt;p&gt;Thank you. So that means that there is alot of work to do if&amp;nbsp; i want to customize my lsm6dsl. Because i will need to have like 5 different trigger modes. I guess i will have to create my own library for it. Could you point me to where i can find how to include custom library into the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating LSM6DSL Custom FIFO and Interrupts Implementation from nRF to Zephyr SDK: Seeking Guidance</title><link>https://devzone.nordicsemi.com/thread/425247?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 08:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1dd84bb-8c02-4abe-95a6-be9b2cb4207d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;To enabled trigger mode, you need to set&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;CONFIG_LSM6DSL_TRIGGER=y&lt;/span&gt;&lt;/span&gt; (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.2-dev1/kconfig/CONFIG_LSM6DSL_TRIGGER.html"&gt;CONFIG_LSM6DSL_TRIGGER — Kconfig reference (nordicsemi.com)&lt;/a&gt;). When trigger mode is enabled, the driver can be set like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (drv_data-&amp;gt;hw_tf-&amp;gt;update_reg(dev,
			       LSM6DSL_REG_INT1_CTRL,
			       LSM6DSL_MASK_INT1_CTRL_DRDY_XL |
			       LSM6DSL_MASK_INT1_CTRL_DRDY_G,
			       BIT(LSM6DSL_SHIFT_INT1_CTRL_DRDY_XL) |
			       BIT(LSM6DSL_SHIFT_INT1_CTRL_DRDY_G)) &amp;lt; 0) {
		LOG_ERR(&amp;quot;Could not enable data-ready interrupt.&amp;quot;);
		return -EIO;
	}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/sensor/lsm6dsl/lsm6dsl_trigger.c#L142"&gt;sdk-zephyr/lsm6dsl_trigger.c at main · nrfconnect/sdk-zephyr · GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;FIFO threshold interrupt register is INT1_FTH.&amp;nbsp;You may select the register according to this ((&lt;a href="https://www.st.com/resource/en/datasheet/lsm6dsl.pdf"&gt;https://www.st.com/resource/en/datasheet/lsm6dsl.pdf&lt;/a&gt;)).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1683879195230v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>