Home
last modified time | relevance | path

Searched refs:sensitivity (Results 1 – 25 of 44) sorted by relevance

12

/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688.h420 int32_t sensitivity; in icm42688_accel_g() local
424 sensitivity = 16384; in icm42688_accel_g()
427 sensitivity = 8192; in icm42688_accel_g()
430 sensitivity = 4096; in icm42688_accel_g()
433 sensitivity = 2048; in icm42688_accel_g()
440 *out_g = in / sensitivity; in icm42688_accel_g()
443 *out_ug = ((abs(in) - (abs((*out_g)) * sensitivity)) * 1000000) / sensitivity; in icm42688_accel_g()
457 int64_t sensitivity; in icm42688_gyro_dps() local
461 sensitivity = 164; in icm42688_gyro_dps()
464 sensitivity = 328; in icm42688_gyro_dps()
[all …]
Dicm42688_emul.c127 static void icm42688_emul_get_accel_settings(const struct emul *target, int *fs_g, int *sensitivity, in icm42688_emul_get_accel_settings() argument
168 if (sensitivity) { in icm42688_emul_get_accel_settings()
169 *sensitivity = sensitivity_out; in icm42688_emul_get_accel_settings()
184 int sensitivity; in icm42688_emul_get_accel_ranges() local
186 icm42688_emul_get_accel_settings(target, &fs_g, &sensitivity, shift); in icm42688_emul_get_accel_ranges()
189 *epsilon = (3 * SENSOR_G * Q31_SCALE / sensitivity / 1000000LL / 2) >> *shift; in icm42688_emul_get_accel_ranges()
199 int *sensitivity, int8_t *shift) in icm42688_emul_get_gyro_settings() argument
259 if (sensitivity) { in icm42688_emul_get_gyro_settings()
260 *sensitivity = sensitivity_out; in icm42688_emul_get_gyro_settings()
277 int sensitivity; in icm42688_emul_get_gyro_ranges() local
[all …]
Dicm42688_decoder.c223 int64_t sensitivity = 207; in icm42688_read_temperature_from_packet() local
224 int64_t temperature100 = (temperature * 100) + (25 * sensitivity); in icm42688_read_temperature_from_packet()
226 whole = temperature100 / sensitivity; in icm42688_read_temperature_from_packet()
228 ((temperature100 - whole * sensitivity) * INT64_C(1000000)) / sensitivity; in icm42688_read_temperature_from_packet()
/Zephyr-latest/subsys/sensing/
Dsensor_mgmt.c140 conn->sensitivity[index]); in arbitrate_sensitivity()
144 if (conn->sensitivity[index] < min_sensitivity) { in arbitrate_sensitivity()
145 min_sensitivity = conn->sensitivity[index]; in arbitrate_sensitivity()
157 static int set_arbitrate_sensitivity(struct sensing_sensor *sensor, int index, uint32_t sensitivity) in set_arbitrate_sensitivity() argument
160 struct sensor_value threshold = {.val1 = sensitivity}; in set_arbitrate_sensitivity()
164 sensor->sensitivity[index] = sensitivity; in set_arbitrate_sensitivity()
167 threshold.val1 = MIN(sensor->sensitivity[i], threshold.val1); in set_arbitrate_sensitivity()
176 uint32_t sensitivity = arbitrate_sensitivity(sensor, index); in config_sensitivity() local
179 sensor->dev->name, index, sensitivity); in config_sensitivity()
181 return set_arbitrate_sensitivity(sensor, index, sensitivity); in config_sensitivity()
[all …]
Dsensor_mgmt.h57 int get_interval(struct sensing_connection *con, uint32_t *sensitivity);
59 int get_sensitivity(struct sensing_connection *con, int8_t index, uint32_t *sensitivity);
111 static inline bool is_filtering_sensitivity(int *sensitivity) in is_filtering_sensitivity() argument
115 __ASSERT(sensitivity, "sensitivity should not be NULL"); in is_filtering_sensitivity()
117 if (sensitivity[i] != 0) { in is_filtering_sensitivity()
DKconfig38 int "maximum sensitivity count one sensor could support"
42 This is the maximum sensitivity count one sensor could support,
43 some sensors such as ALS sensor could define different sensitivity for each data filed,
44 So, maximum sensitivity count is needed for sensors
Dsensing.c98 ret |= set_sensitivity(handle, cfg->data_field, cfg->sensitivity); in sensing_set_config()
138 ret |= get_sensitivity(handle, cfg->data_field, &cfg->sensitivity); in sensing_get_config()
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl.c473 float sensitivity) in lsm6dsl_accel_convert() argument
479 dval = (int64_t)raw_val * sensitivity; in lsm6dsl_accel_convert()
486 float sensitivity) in lsm6dsl_accel_get_channel() argument
490 lsm6dsl_accel_convert(val, data->accel_sample_x, sensitivity); in lsm6dsl_accel_get_channel()
493 lsm6dsl_accel_convert(val, data->accel_sample_y, sensitivity); in lsm6dsl_accel_get_channel()
496 lsm6dsl_accel_convert(val, data->accel_sample_z, sensitivity); in lsm6dsl_accel_get_channel()
499 lsm6dsl_accel_convert(val, data->accel_sample_x, sensitivity); in lsm6dsl_accel_get_channel()
501 sensitivity); in lsm6dsl_accel_get_channel()
503 sensitivity); in lsm6dsl_accel_get_channel()
521 float sensitivity) in lsm6dsl_gyro_convert() argument
[all …]
/Zephyr-latest/drivers/sensor/memsic/mc3419/
Dmc3419.c57 static int mc3419_to_sensor_value(double sensitivity, int16_t *raw_data, in mc3419_to_sensor_value() argument
62 value *= sensitivity * SENSOR_GRAVITY_DOUBLE / 1000; in mc3419_to_sensor_value()
77 ret = mc3419_to_sensor_value(data->sensitivity, &data->samples[0], val); in mc3419_channel_get()
80 ret = mc3419_to_sensor_value(data->sensitivity, &data->samples[1], val); in mc3419_channel_get()
83 ret = mc3419_to_sensor_value(data->sensitivity, &data->samples[2], val); in mc3419_channel_get()
86 ret = mc3419_to_sensor_value(data->sensitivity, &data->samples[0], &val[0]); in mc3419_channel_get()
87 ret |= mc3419_to_sensor_value(data->sensitivity, &data->samples[1], &val[1]); in mc3419_channel_get()
88 ret |= mc3419_to_sensor_value(data->sensitivity, &data->samples[2], &val[2]); in mc3419_channel_get()
117 data->sensitivity = (double)(mc3419_accel_sense_map[range] * in mc3419_set_accel_range()
Dmc3419.h80 double sensitivity; member
/Zephyr-latest/drivers/sensor/st/lsm9ds1/
Dlsm9ds1.c442 uint32_t sensitivity) in lsm9ds1_accel_convert() argument
446 sensor_ug_to_ms2(raw_val * sensitivity, val); in lsm9ds1_accel_convert()
450 struct lsm9ds1_data *data, uint32_t sensitivity) in lsm9ds1_accel_get_channel() argument
456 lsm9ds1_accel_convert(val, data->acc[0], sensitivity); in lsm9ds1_accel_get_channel()
459 lsm9ds1_accel_convert(val, data->acc[1], sensitivity); in lsm9ds1_accel_get_channel()
462 lsm9ds1_accel_convert(val, data->acc[2], sensitivity); in lsm9ds1_accel_get_channel()
466 lsm9ds1_accel_convert(val++, data->acc[i], sensitivity); in lsm9ds1_accel_get_channel()
482 static inline void lsm9ds1_gyro_convert(struct sensor_value *val, int raw_val, uint32_t sensitivity) in lsm9ds1_gyro_convert() argument
486 sensor_10udegrees_to_rad((raw_val * (int32_t)sensitivity) / 10, val); in lsm9ds1_gyro_convert()
490 struct lsm9ds1_data *data, uint32_t sensitivity) in lsm9ds1_gyro_get_channel() argument
[all …]
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx.c400 uint32_t sensitivity) in ism330dhcx_accel_convert() argument
406 dval = (int64_t)(raw_val) * sensitivity; in ism330dhcx_accel_convert()
412 struct sensor_value *val, uint32_t sensitivity) in ism330dhcx_accel_get_channel() argument
419 ism330dhcx_accel_convert(val, data->acc[0], sensitivity); in ism330dhcx_accel_get_channel()
422 ism330dhcx_accel_convert(val, data->acc[1], sensitivity); in ism330dhcx_accel_get_channel()
425 ism330dhcx_accel_convert(val, data->acc[2], sensitivity); in ism330dhcx_accel_get_channel()
429 ism330dhcx_accel_convert(val++, data->acc[i], sensitivity); in ism330dhcx_accel_get_channel()
448 uint32_t sensitivity) in ism330dhcx_gyro_convert() argument
454 dval = (int64_t)(raw_val) * sensitivity / 10; in ism330dhcx_gyro_convert()
459 struct sensor_value *val, uint32_t sensitivity) in ism330dhcx_gyro_get_channel() argument
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.c396 uint32_t sensitivity) in lsm6dso_accel_convert() argument
402 dval = (int64_t)(raw_val) * sensitivity; in lsm6dso_accel_convert()
409 uint32_t sensitivity) in lsm6dso_accel_get_channel() argument
415 lsm6dso_accel_convert(val, data->acc[0], sensitivity); in lsm6dso_accel_get_channel()
418 lsm6dso_accel_convert(val, data->acc[1], sensitivity); in lsm6dso_accel_get_channel()
421 lsm6dso_accel_convert(val, data->acc[2], sensitivity); in lsm6dso_accel_get_channel()
425 lsm6dso_accel_convert(val++, data->acc[i], sensitivity); in lsm6dso_accel_get_channel()
443 uint32_t sensitivity) in lsm6dso_gyro_convert() argument
449 dval = (int64_t)(raw_val) * sensitivity / 10; in lsm6dso_gyro_convert()
456 uint32_t sensitivity) in lsm6dso_gyro_get_channel() argument
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.c422 uint32_t sensitivity) in lsm6dso16is_accel_convert() argument
428 dval = (int64_t)(raw_val) * sensitivity; in lsm6dso16is_accel_convert()
436 uint32_t sensitivity) in lsm6dso16is_accel_get_channel() argument
442 lsm6dso16is_accel_convert(val, data->acc[0], sensitivity); in lsm6dso16is_accel_get_channel()
445 lsm6dso16is_accel_convert(val, data->acc[1], sensitivity); in lsm6dso16is_accel_get_channel()
448 lsm6dso16is_accel_convert(val, data->acc[2], sensitivity); in lsm6dso16is_accel_get_channel()
452 lsm6dso16is_accel_convert(val++, data->acc[i], sensitivity); in lsm6dso16is_accel_get_channel()
470 uint32_t sensitivity) in lsm6dso16is_gyro_convert() argument
476 dval = (int64_t)(raw_val) * sensitivity / 10; in lsm6dso16is_gyro_convert()
483 uint32_t sensitivity) in lsm6dso16is_gyro_get_channel() argument
[all …]
/Zephyr-latest/drivers/sensor/vishay/vcnl4040/
Dvcnl4040.c108 val->val1 = data->light * data->sensitivity; in vcnl4040_channel_get()
144 data->sensitivity = 0.12; in vcnl4040_reg_setup()
147 data->sensitivity = 0.06; in vcnl4040_reg_setup()
150 data->sensitivity = 0.03; in vcnl4040_reg_setup()
153 data->sensitivity = 0.015; in vcnl4040_reg_setup()
156 data->sensitivity = 1.0; in vcnl4040_reg_setup()
Dvcnl4040.h130 float sensitivity; member
/Zephyr-latest/drivers/sensor/st/lis2de12/
Dlis2de12.c218 uint32_t sensitivity) in lis2de12_accel_convert() argument
224 dval = (int64_t)(raw_val / 256) * sensitivity * SENSOR_G_DOUBLE; in lis2de12_accel_convert()
233 uint32_t sensitivity) in lis2de12_accel_get_channel() argument
239 lis2de12_accel_convert(val, data->acc[0], sensitivity); in lis2de12_accel_get_channel()
242 lis2de12_accel_convert(val, data->acc[1], sensitivity); in lis2de12_accel_get_channel()
245 lis2de12_accel_convert(val, data->acc[2], sensitivity); in lis2de12_accel_get_channel()
249 lis2de12_accel_convert(val++, data->acc[i], sensitivity); in lis2de12_accel_get_channel()
/Zephyr-latest/drivers/sensor/st/lis2du12/
Dlis2du12.c239 uint32_t sensitivity) in lis2du12_accel_convert() argument
245 dval = (int64_t)(raw_val) * sensitivity * SENSOR_G_DOUBLE; in lis2du12_accel_convert()
254 uint32_t sensitivity) in lis2du12_accel_get_channel() argument
260 lis2du12_accel_convert(val, data->acc[0], sensitivity); in lis2du12_accel_get_channel()
263 lis2du12_accel_convert(val, data->acc[1], sensitivity); in lis2du12_accel_get_channel()
266 lis2du12_accel_convert(val, data->acc[2], sensitivity); in lis2du12_accel_get_channel()
270 lis2du12_accel_convert(val++, data->acc[i], sensitivity); in lis2du12_accel_get_channel()
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x.c628 uint32_t sensitivity) in lsm6dsv16x_accel_convert() argument
634 dval = (int64_t)(raw_val) * sensitivity; in lsm6dsv16x_accel_convert()
641 uint32_t sensitivity) in lsm6dsv16x_accel_get_channel() argument
647 lsm6dsv16x_accel_convert(val, data->acc[0], sensitivity); in lsm6dsv16x_accel_get_channel()
650 lsm6dsv16x_accel_convert(val, data->acc[1], sensitivity); in lsm6dsv16x_accel_get_channel()
653 lsm6dsv16x_accel_convert(val, data->acc[2], sensitivity); in lsm6dsv16x_accel_get_channel()
657 lsm6dsv16x_accel_convert(val++, data->acc[i], sensitivity); in lsm6dsv16x_accel_get_channel()
675 uint32_t sensitivity) in lsm6dsv16x_gyro_convert() argument
681 dval = (int64_t)(raw_val) * sensitivity / 10; in lsm6dsv16x_gyro_convert()
688 uint32_t sensitivity) in lsm6dsv16x_gyro_get_channel() argument
[all …]
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx.c277 uint32_t sensitivity) in iis2iclx_accel_convert() argument
283 dval = (int64_t)(raw_val) * sensitivity; in iis2iclx_accel_convert()
290 uint32_t sensitivity) in iis2iclx_accel_get_channel() argument
296 iis2iclx_accel_convert(val, data->acc[0], sensitivity); in iis2iclx_accel_get_channel()
299 iis2iclx_accel_convert(val, data->acc[1], sensitivity); in iis2iclx_accel_get_channel()
303 iis2iclx_accel_convert(val++, data->acc[i], sensitivity); in iis2iclx_accel_get_channel()
332 uint16_t sensitivity) in iis2iclx_magn_convert() argument
337 dval = (double)(raw_val * sensitivity); in iis2iclx_magn_convert()
/Zephyr-latest/samples/subsys/sensing/simple/src/
Dmain.c135 base_acc_config.sensitivity = 0; in main()
143 hinge_angle_config.sensitivity = 1; in main()
/Zephyr-latest/include/zephyr/sensing/
Dsensing.h182 uint32_t sensitivity; member
Dsensing_sensor.h89 int sensitivity[CONFIG_SENSING_MAX_SENSITIVITY_COUNT]; member
115 int sensitivity[CONFIG_SENSING_MAX_SENSITIVITY_COUNT]; member
/Zephyr-latest/drivers/sensor/bosch/bmp388/
Dbmp388.c328 int64_t sensitivity; in bmp388_compensate_press() local
347 sensitivity = ((cal->p1 - 16384) * 70368744177664) + partial_data2 + in bmp388_compensate_press()
349 partial_data1 = (sensitivity / 16777216) * raw_pressure; in bmp388_compensate_press()
/Zephyr-latest/drivers/input/
Dinput_pinnacle.c175 enum pinnacle_sensitivity sensitivity; member
339 switch (config->sensitivity) { in pinnacle_set_sensitivity()
878 .sensitivity = DT_INST_ENUM_IDX(inst, sensitivity), \

12