Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/sensor/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.c91 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 …]
DCMakeLists.txt8 zephyr_library_sources(lis2mdl.c)
/Zephyr-Core-3.5.0/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c83 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/
Dx_nucleo_iks01a3.overlay34 lis2mdl_1e_x_nucleo_iks01a3: lis2mdl@1e {
35 compatible = "st,lis2mdl";
/Zephyr-Core-3.5.0/boards/arm/sensortile_box/
Dsensortile_box.dts49 magn0 = &lis2mdl;
172 lis2mdl: lis2mdl@0 { label
173 compatible = "st,lis2mdl";
/Zephyr-Core-3.5.0/samples/boards/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-Core-3.5.0/boards/shields/x_nucleo_iks01a3/boards/x_nucleo_iks01a3/
Dstm32mp157c_dk2.overlay17 lis2mdl_x_nucleo_iks01a3: lis2mdl@1e {
/Zephyr-Core-3.5.0/boards/arm/stm32f3_disco/
Dstm32f3_disco_E.overlay19 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-Core-3.5.0/boards/shields/x_nucleo_iks01a2/
Dx_nucleo_iks01a2.overlay35 compatible = "st,lis2mdl","st,lsm303agr-magn";
/Zephyr-Core-3.5.0/boards/arm/az3166_iotdevkit/
Daz3166_iotdevkit.dts153 lis2mdl@1e {
154 compatible = "st,lis2mdl";
/Zephyr-Core-3.5.0/tests/drivers/build_all/sensor/
Dspi.dtsi96 test_spi_lis2mdl: lis2mdl@c {
97 compatible = "st,lis2mdl";
Di2c.dtsi294 test_i2c_lis2mdl: lis2mdl@2e {
295 compatible = "st,lis2mdl";
/Zephyr-Core-3.5.0/samples/shields/x_nucleo_iks01a3/standard/
DREADME.rst75 1:: lis2mdl trig 208
/Zephyr-Core-3.5.0/boards/arm/stm32f411e_disco/
Dstm32f411e_disco.dts134 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-Core-3.5.0/boards/arm/bbc_microbit_v2/
Dbbc_microbit_v2.dts136 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-Core-3.5.0/boards/arm/bbc_microbit/
Dbbc_microbit.dts147 compatible = "st,lis2mdl", "st,lsm303agr-magn";
/Zephyr-Core-3.5.0/drivers/sensor/
DCMakeLists.txt68 add_subdirectory_ifdef(CONFIG_LIS2MDL lis2mdl)
DKconfig124 source "drivers/sensor/lis2mdl/Kconfig"
/Zephyr-Core-3.5.0/doc/releases/
Drelease-notes-1.14.rst781 * Added lis2ds12, lis2dw12, lis2mdl, and lsm303dlhc drivers
1917 * :github:`11101` - [Coverity CID :189505]Error handling issues in /drivers/sensor/lis2mdl/lis2mdl_…