/Zephyr-latest/tests/subsys/emul/src/ |
D | main.c | 39 int scale; in ZTEST() local 44 scale = DT_PROP(TEST_EMUL_A, scale); in ZTEST() 48 zassert_equal(get_action_value, set_action_value * scale); in ZTEST() 50 scale = DT_PROP(TEST_EMUL_B, scale); in ZTEST() 54 zassert_equal(get_action_value, set_action_value * scale); in ZTEST()
|
D | emul_tester.c | 18 int scale; member 30 data->action = action * cfg->scale; in emul_tester_set_action() 75 .scale = DT_INST_PROP(n, scale), \
|
/Zephyr-latest/tests/drivers/sensor/bmi160/src/ |
D | fixture.c | 23 static struct sensor_value scale; in sensor_bmi160_setup_emulator() local 26 scale.val1 = 39; in sensor_bmi160_setup_emulator() 27 scale.val2 = 226600; in sensor_bmi160_setup_emulator() 28 zassert_ok(sensor_attr_set(dev, SENSOR_CHAN_ACCEL_XYZ, SENSOR_ATTR_FULL_SCALE, &scale)); in sensor_bmi160_setup_emulator() 31 scale.val1 = 2; in sensor_bmi160_setup_emulator() 32 scale.val2 = 181661; in sensor_bmi160_setup_emulator() 33 zassert_ok(sensor_attr_set(dev, SENSOR_CHAN_GYRO_XYZ, SENSOR_ATTR_FULL_SCALE, &scale)); in sensor_bmi160_setup_emulator()
|
/Zephyr-latest/drivers/sensor/st/lsm9ds0_mfd/ |
D | lsm9ds0_mfd.c | 370 float scale) in lsm9ds0_mfd_convert_accel() argument 374 dval = (double)(raw_val) * (double)scale; in lsm9ds0_mfd_convert_accel() 382 float scale) in lsm9ds0_mfd_get_accel_channel() argument 386 lsm9ds0_mfd_convert_accel(val, data->sample_accel_x, scale); in lsm9ds0_mfd_get_accel_channel() 389 lsm9ds0_mfd_convert_accel(val, data->sample_accel_y, scale); in lsm9ds0_mfd_get_accel_channel() 392 lsm9ds0_mfd_convert_accel(val, data->sample_accel_z, scale); in lsm9ds0_mfd_get_accel_channel() 395 lsm9ds0_mfd_convert_accel(val, data->sample_accel_x, scale); in lsm9ds0_mfd_get_accel_channel() 396 lsm9ds0_mfd_convert_accel(val + 1, data->sample_accel_y, scale); in lsm9ds0_mfd_get_accel_channel() 397 lsm9ds0_mfd_convert_accel(val + 2, data->sample_accel_z, scale); in lsm9ds0_mfd_get_accel_channel() 456 float scale) in lsm9ds0_mfd_convert_magn() argument [all …]
|
D | Kconfig | 88 prompt "Accelerometer full-scale" 92 Specify the default full-scale for accelerometer. 112 bool "Dynamic full-scale for accelerometer" 115 Enable alteration of accelerometer full-scale attribute at 168 prompt "Magnetometer full-scale" 172 Specify the default full-scale for magnetometer. 189 bool "Dynamic full-scale for magnetometer" 192 Enable alteration of magnetometer full-scale attribute at
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_decoder.c | 321 const int32_t scale = accel_scaler[header->accel_fs]; in lsm6dsv16x_decode_fifo() local 344 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo() 345 out->readings[count].y = Q31_SHIFT_MICROVAL(scale * y, out->shift); in lsm6dsv16x_decode_fifo() 346 out->readings[count].z = Q31_SHIFT_MICROVAL(scale * z, out->shift); in lsm6dsv16x_decode_fifo() 352 const int32_t scale = gyro_scaler[header->gyro_fs]; in lsm6dsv16x_decode_fifo() local 375 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo() 376 out->readings[count].y = Q31_SHIFT_MICROVAL(scale * y, out->shift); in lsm6dsv16x_decode_fifo() 377 out->readings[count].z = Q31_SHIFT_MICROVAL(scale * z, out->shift); in lsm6dsv16x_decode_fifo() 470 const int32_t scale = gyro_scaler[LSM6DSV16X_DT_FS_125DPS]; in lsm6dsv16x_decode_fifo() local 493 out->readings[count].x = Q31_SHIFT_MICROVAL(scale * x, out->shift); in lsm6dsv16x_decode_fifo() [all …]
|
/Zephyr-latest/doc/kernel/ |
D | timeutil.rst | 24 the Zephyr clock and the actual time in a "real" civil time scale is not 43 Time scale instants can be represented in multiple ways including: 54 interpreted relative to a time scale which may be local time, UTC, or some 55 other continuous or discontinuous scale. 82 * The relative error between observable instants in each scale, required to 91 * An instant in a time scale is represented by an (unsigned) 64-bit integer, 94 time scale/source (e.g. TAI) and a local time source 100 relative errors in the actual rate of each time scale. 102 :c:func:`timeutil_sync_local_from_ref()` convert instants in one time scale 120 * A *time scale* is a way of representing an instant relative to an origin [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm9ds0_gyro/ |
D | Kconfig | 19 prompt "Default full-scale" 22 Specify the default full-scale. 36 bool "Dynamic full-scale" 38 Enable alteration of full-scale attribute at runtime.
|
/Zephyr-latest/drivers/sensor/tdk/mpu6050/ |
D | Kconfig | 57 int "Accelerometer full-scale range" 60 Magnetometer full-scale range. 65 int "Gyroscope full-scale range" 68 Gyroscope full-scale range.
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_decoder.c | 238 int64_t scale = 0; in icm42688_read_imu_from_packet() local 245 scale = INT64_C(2) * BIT(31 - 5) * 9.80665; in icm42688_read_imu_from_packet() 248 scale = INT64_C(4) * BIT(31 - 6) * 9.80665; in icm42688_read_imu_from_packet() 251 scale = INT64_C(8) * BIT(31 - 7) * 9.80665; in icm42688_read_imu_from_packet() 254 scale = INT64_C(16) * BIT(31 - 8) * 9.80665; in icm42688_read_imu_from_packet() 260 scale = 164; in icm42688_read_imu_from_packet() 263 scale = 328; in icm42688_read_imu_from_packet() 266 scale = 655; in icm42688_read_imu_from_packet() 269 scale = 1310; in icm42688_read_imu_from_packet() 272 scale = 2620; in icm42688_read_imu_from_packet() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6ds0/ |
D | lsm6ds0.c | 233 float scale) in lsm6ds0_accel_convert() argument 237 dval = (double)(raw_val) * (double)scale / 32767.0; in lsm6ds0_accel_convert() 245 float scale) in lsm6ds0_accel_get_channel() argument 250 lsm6ds0_accel_convert(val, data->accel_sample_x, scale); in lsm6ds0_accel_get_channel() 255 lsm6ds0_accel_convert(val, data->accel_sample_y, scale); in lsm6ds0_accel_get_channel() 260 lsm6ds0_accel_convert(val, data->accel_sample_z, scale); in lsm6ds0_accel_get_channel() 265 lsm6ds0_accel_convert(val, data->accel_sample_x, scale); in lsm6ds0_accel_get_channel() 268 lsm6ds0_accel_convert(val + 1, data->accel_sample_y, scale); in lsm6ds0_accel_get_channel() 271 lsm6ds0_accel_convert(val + 2, data->accel_sample_z, scale); in lsm6ds0_accel_get_channel()
|
D | Kconfig | 69 int "Gyroscope full-scale range" 72 Specify the default gyroscope full-scale range. 86 int "Accelerometer full-scale range" 89 Specify the default accelerometer full-scale range.
|
/Zephyr-latest/drivers/adc/ |
D | Kconfig.it8xxx2 | 21 bool "ADC internal voltage as full-scale" 24 voltage as full-scale 3300mV.
|
/Zephyr-latest/tests/subsys/emul/ |
D | app.overlay | 24 scale = <1>; 30 scale = <10>;
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | emul_bmi160.c | 292 q31_t scale; in bmi160_emul_backend_set_channel() local 301 scale = 0x4e7404ea; in bmi160_emul_backend_set_channel() 322 scale = 0x45d02bea; in bmi160_emul_backend_set_channel() 346 scale = 0x8000; in bmi160_emul_backend_set_channel() 367 CLAMP(DIV_ROUND_CLOSEST(intermediate * INT16_MAX, scale), INT16_MIN, INT16_MAX); in bmi160_emul_backend_set_channel() 456 q31_t scale; in bmi160_emul_backend_set_offset() local 479 scale = 0x4e53e28; in bmi160_emul_backend_set_offset() 485 scale = 0x22e2f0; in bmi160_emul_backend_set_offset() 496 scale >>= (scale_shift - shift); in bmi160_emul_backend_set_offset() 499 int64_t reg_value = intermediate / scale; in bmi160_emul_backend_set_offset()
|
/Zephyr-latest/samples/modules/tflite-micro/hello_world/src/ |
D | main_functions.cpp | 93 int8_t x_quantized = x / input->params.scale + input->params.zero_point; in loop() 107 float y = (y_quantized - output->params.zero_point) * output->params.scale; in loop()
|
/Zephyr-latest/subsys/sensing/sensor/phy_3d_sensor/ |
D | phy_3d_sensor.c | 26 static int64_t shifted_q31_to_scaled_int64(q31_t q, int8_t shift, int64_t scale) in shifted_q31_to_scaled_int64() argument 35 FIELD_GET(GENMASK64(31 + shift, 31), shifted_value) * scale + in shifted_q31_to_scaled_int64() 36 (FIELD_GET(GENMASK64(30, 0), shifted_value) * scale / BIT(31)); in shifted_q31_to_scaled_int64() 45 static q31_t scaled_int64_to_shifted_q31(int64_t val, int64_t scale, in scaled_int64_to_shifted_q31() argument 48 return (q31_t)((val * BIT(31 - shift) / scale)); in scaled_int64_to_shifted_q31()
|
/Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
D | ak8963.h | 17 int16_t scale, uint8_t st2);
|
/Zephyr-latest/subsys/dsp/cmsis/public/ |
D | zdsp_backend_f16.h | 37 static inline void zdsp_scale_f16(const float16_t *src, float16_t scale, float16_t *dst, in zdsp_scale_f16() argument 40 arm_scale_f16(src, scale, dst, block_size); in zdsp_scale_f16()
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | Kconfig | 88 int "Gyroscope full-scale range" 91 Specify the default gyroscope full-scale range. 121 int "Accelerometer full-scale range" 124 Specify the default accelerometer full-scale range.
|
/Zephyr-latest/drivers/sensor/bosch/bmg160/ |
D | bmg160.h | 142 #define BMG160_SCALE_TO_RANGE(scale) \ argument 143 (((scale * 90LL * 65536LL) + SENSOR_PI / 2) / SENSOR_PI) 206 uint16_t scale; member
|
/Zephyr-latest/doc/hardware/peripherals/sensor/ |
D | device_tree.rst | 24 accel-fs = <ICM42688_ACCEL_FS_16>; /* 16G scale */ 27 gyro-fs = <ICM42688_GYRO_FS_16>; /* 16G scale */
|
/Zephyr-latest/samples/drivers/display/src/ |
D | main.c | 180 size_t scale; in main() local 219 scale = 1; in main() 222 scale = (capabilities.x_resolution / 8) / rect_h; in main() 225 rect_w *= scale; in main() 226 rect_h *= scale; in main()
|
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/ |
D | Kconfig | 63 string "Full-scale range" 66 Magnetometer full-scale range.
|
/Zephyr-latest/drivers/sensor/st/lis3mdl/ |
D | Kconfig | 63 int "Full-scale range" 66 Magnetometer full-scale range.
|