Home
last modified time | relevance | path

Searched refs:lis2mdl (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/drivers/sensor/st/lis2mdl/
Dlis2mdl_trigger.c38 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_trigger_set() local
47 lis2mdl->handler_drdy = handler; in lis2mdl_trigger_set()
48 lis2mdl->trig_drdy = trig; in lis2mdl_trigger_set()
65 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_handle_interrupt() local
68 if (lis2mdl->handler_drdy != NULL) { in lis2mdl_handle_interrupt()
69 lis2mdl->handler_drdy(dev, lis2mdl->trig_drdy); in lis2mdl_handle_interrupt()
73 k_sem_give(&lis2mdl->fetch_sem); in lis2mdl_handle_interrupt()
83 struct lis2mdl_data *lis2mdl = in lis2mdl_gpio_callback() local
85 const struct lis2mdl_config *const cfg = lis2mdl->dev->config; in lis2mdl_gpio_callback()
92 k_sem_give(&lis2mdl->gpio_sem); in lis2mdl_gpio_callback()
[all …]
Dlis2mdl.c90 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_channel_get_mag() local
109 cval = lis2mdl->mag[i] * 1500; in lis2mdl_channel_get_mag()
191 struct lis2mdl_data *lis2mdl = dev->data; in get_single_mode_raw_data() local
202 if (k_sem_take(&lis2mdl->fetch_sem, K_MSEC(SAMPLE_FETCH_TIMEOUT_MS))) { in get_single_mode_raw_data()
219 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_sample_fetch_mag() local
231 lis2mdl->mag[0] = raw_mag[0]; in lis2mdl_sample_fetch_mag()
232 lis2mdl->mag[1] = raw_mag[1]; in lis2mdl_sample_fetch_mag()
233 lis2mdl->mag[2] = raw_mag[2]; in lis2mdl_sample_fetch_mag()
249 lis2mdl->mag[0] += raw_mag[0]; in lis2mdl_sample_fetch_mag()
250 lis2mdl->mag[1] += raw_mag[1]; in lis2mdl_sample_fetch_mag()
[all …]
DCMakeLists.txt8 zephyr_library_sources(lis2mdl.c)
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/src/
Dmain.c68 static void lis2mdl_config(const struct device *lis2mdl) in lis2mdl_config() argument
76 if (sensor_attr_set(lis2mdl, SENSOR_CHAN_ALL, in lis2mdl_config()
87 sensor_trigger_set(lis2mdl, &trig, lis2mdl_trigger_handler); in lis2mdl_config()
271 const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl); in main() local
286 if (!device_is_ready(lis2mdl)) { in main()
287 printk("%s: device not ready.\n", lis2mdl->name); in main()
299 lis2mdl_config(lis2mdl); in main()
309 if (sensor_sample_fetch(lis2mdl) < 0) { in main()
340 sensor_channel_get(lis2mdl, SENSOR_CHAN_MAGN_XYZ, lis2mdl_magn); in main()
341 sensor_channel_get(lis2mdl, SENSOR_CHAN_DIE_TEMP, &lis2mdl_temp); in main()
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c94 static void lis2mdl_config(const struct device *lis2mdl) in lis2mdl_config() argument
102 if (sensor_attr_set(lis2mdl, SENSOR_CHAN_ALL, in lis2mdl_config()
113 sensor_trigger_set(lis2mdl, &trig, lis2mdl_trigger_handler); in lis2mdl_config()
299 const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl); in main() local
320 if (!device_is_ready(lis2mdl)) { in main()
321 printk("%s: device not ready.\n", lis2mdl->name); in main()
339 lis2mdl_config(lis2mdl); in main()
367 if (sensor_sample_fetch(lis2mdl) < 0) { in main()
401 sensor_channel_get(lis2mdl, SENSOR_CHAN_MAGN_XYZ, magn); in main()
402 sensor_channel_get(lis2mdl, SENSOR_CHAN_DIE_TEMP, &die_temp2); in main()
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/src/
Dmain.c168 static void lis2mdl_config(const struct device *lis2mdl) in lis2mdl_config() argument
176 if (sensor_attr_set(lis2mdl, SENSOR_CHAN_ALL, in lis2mdl_config()
187 sensor_trigger_set(lis2mdl, &trig, lis2mdl_trigger_handler); in lis2mdl_config()
304 const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl); in main() local
316 if (!device_is_ready(lis2mdl)) { in main()
317 printk("%s: device not ready.\n", lis2mdl->name); in main()
331 lis2mdl_config(lis2mdl); in main()
358 if (sensor_sample_fetch(lis2mdl) < 0) { in main()
382 sensor_channel_get(lis2mdl, SENSOR_CHAN_MAGN_XYZ, lis2mdl_magn); in main()
383 sensor_channel_get(lis2mdl, SENSOR_CHAN_DIE_TEMP, &lis2mdl_temp); in main()
/Zephyr-latest/boards/shields/x_nucleo_iks01a3/
Dx_nucleo_iks01a3.overlay34 lis2mdl_1e_x_nucleo_iks01a3: lis2mdl@1e {
35 compatible = "st,lis2mdl";
/Zephyr-latest/boards/shields/x_nucleo_iks4a1/
Dx_nucleo_iks4a1.overlay37 lis2mdl_1e_x_nucleo_iks4a1: lis2mdl@1e {
38 compatible = "st,lis2mdl";
/Zephyr-latest/samples/boards/st/sensortile_box/src/
Dmain.c299 const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl); in main() local
325 if (!device_is_ready(lis2mdl)) { in main()
326 printk("%s: device not ready.\n", lis2mdl->name); in main()
387 if (sensor_sample_fetch(lis2mdl) < 0) { in main()
401 sensor_channel_get(lis2mdl, SENSOR_CHAN_MAGN_XYZ, magn); in main()
/Zephyr-latest/boards/st/sensortile_box/
Dsensortile_box.dts51 magn0 = &lis2mdl;
191 lis2mdl: lis2mdl@0 { label
192 compatible = "st,lis2mdl";
/Zephyr-latest/boards/shields/x_nucleo_iks01a3/boards/x_nucleo_iks01a3/
Dstm32mp157c_dk2.overlay17 lis2mdl_x_nucleo_iks01a3: lis2mdl@1e {
/Zephyr-latest/boards/st/stm32f3_disco/
Dstm32f3_disco_stm32f303xc_E.overlay19 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-latest/boards/shields/x_nucleo_iks01a2/
Dx_nucleo_iks01a2.overlay35 compatible = "st,lis2mdl","st,lsm303agr-magn";
/Zephyr-latest/boards/mxchip/az3166_iotdevkit/
Daz3166_iotdevkit.dts153 lis2mdl@1e {
154 compatible = "st,lis2mdl";
/Zephyr-latest/drivers/sensor/st/
DCMakeLists.txt21 add_subdirectory_ifdef(CONFIG_LIS2MDL lis2mdl)
DKconfig20 source "drivers/sensor/st/lis2mdl/Kconfig"
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/
DREADME.rst60 10:: lis2mdl trig 1839
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/
DREADME.rst72 1:: lis2mdl trig 402
/Zephyr-latest/boards/st/sensortile_box_pro/
Dsensortile_box_pro.dts235 lis2mdl@1e {
236 compatible = "st,lis2mdl";
/Zephyr-latest/tests/drivers/build_all/sensor/
Dspi.dtsi96 test_spi_lis2mdl: lis2mdl@c {
97 compatible = "st,lis2mdl";
/Zephyr-latest/boards/st/stm32f411e_disco/
Dstm32f411e_disco.dts137 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-latest/boards/bbc/microbit_v2/
Dbbc_microbit_v2.dts144 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/
DREADME.rst86 1:: lis2mdl trig 208
/Zephyr-latest/boards/bbc/microbit/
Dbbc_microbit.dts147 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-latest/boards/st/sensortile_box_pro/doc/
Dindex.rst157 (`lis2mdl datasheet`_)
339 https://www.st.com/en/mems-and-sensors/lis2mdl.html

12