/Zephyr-latest/subsys/sensing/ |
D | sensor_mgmt.c | 46 /* sensor_later_config including arbitrate/set interval/sensitivity 136 /* search from all clients, arbitrate the sensitivity */ in arbitrate_sensitivity() 138 LOG_DBG("arbitrate sensitivity, sensor:%s for each conn:%p, idx:%d, sens:%d", in arbitrate_sensitivity() 140 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() 148 LOG_DBG("arbitrate sensitivity, sensor:%s, min_sensitivity:%d", in arbitrate_sensitivity() 152 * by any client, in this case, return sensitivity 0 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() [all …]
|
D | sensor_mgmt.h | 57 int get_interval(struct sensing_connection *con, uint32_t *sensitivity); 59 int get_sensitivity(struct sensing_connection *con, int8_t index, uint32_t *sensitivity); 108 /* this function is used to decide whether filtering sensitivity checking 109 * for example: filter sensitivity checking if sensitivity value is 0. 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()
|
D | Kconfig | 38 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
|
D | sensing.c | 98 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/tdk/icm42688/ |
D | icm42688.h | 420 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 …]
|
D | icm42688_emul.c | 125 * sensitivity and shift. See datasheet section 3.2, table 2. 127 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() 196 * along with corresponding sensitivity and shift. See datasheet section 3.1, table 1. 199 int *sensitivity, int8_t *shift) in icm42688_emul_get_gyro_settings() argument 259 if (sensitivity) { in icm42688_emul_get_gyro_settings() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm9ds1/ |
D | lsm9ds1.c | 17 /* Sensitivity of the accelerometer, indexed by the raw full scale value. Unit is µg/ LSB */ 21 * Sensitivity of the gyroscope, indexed by the raw full scale value. 22 * The value here is just a factor applied to GAIN_UNIT_G, as the sensitivity is 442 uint32_t sensitivity) in lsm9ds1_accel_convert() argument 444 /* Sensitivity is exposed in ug/LSB */ in lsm9ds1_accel_convert() 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() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl.c | 473 float sensitivity) in lsm6dsl_accel_convert() argument 477 /* Sensitivity is exposed in ug/LSB */ in lsm6dsl_accel_convert() 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() [all …]
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx.c | 400 uint32_t sensitivity) in ism330dhcx_accel_convert() argument 404 /* Sensitivity is exposed in ug/LSB */ in ism330dhcx_accel_convert() 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 452 /* Sensitivity is exposed in udps/LSB */ in ism330dhcx_gyro_convert() [all …]
|
D | ism330dhcx.h | 27 /* Accel sensor sensitivity grain is 61 ug/LSB */ 30 /* Gyro sensor sensitivity grain is 4.375 udps/LSB */
|
/Zephyr-latest/drivers/sensor/memsic/mc3419/ |
D | mc3419.c | 57 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()
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso.c | 396 uint32_t sensitivity) in lsm6dso_accel_convert() argument 400 /* Sensitivity is exposed in ug/LSB */ in lsm6dso_accel_convert() 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 447 /* Sensitivity is exposed in udps/LSB */ in lsm6dso_gyro_convert() [all …]
|
D | lsm6dso.h | 35 /* Accel sensor sensitivity grain is 61 ug/LSB */ 38 /* Gyro sensor sensitivity grain is 4.375 udps/LSB */
|
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/ |
D | lsm6dso16is.c | 422 uint32_t sensitivity) in lsm6dso16is_accel_convert() argument 426 /* Sensitivity is exposed in ug/LSB */ in lsm6dso16is_accel_convert() 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 474 /* Sensitivity is exposed in udps/LSB */ in lsm6dso16is_gyro_convert() [all …]
|
D | lsm6dso16is.h | 32 /* Accel sensor sensitivity grain is 61 ug/LSB */ 35 /* Gyro sensor sensitivity grain is 4.375 udps/LSB */
|
/Zephyr-latest/drivers/sensor/vishay/vcnl4040/ |
D | vcnl4040.c | 108 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() 157 LOG_WRN("Cannot set ALS sensitivity from ALS_IT=%d", in vcnl4040_reg_setup()
|
/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12.c | 43 uint32_t gain; /* Accel sensor sensitivity in ug/LSB */ 218 uint32_t sensitivity) in lis2de12_accel_convert() argument 222 /* Sensitivity is exposed in ug/LSB */ in lis2de12_accel_convert() 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/include/zephyr/sensing/ |
D | sensing.h | 80 * @brief SENSING_SENSITIVITY_INDEX_ALL indicating sensitivity of each data field should be set 101 /** The sensitivity attribute of a sensor configuration. */ 164 * @brief Sensing subsystem sensor configure, including interval, sensitivity, latency 178 * Sensitivity threshold for reporting new data. A new sensor sample is reported 180 * sensitivity value. 182 uint32_t sensitivity; member
|
/Zephyr-latest/drivers/sensor/st/iis2iclx/ |
D | iis2iclx.c | 277 uint32_t sensitivity) in iis2iclx_accel_convert() argument 281 /* Sensitivity is exposed in ug/LSB */ in iis2iclx_accel_convert() 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 336 /* Sensitivity is exposed in ugauss/LSB */ in iis2iclx_magn_convert() 337 dval = (double)(raw_val * sensitivity); in iis2iclx_magn_convert() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12.c | 239 uint32_t sensitivity) in lis2du12_accel_convert() argument 243 /* Sensitivity is exposed in ug/LSB */ in lis2du12_accel_convert() 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/ |
D | lsm6dsv16x.c | 628 uint32_t sensitivity) in lsm6dsv16x_accel_convert() argument 632 /* Sensitivity is exposed in ug/LSB */ in lsm6dsv16x_accel_convert() 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 679 /* Sensitivity is exposed in udps/LSB */ in lsm6dsv16x_gyro_convert() [all …]
|
/Zephyr-latest/samples/subsys/sensing/simple/src/ |
D | main.c | 132 /* set base acc, lid acc, hinge sensor sensitivity */ in main() 135 base_acc_config.sensitivity = 0; in main() 143 hinge_angle_config.sensitivity = 1; in main() 152 /* get base acc, lid acc, hinge sensor sensitivity */ in main()
|
/Zephyr-latest/dts/bindings/stepper/adi/ |
D | adi,trinamic-stallguard.yaml | 17 optimum measurement range for readout. A lower value gives a higher sensitivity.
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | bt.h | 40 * @brief Compares two strings without case sensitivity
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/src/ |
D | constants.hpp | 30 /* These control the sensitivity of the detection algorithm. If you're seeing
|