Home
last modified time | relevance | path

Searched full:iis2mdc (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc_trigger.c1 /* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
8 * https://www.st.com/resource/en/datasheet/iis2mdc.pdf
17 #include "iis2mdc.h"
19 LOG_MODULE_DECLARE(IIS2MDC, CONFIG_SENSOR_LOG_LEVEL);
23 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_enable_int() local
26 return iis2mdc_drdy_on_pin_set(iis2mdc->ctx, enable); in iis2mdc_enable_int()
34 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_trigger_set() local
38 iis2mdc->handler_drdy = handler; in iis2mdc_trigger_set()
39 iis2mdc->trig_drdy = trig; in iis2mdc_trigger_set()
42 iis2mdc_magnetic_raw_get(iis2mdc->ctx, raw); in iis2mdc_trigger_set()
[all …]
Diis2mdc.c1 /* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
8 * https://www.st.com/resource/en/datasheet/iis2mdc.pdf
18 #include "iis2mdc.h"
22 LOG_MODULE_REGISTER(IIS2MDC, CONFIG_SENSOR_LOG_LEVEL);
28 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_set_odr() local
48 if (iis2mdc_data_rate_set(iis2mdc->ctx, odr)) { in iis2mdc_set_odr()
60 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_set_hard_iron() local
69 return iis2mdc_mag_user_offset_set(iis2mdc->ctx, offset); in iis2mdc_set_hard_iron()
79 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_channel_get_mag() local
98 cval = iis2mdc->mag[i] * 1500; in iis2mdc_channel_get_mag()
[all …]
DKconfig4 menuconfig IIS2MDC config
5 bool "IIS2MDC Magnetometer"
14 Enable driver for IIS2MDC I2C-based magnetometer sensor.
16 if IIS2MDC
62 endif # IIS2MDC
Diis2mdc_i2c.c1 /* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
8 * https://www.st.com/resource/en/datasheet/iis2mdc.pdf
16 #include "iis2mdc.h"
20 LOG_MODULE_DECLARE(IIS2MDC, CONFIG_SENSOR_LOG_LEVEL);
Diis2mdc_spi.c1 /* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
8 * https://www.st.com/resource/en/datasheet/iis2mdc.pdf
14 #include "iis2mdc.h"
21 LOG_MODULE_DECLARE(IIS2MDC, CONFIG_SENSOR_LOG_LEVEL);
DCMakeLists.txt8 zephyr_library_sources(iis2mdc.c)
Diis2mdc.h1 /* ST Microelectronics IIS2MDC 3-axis magnetometer sensor
8 * https://www.st.com/resource/en/datasheet/iis2mdc.pdf
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/src/
Dmain.c85 static void iis2mdc_config(const struct device *iis2mdc) in iis2mdc_config() argument
89 /* set IIS2MDC sampling frequency to 100 Hz */ in iis2mdc_config()
93 if (sensor_attr_set(iis2mdc, SENSOR_CHAN_ALL, in iis2mdc_config()
95 printk("Cannot set sampling frequency for IIS2MDC\n"); in iis2mdc_config()
104 sensor_trigger_set(iis2mdc, &trig, iis2mdc_trigger_handler); in iis2mdc_config()
171 const struct device *const iis2mdc = DEVICE_DT_GET_ONE(st_iis2mdc); in main() local
179 if (!device_is_ready(iis2mdc)) { in main()
180 printk("%s: device not ready.\n", iis2mdc->name); in main()
189 iis2mdc_config(iis2mdc); in main()
202 if (sensor_sample_fetch(iis2mdc) < 0) { in main()
[all …]
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c165 static void iis2mdc_config(const struct device *iis2mdc) in iis2mdc_config() argument
169 /* set IIS2MDC sampling frequency to 100 Hz */ in iis2mdc_config()
173 if (sensor_attr_set(iis2mdc, SENSOR_CHAN_ALL, in iis2mdc_config()
175 printk("Cannot set sampling frequency for IIS2MDC\n"); in iis2mdc_config()
184 sensor_trigger_set(iis2mdc, &trig, iis2mdc_trigger_handler); in iis2mdc_config()
309 const struct device *const iis2mdc = DEVICE_DT_GET_ONE(st_iis2mdc); in main() local
319 if (!device_is_ready(iis2mdc)) { in main()
320 printk("%s: device not ready.\n", iis2mdc->name); in main()
341 iis2mdc_config(iis2mdc); in main()
364 if (sensor_sample_fetch(iis2mdc) < 0) { in main()
[all …]
/Zephyr-latest/boards/shields/x_nucleo_iks02a1/
Dx_nucleo_iks02a1.overlay13 * ISM330DHCX, IIS2MDC and IIS2DLPC sensors are accessible from the main board mcu.
32 iis2mdc_x_nucleo_iks02a1: iis2mdc@1e {
33 compatible = "st,iis2mdc";
Dx_nucleo_iks02a1_shub.overlay14 * IIS2MDC is connected directly to ISM330DHCX SCx/SDX (I2Cx) pins, so it is not
/Zephyr-latest/dts/bindings/sensor/
Dst,iis2mdc-spi.yaml5 STMicroelectronics IIS2MDC magnetometer accessed through SPI bus
7 compatible: "st,iis2mdc"
Dst,iis2mdc-i2c.yaml5 STMicroelectronics IIS2MDC magnetometer accessed through I2C bus
7 compatible: "st,iis2mdc"
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/
DREADME.rst16 - IIS2MDC: 3-axis magnetometer
69 IIS2MDC: Magn (gauss): x: 0.420, y: -0.116, z: -0.103
70 IIS2MDC: Temperature: 21.0 C
77 1:: iis2mdc trig 993
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/
DREADME.rst16 - IIS2MDC 3-Axis magnetic field intensity
62 IIS2MDC: Magn (gauss): x: -0.120, y: -0.095, z: -0.338
63 IIS2MDC: Temperature: 25.1 C
/Zephyr-latest/boards/shields/x_nucleo_iks02a1/doc/
Dindex.rst12 the IIS2MDC 3-axis magnetometer, the IIS2DLPC 3-axis accelerometer and
32 - IIS2MDC MEMS 3D magnetometer (±50 gauss)
48 - IIS2MDC is on I2C1
70 Instead, the IIS2MDC device is connected only to ISM330DHCX sensor through its SCx/SDX (I2Cx) pins.
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/sensorhub/
DREADME.rst15 mode (CONFIG_ISM330DHCX_SENSORHUB=y) with the IIS2MDC magnetometer as external
22 - ISM330DHCX (from IIS2MDC) 3-Axis magnetic field intensity
/Zephyr-latest/boards/olimex/lora_stm32wl_devkit/
Dolimex_lora_stm32wl_devkit.dts102 iis2mdc@1e {
103 compatible = "st,iis2mdc";
/Zephyr-latest/drivers/sensor/st/
DCMakeLists.txt11 add_subdirectory_ifdef(CONFIG_IIS2MDC iis2mdc)
DKconfig10 source "drivers/sensor/st/iis2mdc/Kconfig"
/Zephyr-latest/drivers/sensor/st/iis2iclx/
DKconfig82 bool "IIS2MDC as external sensor"
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
DKconfig82 bool "IIS2MDC as external sensor"
/Zephyr-latest/boards/st/b_u585i_iot02a/
Db_u585i_iot02a-common.dtsi175 iis2mdc@1e {
176 compatible = "st,iis2mdc";
/Zephyr-latest/boards/st/steval_stwinbx1/
Dsteval_stwinbx1.dts212 iis2mdc@1e {
213 compatible = "st,iis2mdc";
/Zephyr-latest/boards/st/steval_stwinbx1/doc/
Dindex.rst176 - **IIS2MDC** 3-axis magnetometer
177 (`iis2mdc datasheet`_)
394 https://www.st.com/en/mems-and-sensors/iis2mdc.html

12