/Zephyr-Core-3.5.0/drivers/sensor/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 | 91 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_channel_get_mag() local 110 cval = lis2mdl->mag[i] * 1500; in lis2mdl_channel_get_mag() 192 struct lis2mdl_data *lis2mdl = dev->data; in get_single_mode_raw_data() local 203 if (k_sem_take(&lis2mdl->fetch_sem, K_MSEC(SAMPLE_FETCH_TIMEOUT_MS))) { in get_single_mode_raw_data() 220 struct lis2mdl_data *lis2mdl = dev->data; in lis2mdl_sample_fetch_mag() local 232 lis2mdl->mag[0] = sys_le16_to_cpu(raw_mag[0]); in lis2mdl_sample_fetch_mag() 233 lis2mdl->mag[1] = sys_le16_to_cpu(raw_mag[1]); in lis2mdl_sample_fetch_mag() 234 lis2mdl->mag[2] = sys_le16_to_cpu(raw_mag[2]); in lis2mdl_sample_fetch_mag() 250 lis2mdl->mag[0] += sys_le16_to_cpu(raw_mag[0]); in lis2mdl_sample_fetch_mag() 251 lis2mdl->mag[1] += sys_le16_to_cpu(raw_mag[1]); in lis2mdl_sample_fetch_mag() [all …]
|
D | CMakeLists.txt | 8 zephyr_library_sources(lis2mdl.c)
|
/Zephyr-Core-3.5.0/samples/shields/x_nucleo_iks01a3/standard/src/ |
D | main.c | 83 static void lis2mdl_config(const struct device *lis2mdl) in lis2mdl_config() argument 91 if (sensor_attr_set(lis2mdl, SENSOR_CHAN_ALL, in lis2mdl_config() 102 sensor_trigger_set(lis2mdl, &trig, lis2mdl_trigger_handler); in lis2mdl_config() 253 const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl); in main() local 270 if (!device_is_ready(lis2mdl)) { in main() 271 printk("%s: device not ready.\n", lis2mdl->name); in main() 283 lis2mdl_config(lis2mdl); in main() 308 if (sensor_sample_fetch(lis2mdl) < 0) { in main() 334 sensor_channel_get(lis2mdl, SENSOR_CHAN_MAGN_XYZ, magn); in main() 335 sensor_channel_get(lis2mdl, SENSOR_CHAN_DIE_TEMP, &die_temp2); in main()
|
/Zephyr-Core-3.5.0/boards/shields/x_nucleo_iks01a3/ |
D | x_nucleo_iks01a3.overlay | 34 lis2mdl_1e_x_nucleo_iks01a3: lis2mdl@1e { 35 compatible = "st,lis2mdl";
|
/Zephyr-Core-3.5.0/boards/arm/sensortile_box/ |
D | sensortile_box.dts | 49 magn0 = &lis2mdl; 172 lis2mdl: lis2mdl@0 { label 173 compatible = "st,lis2mdl";
|
/Zephyr-Core-3.5.0/samples/boards/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-Core-3.5.0/boards/shields/x_nucleo_iks01a3/boards/x_nucleo_iks01a3/ |
D | stm32mp157c_dk2.overlay | 17 lis2mdl_x_nucleo_iks01a3: lis2mdl@1e {
|
/Zephyr-Core-3.5.0/boards/arm/stm32f3_disco/ |
D | stm32f3_disco_E.overlay | 19 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-Core-3.5.0/boards/shields/x_nucleo_iks01a2/ |
D | x_nucleo_iks01a2.overlay | 35 compatible = "st,lis2mdl","st,lsm303agr-magn";
|
/Zephyr-Core-3.5.0/boards/arm/az3166_iotdevkit/ |
D | az3166_iotdevkit.dts | 153 lis2mdl@1e { 154 compatible = "st,lis2mdl";
|
/Zephyr-Core-3.5.0/tests/drivers/build_all/sensor/ |
D | spi.dtsi | 96 test_spi_lis2mdl: lis2mdl@c { 97 compatible = "st,lis2mdl";
|
D | i2c.dtsi | 294 test_i2c_lis2mdl: lis2mdl@2e { 295 compatible = "st,lis2mdl";
|
/Zephyr-Core-3.5.0/samples/shields/x_nucleo_iks01a3/standard/ |
D | README.rst | 75 1:: lis2mdl trig 208
|
/Zephyr-Core-3.5.0/boards/arm/stm32f411e_disco/ |
D | stm32f411e_disco.dts | 134 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-Core-3.5.0/boards/arm/bbc_microbit_v2/ |
D | bbc_microbit_v2.dts | 136 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-Core-3.5.0/boards/arm/bbc_microbit/ |
D | bbc_microbit.dts | 147 compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
/Zephyr-Core-3.5.0/drivers/sensor/ |
D | CMakeLists.txt | 68 add_subdirectory_ifdef(CONFIG_LIS2MDL lis2mdl)
|
D | Kconfig | 124 source "drivers/sensor/lis2mdl/Kconfig"
|
/Zephyr-Core-3.5.0/doc/releases/ |
D | release-notes-1.14.rst | 781 * Added lis2ds12, lis2dw12, lis2mdl, and lsm303dlhc drivers 1917 * :github:`11101` - [Coverity CID :189505]Error handling issues in /drivers/sensor/lis2mdl/lis2mdl_…
|