/Zephyr-latest/drivers/sensor/st/lis2mdl/ |
D | lis2mdl_trigger.c | 38 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 …]
|
D | lis2mdl.c | 90 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 …]
|
D | CMakeLists.txt | 8 zephyr_library_sources(lis2mdl.c)
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/src/ |
D | main.c | 68 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/ |
D | main.c | 94 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/ |
D | main.c | 168 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/ |
D | x_nucleo_iks01a3.overlay | 34 lis2mdl_1e_x_nucleo_iks01a3: lis2mdl@1e { 35 compatible = "st,lis2mdl";
|
/Zephyr-latest/boards/shields/x_nucleo_iks4a1/ |
D | x_nucleo_iks4a1.overlay | 37 lis2mdl_1e_x_nucleo_iks4a1: lis2mdl@1e { 38 compatible = "st,lis2mdl";
|
/Zephyr-latest/samples/boards/st/sensortile_box/src/ |
D | main.c | 299 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/ |
D | sensortile_box.dts | 51 magn0 = &lis2mdl; 191 lis2mdl: lis2mdl@0 { label 192 compatible = "st,lis2mdl";
|
/Zephyr-latest/boards/shields/x_nucleo_iks01a3/boards/x_nucleo_iks01a3/ |
D | stm32mp157c_dk2.overlay | 17 lis2mdl_x_nucleo_iks01a3: lis2mdl@1e {
|
/Zephyr-latest/boards/st/stm32f3_disco/ |
D | stm32f3_disco_stm32f303xc_E.overlay | 19 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-latest/boards/shields/x_nucleo_iks01a2/ |
D | x_nucleo_iks01a2.overlay | 35 compatible = "st,lis2mdl","st,lsm303agr-magn";
|
/Zephyr-latest/boards/mxchip/az3166_iotdevkit/ |
D | az3166_iotdevkit.dts | 153 lis2mdl@1e { 154 compatible = "st,lis2mdl";
|
/Zephyr-latest/drivers/sensor/st/ |
D | CMakeLists.txt | 21 add_subdirectory_ifdef(CONFIG_LIS2MDL lis2mdl)
|
D | Kconfig | 20 source "drivers/sensor/st/lis2mdl/Kconfig"
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/ |
D | README.rst | 60 10:: lis2mdl trig 1839
|
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/ |
D | README.rst | 72 1:: lis2mdl trig 402
|
/Zephyr-latest/boards/st/sensortile_box_pro/ |
D | sensortile_box_pro.dts | 235 lis2mdl@1e { 236 compatible = "st,lis2mdl";
|
/Zephyr-latest/tests/drivers/build_all/sensor/ |
D | spi.dtsi | 96 test_spi_lis2mdl: lis2mdl@c { 97 compatible = "st,lis2mdl";
|
/Zephyr-latest/boards/st/stm32f411e_disco/ |
D | stm32f411e_disco.dts | 137 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-latest/boards/bbc/microbit_v2/ |
D | bbc_microbit_v2.dts | 144 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/ |
D | README.rst | 86 1:: lis2mdl trig 208
|
/Zephyr-latest/boards/bbc/microbit/ |
D | bbc_microbit.dts | 147 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-latest/boards/st/sensortile_box_pro/doc/ |
D | index.rst | 157 (`lis2mdl datasheet`_) 339 https://www.st.com/en/mems-and-sensors/lis2mdl.html
|