Home
last modified time | relevance | path

Searched refs:iis2mdc (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc_trigger.c23 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()
56 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_handle_interrupt() local
59 if (iis2mdc->handler_drdy != NULL) { in iis2mdc_handle_interrupt()
60 iis2mdc->handler_drdy(dev, iis2mdc->trig_drdy); in iis2mdc_handle_interrupt()
70 struct iis2mdc_data *iis2mdc = in iis2mdc_gpio_callback() local
[all …]
Diis2mdc.c28 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()
178 struct iis2mdc_data *iis2mdc = dev->data; in iis2mdc_sample_fetch_mag() local
182 if (iis2mdc_magnetic_raw_get(iis2mdc->ctx, raw_mag) < 0) { in iis2mdc_sample_fetch_mag()
187 iis2mdc->mag[0] = raw_mag[0]; in iis2mdc_sample_fetch_mag()
188 iis2mdc->mag[1] = raw_mag[1]; in iis2mdc_sample_fetch_mag()
[all …]
DCMakeLists.txt8 zephyr_library_sources(iis2mdc.c)
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/src/
Dmain.c85 static void iis2mdc_config(const struct device *iis2mdc) in iis2mdc_config() argument
93 if (sensor_attr_set(iis2mdc, SENSOR_CHAN_ALL, 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()
217 sensor_channel_get(iis2mdc, SENSOR_CHAN_MAGN_XYZ, magn); in main()
218 sensor_channel_get(iis2mdc, SENSOR_CHAN_DIE_TEMP, &die_temp2); in main()
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c165 static void iis2mdc_config(const struct device *iis2mdc) in iis2mdc_config() argument
173 if (sensor_attr_set(iis2mdc, SENSOR_CHAN_ALL, 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()
395 sensor_channel_get(iis2mdc, SENSOR_CHAN_MAGN_XYZ, iis2mdc_magn); in main()
396 sensor_channel_get(iis2mdc, SENSOR_CHAN_DIE_TEMP, &iis2mdc_temp); in main()
/Zephyr-latest/boards/shields/x_nucleo_iks02a1/
Dx_nucleo_iks02a1.overlay32 iis2mdc_x_nucleo_iks02a1: iis2mdc@1e {
33 compatible = "st,iis2mdc";
/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/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/samples/boards/st/steval_stwinbx1/sensors/
DREADME.rst77 1:: iis2mdc trig 993
/Zephyr-latest/tests/drivers/build_all/sensor/
Dspi.dtsi53 test_spi_iis2mdc: iis2mdc@6 {
54 compatible = "st,iis2mdc";
Di2c.dtsi277 test_i2c_iis2mdc: iis2mdc@28 {
278 compatible = "st,iis2mdc";
/Zephyr-latest/boards/st/steval_stwinbx1/doc/
Dindex.rst177 (`iis2mdc datasheet`_)
394 https://www.st.com/en/mems-and-sensors/iis2mdc.html
/Zephyr-latest/doc/releases/
Drelease-notes-2.6.rst1207 * :github:`35156` - [Coverity CID: 235979] Unchecked return value in drivers/sensor/iis2mdc/iis2mdc…