Home
last modified time | relevance | path

Searched refs:trig (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/Zephyr-Core-3.7.0/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c17 const struct sensor_trigger *trig) in lis2mdl_trigger_handler() argument
28 const struct sensor_trigger *trig) in lps22hh_trigger_handler() argument
39 const struct sensor_trigger *trig) in stts751_trigger_handler() argument
49 const struct sensor_trigger *trig) in lis2dw12_trigger_handler() argument
62 const struct sensor_trigger *trig) in lsm6dso_acc_trig_handler() argument
69 const struct sensor_trigger *trig) in lsm6dso_gyr_trig_handler() argument
76 const struct sensor_trigger *trig) in lsm6dso_temp_trig_handler() argument
87 const struct sensor_trigger *trig) in lis2de12_trigger_handler() argument
109 struct sensor_trigger trig; in lis2mdl_config() local
111 trig.type = SENSOR_TRIG_DATA_READY; in lis2mdl_config()
[all …]
/Zephyr-Core-3.7.0/samples/boards/sensortile_box/src/
Dmain.c27 const struct sensor_trigger *trig) in lps22hh_trigger_handler() argument
38 const struct sensor_trigger *trig) in lis2dw12_trigger_handler() argument
51 const struct sensor_trigger *trig) in lsm6dso_acc_trig_handler() argument
58 const struct sensor_trigger *trig) in lsm6dso_gyr_trig_handler() argument
65 const struct sensor_trigger *trig) in lsm6dso_temp_trig_handler() argument
76 const struct sensor_trigger *trig) in stts751_trigger_handler() argument
86 const struct sensor_trigger *trig) in iis3dhhc_trigger_handler() argument
108 struct sensor_trigger trig; in lps22hh_config() local
110 trig.type = SENSOR_TRIG_DATA_READY; in lps22hh_config()
111 trig.chan = SENSOR_CHAN_ALL; in lps22hh_config()
[all …]
/Zephyr-Core-3.7.0/samples/boards/sensortile_box_pro/sensors-on-board/src/
Dmain.c22 const struct sensor_trigger *trig) in lps22df_trigger_handler() argument
35 const struct sensor_trigger *trig) in lsm6dsv16x_acc_trig_handler() argument
42 const struct sensor_trigger *trig) in lsm6dsv16x_gyr_trig_handler() argument
49 const struct sensor_trigger *trig) in lsm6dsv16x_temp_trig_handler() argument
60 const struct sensor_trigger *trig) in lis2mdl_trigger_handler() argument
71 const struct sensor_trigger *trig) in lis2du12_trigger_handler() argument
82 const struct sensor_trigger *trig) in stts22h_trigger_handler() argument
103 struct sensor_trigger trig; in lps22df_config() local
105 trig.type = SENSOR_TRIG_DATA_READY; in lps22df_config()
106 trig.chan = SENSOR_CHAN_ALL; in lps22df_config()
[all …]
/Zephyr-Core-3.7.0/samples/shields/x_nucleo_iks02a1/standard/src/
Dmain.c17 const struct sensor_trigger *trig) in iis2dlpc_trigger_handler() argument
28 const struct sensor_trigger *trig) in iis2mdc_trigger_handler() argument
40 const struct sensor_trigger *trig) in ism330dhcx_acc_trigger_handler() argument
47 const struct sensor_trigger *trig) in ism330dhcx_gyr_trigger_handler() argument
77 struct sensor_trigger trig; in iis2dlpc_config() local
79 trig.type = SENSOR_TRIG_DATA_READY; in iis2dlpc_config()
80 trig.chan = SENSOR_CHAN_ACCEL_XYZ; in iis2dlpc_config()
81 sensor_trigger_set(iis2dlpc, &trig, iis2dlpc_trigger_handler); in iis2dlpc_config()
100 struct sensor_trigger trig; in iis2mdc_config() local
102 trig.type = SENSOR_TRIG_DATA_READY; in iis2mdc_config()
[all …]
/Zephyr-Core-3.7.0/samples/shields/x_nucleo_iks02a1/sensorhub/src/
Dmain.c17 const struct sensor_trigger *trig) in iis2dlpc_trigger_handler() argument
30 const struct sensor_trigger *trig) in ism330dhcx_acc_trig_handler() argument
37 const struct sensor_trigger *trig) in ism330dhcx_gyr_trig_handler() argument
44 const struct sensor_trigger *trig) in ism330dhcx_temp_trig_handler() argument
74 struct sensor_trigger trig; in iis2dlpc_config() local
76 trig.type = SENSOR_TRIG_DATA_READY; in iis2dlpc_config()
77 trig.chan = SENSOR_CHAN_ACCEL_XYZ; in iis2dlpc_config()
78 sensor_trigger_set(iis2dlpc, &trig, iis2dlpc_trigger_handler); in iis2dlpc_config()
135 struct sensor_trigger trig; in ism330dhcx_config() local
137 trig.type = SENSOR_TRIG_DATA_READY; in ism330dhcx_config()
[all …]
/Zephyr-Core-3.7.0/doc/hardware/peripherals/sensor/
Dtap_count.c13 struct sensor_trigger trig; member
16 .trig = {
23 void tap_handler(const struct device *dev, const struct sensor_trigger *trig) in tap_handler() argument
25 struct tap_count_state *state = CONTAINER_OF(trig, struct tap_count_state, trig); in tap_handler()
38 rc = sensor_trigger_set(accel0, &tap_count_state.trig, tap_handler); in main()
/Zephyr-Core-3.7.0/drivers/sensor/bosch/bmi160/
Dbmi160_trigger.c114 const struct sensor_trigger *trig, in bmi160_trigger_drdy_set() argument
123 data->trig_drdy_acc = trig; in bmi160_trigger_drdy_set()
134 data->trig_drdy_gyr = trig; in bmi160_trigger_drdy_set()
152 const struct sensor_trigger *trig, in bmi160_trigger_anym_set() argument
159 data->trig_anymotion = trig; in bmi160_trigger_anym_set()
176 const struct sensor_trigger *trig, in bmi160_trigger_set_acc() argument
179 if (trig->type == SENSOR_TRIG_DATA_READY) { in bmi160_trigger_set_acc()
180 return bmi160_trigger_drdy_set(dev, trig->chan, trig, handler); in bmi160_trigger_set_acc()
181 } else if (trig->type == SENSOR_TRIG_DELTA) { in bmi160_trigger_set_acc()
182 return bmi160_trigger_anym_set(dev, trig, handler); in bmi160_trigger_set_acc()
[all …]
/Zephyr-Core-3.7.0/samples/shields/x_nucleo_iks4a1/standard/src/
Dmain.c17 const struct sensor_trigger *trig) in lps22df_trigger_handler() argument
28 const struct sensor_trigger *trig) in lis2mdl_trigger_handler() argument
39 const struct sensor_trigger *trig) in lsm6dso16is_acc_trig_handler() argument
50 const struct sensor_trigger *trig) in lsm6dsv16x_acc_trig_handler() argument
72 struct sensor_trigger trig; in lis2mdl_config() local
74 trig.type = SENSOR_TRIG_DATA_READY; in lis2mdl_config()
75 trig.chan = SENSOR_CHAN_MAGN_XYZ; in lis2mdl_config()
76 sensor_trigger_set(lis2mdl, &trig, lis2mdl_trigger_handler); in lis2mdl_config()
129 struct sensor_trigger trig; in lsm6dso16is_config() local
131 trig.type = SENSOR_TRIG_DATA_READY; in lsm6dso16is_config()
[all …]
/Zephyr-Core-3.7.0/samples/sensor/sm351lt/src/
Dmain.c36 const struct sensor_trigger *trig) in trigger_handler() argument
53 struct sensor_trigger trig; in main() local
56 trig.type = SENSOR_TRIG_NEAR_FAR; in main()
57 trig.chan = SENSOR_CHAN_PROX; in main()
63 rc = sensor_attr_set(sensor, trig.chan, in main()
71 rc = sensor_trigger_set(sensor, &trig, trigger_handler); in main()
/Zephyr-Core-3.7.0/drivers/sensor/tdk/icm42605/
Dicm42605_trigger.c19 const struct sensor_trigger *trig, in icm42605_trigger_set() argument
25 if (trig->type != SENSOR_TRIG_DATA_READY in icm42605_trigger_set()
26 && trig->type != SENSOR_TRIG_TAP in icm42605_trigger_set()
27 && trig->type != SENSOR_TRIG_DOUBLE_TAP) { in icm42605_trigger_set()
38 if (trig->type == SENSOR_TRIG_DATA_READY) { in icm42605_trigger_set()
40 drv_data->data_ready_trigger = trig; in icm42605_trigger_set()
41 } else if (trig->type == SENSOR_TRIG_TAP) { in icm42605_trigger_set()
43 drv_data->tap_trigger = trig; in icm42605_trigger_set()
45 } else if (trig->type == SENSOR_TRIG_DOUBLE_TAP) { in icm42605_trigger_set()
47 drv_data->double_tap_trigger = trig; in icm42605_trigger_set()
/Zephyr-Core-3.7.0/samples/sensor/bmg160/src/
Dmain.c91 struct sensor_trigger trig; in test_trigger_mode() local
94 trig.type = SENSOR_TRIG_DELTA; in test_trigger_mode()
95 trig.chan = SENSOR_CHAN_GYRO_XYZ; in test_trigger_mode()
121 if (sensor_trigger_set(bmg160, &trig, trigger_handler) < 0) { in test_trigger_mode()
132 if (sensor_trigger_set(bmg160, &trig, NULL) < 0) { in test_trigger_mode()
150 trig.type = SENSOR_TRIG_DATA_READY; in test_trigger_mode()
151 trig.chan = SENSOR_CHAN_GYRO_XYZ; in test_trigger_mode()
153 if (sensor_trigger_set(bmg160, &trig, trigger_handler) < 0) { in test_trigger_mode()
165 if (sensor_trigger_set(bmg160, &trig, NULL) < 0) { in test_trigger_mode()
/Zephyr-Core-3.7.0/samples/sensor/vcnl4040/src/
Dmain.c67 const struct sensor_trigger *trig) in trigger_handler() argument
69 switch (trig->type) { in trigger_handler()
89 struct sensor_trigger trig; in test_trigger_mode() local
111 trig.type = SENSOR_TRIG_THRESHOLD; in test_trigger_mode()
112 trig.chan = SENSOR_CHAN_PROX; in test_trigger_mode()
114 if (sensor_trigger_set(dev, &trig, trigger_handler) < 0) { in test_trigger_mode()
121 if (sensor_trigger_set(dev, &trig, NULL) < 0) { in test_trigger_mode()
/Zephyr-Core-3.7.0/samples/sensor/lis2dh/src/
Dmain.c60 const struct sensor_trigger *trig) in trigger_handler() argument
81 struct sensor_trigger trig; in main() local
84 trig.type = SENSOR_TRIG_DATA_READY; in main()
85 trig.chan = SENSOR_CHAN_ACCEL_XYZ; in main()
92 rc = sensor_attr_set(sensor, trig.chan, in main()
102 rc = sensor_trigger_set(sensor, &trig, trigger_handler); in main()
/Zephyr-Core-3.7.0/samples/shields/x_nucleo_iks01a3/sensorhub/src/
Dmain.c17 const struct sensor_trigger *trig) in lis2dw12_trigger_handler() argument
28 const struct sensor_trigger *trig) in lsm6dso_acc_trig_handler() argument
58 struct sensor_trigger trig; in lis2dw12_config() local
60 trig.type = SENSOR_TRIG_DATA_READY; in lis2dw12_config()
61 trig.chan = SENSOR_CHAN_ACCEL_XYZ; in lis2dw12_config()
62 sensor_trigger_set(lis2dw12, &trig, lis2dw12_trigger_handler); in lis2dw12_config()
136 struct sensor_trigger trig; in lsm6dso_config() local
138 trig.type = SENSOR_TRIG_DATA_READY; in lsm6dso_config()
139 trig.chan = SENSOR_CHAN_ACCEL_XYZ; in lsm6dso_config()
140 sensor_trigger_set(lsm6dso, &trig, lsm6dso_acc_trig_handler); in lsm6dso_config()
/Zephyr-Core-3.7.0/drivers/sensor/ti/tmp108/
Dtmp108_trigger.c70 const struct sensor_trigger *trig, in tmp_108_trigger_set() argument
75 if (trig->type == SENSOR_TRIG_DATA_READY) { in tmp_108_trigger_set()
77 drv_data->data_ready_trigger = trig; in tmp_108_trigger_set()
81 if (trig->type == SENSOR_TRIG_THRESHOLD) { in tmp_108_trigger_set()
83 drv_data->temp_alert_trigger = trig; in tmp_108_trigger_set()
/Zephyr-Core-3.7.0/samples/shields/x_nucleo_iks01a1/src/
Dmain.c17 const struct sensor_trigger *trig) in lis3mdl_trigger_handler() argument
19 sensor_sample_fetch_chan(dev, trig->chan); in lis3mdl_trigger_handler()
33 struct sensor_trigger trig; in main() local
55 trig.type = SENSOR_TRIG_DATA_READY; in main()
56 trig.chan = SENSOR_CHAN_MAGN_XYZ; in main()
57 sensor_trigger_set(lis3mdl, &trig, lis3mdl_trigger_handler); in main()
/Zephyr-Core-3.7.0/drivers/sensor/wsen/wsen_itds/
Ditds_trigger.c20 const struct sensor_trigger *trig, in itds_trigger_drdy_set() argument
29 ddata->trigger_drdy = trig; in itds_trigger_drdy_set()
44 const struct sensor_trigger *trig, in itds_trigger_set() argument
53 if (trig->chan != SENSOR_CHAN_ACCEL_XYZ) { in itds_trigger_set()
57 switch (trig->type) { in itds_trigger_set()
59 return itds_trigger_drdy_set(dev, trig->chan, trig, handler); in itds_trigger_set()
/Zephyr-Core-3.7.0/samples/shields/x_nucleo_iks01a2/sensorhub/src/
Dmain.c17 const struct sensor_trigger *trig) in lsm6dsl_trigger_handler() argument
63 struct sensor_trigger trig; in main() local
65 trig.type = SENSOR_TRIG_DATA_READY; in main()
66 trig.chan = SENSOR_CHAN_ACCEL_XYZ; in main()
67 sensor_trigger_set(lsm6dsl, &trig, lsm6dsl_trigger_handler); in main()
/Zephyr-Core-3.7.0/samples/sensor/lsm6dso/src/
Dmain.c73 const struct sensor_trigger *trig) in trigger_handler() argument
80 struct sensor_trigger trig; in test_trigger_mode() local
85 trig.type = SENSOR_TRIG_DATA_READY; in test_trigger_mode()
86 trig.chan = SENSOR_CHAN_ACCEL_XYZ; in test_trigger_mode()
88 if (sensor_trigger_set(dev, &trig, trigger_handler) != 0) { in test_trigger_mode()
/Zephyr-Core-3.7.0/tests/drivers/sensor/temp_sensor/src/
Dmain.c47 const struct sensor_trigger *trig) in trigger_handler() argument
50 ARG_UNUSED(trig); in trigger_handler()
59 struct sensor_trigger trig = { .type = SENSOR_TRIG_THRESHOLD, in ZTEST() local
65 rc = sensor_trigger_set(temp_dev, &trig, NULL); in ZTEST()
96 rc = sensor_trigger_set(temp_dev, &trig, trigger_handler); in ZTEST()
102 rc = sensor_trigger_set(temp_dev, &trig, NULL); in ZTEST()
/Zephyr-Core-3.7.0/drivers/sensor/bosch/bmg160/
Dbmg160_trigger.c48 const struct sensor_trigger *trig, in bmg160_anymotion_set() argument
66 bmg160->anymotion_trig = trig; in bmg160_anymotion_set()
72 const struct sensor_trigger *trig, in bmg160_drdy_set() argument
84 bmg160->drdy_trig = trig; in bmg160_drdy_set()
125 const struct sensor_trigger *trig, in bmg160_trigger_set() argument
134 if (trig->type == SENSOR_TRIG_DELTA) { in bmg160_trigger_set()
135 return bmg160_anymotion_set(dev, trig, handler); in bmg160_trigger_set()
136 } else if (trig->type == SENSOR_TRIG_DATA_READY) { in bmg160_trigger_set()
137 return bmg160_drdy_set(dev, trig, handler); in bmg160_trigger_set()
/Zephyr-Core-3.7.0/samples/sensor/ccs811/src/
Dmain.c82 const struct sensor_trigger *trig) in trigger_handler() argument
145 struct sensor_trigger trig = { 0 }; in main() local
167 trig.type = SENSOR_TRIG_THRESHOLD; in main()
168 trig.chan = SENSOR_CHAN_CO2; in main()
171 trig.type = SENSOR_TRIG_DATA_READY; in main()
172 trig.chan = SENSOR_CHAN_ALL; in main()
177 rc = sensor_trigger_set(dev, &trig, trigger_handler); in main()
/Zephyr-Core-3.7.0/drivers/sensor/apds9960/
Dapds9960_trigger.c66 const struct sensor_trigger *trig, in apds9960_trigger_set() argument
74 switch (trig->type) { in apds9960_trigger_set()
76 if (trig->chan == SENSOR_CHAN_PROX) { in apds9960_trigger_set()
78 data->p_th_trigger = trig; in apds9960_trigger_set()
/Zephyr-Core-3.7.0/samples/sensor/hts221/src/
Dmain.c44 const struct sensor_trigger *trig) in hts221_handler() argument
59 struct sensor_trigger trig = { in main() local
63 if (sensor_trigger_set(dev, &trig, hts221_handler) < 0) { in main()
/Zephyr-Core-3.7.0/drivers/sensor/mc3419/
Dmc3419_trigger.c84 const struct sensor_trigger *trig, in mc3419_configure_trigger() argument
92 if (!(trig->type & SENSOR_TRIG_DATA_READY) && in mc3419_configure_trigger()
93 !(trig->type & SENSOR_TRIG_MOTION)) { in mc3419_configure_trigger()
98 if (trig->type & SENSOR_TRIG_DATA_READY) { in mc3419_configure_trigger()
100 data->trigger[MC3419_TRIG_DATA_READY] = trig; in mc3419_configure_trigger()
104 if (trig->type & SENSOR_TRIG_MOTION) { in mc3419_configure_trigger()
109 data->trigger[MC3419_TRIG_ANY_MOTION] = trig; in mc3419_configure_trigger()

12345678910>>...12