Home
last modified time | relevance | path

Searched full:iis2dlpc (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-latest/drivers/sensor/st/iis2dlpc/
Diis2dlpc_trigger.c1 /* ST Microelectronics IIS2DLPC 3-axis accelerometer driver
8 * https://www.st.com/resource/en/datasheet/iis2dlpc.pdf
18 #include "iis2dlpc.h"
20 LOG_MODULE_DECLARE(IIS2DLPC, CONFIG_SENSOR_LOG_LEVEL);
98 struct iis2dlpc_data *iis2dlpc = dev->data; in iis2dlpc_trigger_set() local
104 iis2dlpc->drdy_handler = handler; in iis2dlpc_trigger_set()
105 iis2dlpc->drdy_trig = trig; in iis2dlpc_trigger_set()
113 iis2dlpc->tap_handler = handler; in iis2dlpc_trigger_set()
114 iis2dlpc->tap_trig = trig; in iis2dlpc_trigger_set()
117 iis2dlpc->double_tap_handler = handler; in iis2dlpc_trigger_set()
[all …]
DKconfig1 # ST Microelectronics IIS2DLPC 3-axis accelerometer driver
6 menuconfig IIS2DLPC config
7 bool "IIS2DLPC I2C/SPI accelerometer sensor driver"
16 Enable driver for IIS2DLPC accelerometer sensor driver
18 if IIS2DLPC
73 endif # IIS2DLPC
DCMakeLists.txt1 # ST Microelectronics IIS2DLPC 3-axis accelerometer driver
9 zephyr_library_sources(iis2dlpc.c)
Diis2dlpc.c1 /* ST Microelectronics IIS2DLPC 3-axis accelerometer driver
8 * https://www.st.com/resource/en/datasheet/iis2dlpc.pdf
24 #include "iis2dlpc.h"
26 LOG_MODULE_REGISTER(IIS2DLPC, CONFIG_SENSOR_LOG_LEVEL);
36 struct iis2dlpc_data *iis2dlpc = dev->data; in iis2dlpc_set_range() local
49 iis2dlpc->gain = IIS2DLPC_FS_TO_GAIN(fs, shift_gain); in iis2dlpc_set_range()
98 struct iis2dlpc_data *iis2dlpc = dev->data; in iis2dlpc_channel_get_acc() local
117 iis2dlpc_convert(pval++, iis2dlpc->acc[i], iis2dlpc->gain); in iis2dlpc_channel_get_acc()
227 struct iis2dlpc_data *iis2dlpc = dev->data; in iis2dlpc_sample_fetch() local
246 iis2dlpc->acc[0] = buf[0] >> shift; in iis2dlpc_sample_fetch()
[all …]
Diis2dlpc.h1 /* ST Microelectronics IIS2DLPC 3-axis accelerometer driver
8 * https://www.st.com/resource/en/datasheet/iis2dlpc.pdf
53 * struct iis2dlpc_dev_config - iis2dlpc hw configuration
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/sensorhub/src/
Dmain.c51 static void iis2dlpc_config(const struct device *iis2dlpc) in iis2dlpc_config() argument
55 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config()
59 if (sensor_attr_set(iis2dlpc, SENSOR_CHAN_ACCEL_XYZ, in iis2dlpc_config()
61 printk("Cannot set sampling frequency for IIS2DLPC accel\n"); in iis2dlpc_config()
67 if (sensor_attr_set(iis2dlpc, SENSOR_CHAN_ACCEL_XYZ, in iis2dlpc_config()
69 printk("Cannot set sampling frequency for IIS2DLPC gyro\n"); in iis2dlpc_config()
78 sensor_trigger_set(iis2dlpc, &trig, iis2dlpc_trigger_handler); in iis2dlpc_config()
159 const struct device *const iis2dlpc = DEVICE_DT_GET_ONE(st_iis2dlpc); in main() local
163 if (!device_is_ready(iis2dlpc)) { in main()
164 printk("%s: device not ready.\n", iis2dlpc->name); in main()
[all …]
/Zephyr-latest/boards/shields/mikroe_accel13_click/doc/
Dindex.rst9 The MikroElektronika ACCEL 13 Click carries the `IIS2DLPC`_ ultra-low
12 The `IIS2DLPC`_ sensor supports both SPI and I2C bus protocols. Currently
28 For more information about interfacing the IIS2DLPC and the ACCEL 13 Click,
31 - `IIS2DLPC Datasheet`_
47 https://www.st.com/en/mems-and-sensors/iis2dlpc.html
53 https://www.st.com/resource/en/datasheet/iis2dlpc.pdf
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/src/
Dmain.c54 static void iis2dlpc_config(const struct device *iis2dlpc) in iis2dlpc_config() argument
58 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config()
62 if (sensor_attr_set(iis2dlpc, SENSOR_CHAN_ACCEL_XYZ, in iis2dlpc_config()
64 printk("Cannot set sampling frequency for IIS2DLPC accel\n"); in iis2dlpc_config()
70 if (sensor_attr_set(iis2dlpc, SENSOR_CHAN_ACCEL_XYZ, in iis2dlpc_config()
72 printk("Cannot set sampling frequency for IIS2DLPC gyro\n"); in iis2dlpc_config()
81 sensor_trigger_set(iis2dlpc, &trig, iis2dlpc_trigger_handler); in iis2dlpc_config()
170 const struct device *const iis2dlpc = DEVICE_DT_GET_ONE(st_iis2dlpc); in main() local
175 if (!device_is_ready(iis2dlpc)) { in main()
176 printk("%s: device not ready.\n", iis2dlpc->name); in main()
[all …]
/Zephyr-latest/dts/bindings/sensor/
Dst,iis2dlpc-i2c.yaml5 STMicroelectronics IIS2DLPC accelerometer accessed through I2C bus
7 compatible: "st,iis2dlpc"
9 include: ["i2c-device.yaml", "st,iis2dlpc-common.yaml"]
Dst,iis2dlpc-spi.yaml5 STMicroelectronics IIS2DLPC accelerometer accessed through SPI bus
7 compatible: "st,iis2dlpc"
9 include: ["spi-device.yaml", "st,iis2dlpc-common.yaml"]
Dst,iis2dlpc-common.yaml6 iis2dlpc.h and use the macros defined there.
9 #include <zephyr/dt-bindings/sensor/iis2dlpc.h>
11 iis2dlpc: iis2dlpc@0 {
/Zephyr-latest/boards/shields/x_nucleo_iks02a1/
Dx_nucleo_iks02a1_shub.overlay13 * Only ISM330DHCX and IIS2DLPC sensors are accessible from the main board mcu.
27 iis2dlpc_19_x_nucleo_iks02a1_shub: iis2dlpc@19 {
28 compatible = "st,iis2dlpc";
Dx_nucleo_iks02a1.overlay13 * ISM330DHCX, IIS2MDC and IIS2DLPC sensors are accessible from the main board mcu.
25 iis2dlpc_19_x_nucleo_iks02a1: iis2dlpc@19 {
26 compatible = "st,iis2dlpc";
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c103 static void iis2dlpc_config(const struct device *iis2dlpc) in iis2dlpc_config() argument
107 /* set IIS2DLPC accel/gyro sampling frequency to 100 Hz */ in iis2dlpc_config()
111 if (sensor_attr_set(iis2dlpc, SENSOR_CHAN_ACCEL_XYZ, in iis2dlpc_config()
113 printk("Cannot set sampling frequency for IIS2DLPC accel\n"); in iis2dlpc_config()
119 if (sensor_attr_set(iis2dlpc, SENSOR_CHAN_ACCEL_XYZ, in iis2dlpc_config()
121 printk("Cannot set full scale for IIS2DLPC accel\n"); in iis2dlpc_config()
130 sensor_trigger_set(iis2dlpc, &trig, iis2dlpc_trigger_handler); in iis2dlpc_config()
311 const struct device *const iis2dlpc = DEVICE_DT_GET_ONE(st_iis2dlpc); in main() local
327 if (!device_is_ready(iis2dlpc)) { in main()
328 printk("%s: device not ready.\n", iis2dlpc->name); in main()
[all …]
/Zephyr-latest/boards/shields/mikroe_accel13_click/
Dmikroe_accel13_click.overlay16 iis2dlpc_mikroe_accel13_click: iis2dlpc@18 {
17 compatible = "st,iis2dlpc";
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/sensorhub/
DREADME.rst13 This sample enables IIS2DLPC and ISM330DHCX sensors. Since all other shield
20 - IIS2DLPC 3-Axis acceleration
66 IIS2DLPC: Accel (m.s-2): x: 0.077, y: -0.766, z: 9.878
70 7:: iis2dlpc trig 1215
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/
DREADME.rst17 - IIS2DLPC 3-Axis acceleration
61 IIS2DLPC: Accel (m.s-2): x: 0.000, y: 0.000, z: 9.342
66 5:: iis2dlpc trig 809
/Zephyr-latest/boards/shields/x_nucleo_iks02a1/doc/
Dindex.rst12 the IIS2MDC 3-axis magnetometer, the IIS2DLPC 3-axis accelerometer and
33 - IIS2DLPC MEMS 3D accelerometer low power (±2/±4/±8/±16 g)
47 - IIS2DLPC and ISM330DHCX are on I2C2
69 In SensorHub mode ISM330DHCX and IIS2DLPC are connected to I2C2 and are accessible from the main bo…
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/
DREADME.rst18 - IIS2DLPC: high-performance ultra-low-power 3-axis accelerometer for industrial applications
68 IIS2DLPC: Accel (m.s-2): x: -5.590, y: -0.536, z: 8.040
76 1:: iis2dlpc trig 2021
/Zephyr-latest/drivers/sensor/st/
DCMakeLists.txt9 add_subdirectory_ifdef(CONFIG_IIS2DLPC iis2dlpc)
DKconfig8 source "drivers/sensor/st/iis2dlpc/Kconfig"
/Zephyr-latest/boards/st/steval_stwinbx1/
Dsteval_stwinbx1.dts157 iis2dlpc: iis2dlpc@0 { label
158 compatible = "st,iis2dlpc";
/Zephyr-latest/boards/st/steval_stwinbx1/doc/
Dindex.rst174 - **IIS2DLPC** high-performance ultra-low-power 3-axis accelerometer for industrial applications
175 (`iis2dlpc datasheet`_)
391 https://www.st.com/en/mems-and-sensors/iis2dlpc.html
/Zephyr-latest/tests/drivers/build_all/sensor/
Dspi.dtsi46 test_spi_iis2dlpc: iis2dlpc@5 {
47 compatible = "st,iis2dlpc";
Di2c.dtsi17 #include <zephyr/dt-bindings/sensor/iis2dlpc.h>
269 test_i2c_iis2dlpc: iis2dlpc@27 {
270 compatible = "st,iis2dlpc";

12