/Zephyr-latest/include/zephyr/sensing/ |
D | sensing_datatypes.h | 28 * The 'base_timestamp' is for readings[0], the 'timestamp_delta' is relation 29 * to the previous 'readings'. So, 30 * timestamp of readings[0] is 31 * header.base_timestamp + readings[0].timestamp_delta. 32 * timestamp of readings[1] is 33 * timestamp of readings[0] + readings[1].timestamp_delta. 38 * If a sensor has batched data where two consecutive readings differ by 40 * across multiple instances of the readings structure, and send multiple 48 /** Base timestamp of this data readings, unit is micro seconds */ 50 /** Count of this data readings */ [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor_data_types.h | 26 * The number of elements in the 'readings' array. 66 } readings[1]; member 72 (data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \ 73 PRIq_arg((data_).readings[(readings_offset_)].x, 6, (data_).shift), \ 74 PRIq_arg((data_).readings[(readings_offset_)].y, 6, (data_).shift), \ 75 PRIq_arg((data_).readings[(readings_offset_)].z, 6, (data_).shift) 96 } readings[1]; member 103 (data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \ 104 PRIq_arg((data_).readings[(readings_offset_)].x, 6, (data_).shift), \ 105 PRIq_arg((data_).readings[(readings_offset_)].y, 6, (data_).shift), \ [all …]
|
/Zephyr-latest/drivers/sensor/nxp/nxp_kinetis_temp/ |
D | Kconfig | 22 voltage readings. 30 bandgap voltage readings. Oversampling can help in providing 31 more stable readings. 34 bool "Digital filtering of ADC readings" 37 readings as per NXP AN3031.
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688.c | 42 int icm42688_channel_parse_readings(enum sensor_channel chan, int16_t readings[7], in icm42688_channel_parse_readings() 47 icm42688_convert_accel(&val[0], readings[1], cfg); in icm42688_channel_parse_readings() 48 icm42688_convert_accel(&val[1], readings[2], cfg); in icm42688_channel_parse_readings() 49 icm42688_convert_accel(&val[2], readings[3], cfg); in icm42688_channel_parse_readings() 52 icm42688_convert_accel(val, readings[1], cfg); in icm42688_channel_parse_readings() 55 icm42688_convert_accel(val, readings[2], cfg); in icm42688_channel_parse_readings() 58 icm42688_convert_accel(val, readings[3], cfg); in icm42688_channel_parse_readings() 61 icm42688_convert_gyro(&val[0], readings[4], cfg); in icm42688_channel_parse_readings() 62 icm42688_convert_gyro(&val[1], readings[5], cfg); in icm42688_channel_parse_readings() 63 icm42688_convert_gyro(&val[2], readings[6], cfg); in icm42688_channel_parse_readings() [all …]
|
D | icm42688_decoder.c | 395 data->readings[count].timestamp_delta = in icm42688_fifo_decode() 398 data->readings[count].timestamp_delta = in icm42688_fifo_decode() 401 data->readings[count].temperature = in icm42688_fifo_decode() 412 data->readings[count].timestamp_delta = (accel_frame_count - 1) * period_ns; in icm42688_fifo_decode() 414 &data->readings[count].x); in icm42688_fifo_decode() 416 &data->readings[count].y); in icm42688_fifo_decode() 418 &data->readings[count].z); in icm42688_fifo_decode() 433 data->readings[count].timestamp_delta = (gyro_frame_count - 1) * period_ns; in icm42688_fifo_decode() 435 &data->readings[count].x); in icm42688_fifo_decode() 437 &data->readings[count].y); in icm42688_fifo_decode() [all …]
|
D | icm42688_rtio.c | 19 static int icm42688_rtio_sample_fetch(const struct device *dev, int16_t readings[7]) in icm42688_rtio_sample_fetch() 23 uint8_t *buffer = (uint8_t *)readings; in icm42688_rtio_sample_fetch() 42 readings[i] = sys_le16_to_cpu((buffer[i * 2] << 8) | buffer[i * 2 + 1]); in icm42688_rtio_sample_fetch() 71 rc = icm42688_rtio_sample_fetch(dev, edata->readings); in icm42688_submit_one_shot()
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_decoder.c | 73 akm09918c_convert_raw_to_q31(edata->readings[0], &out->readings[0].x); in akm09918c_decoder_decode() 74 akm09918c_convert_raw_to_q31(edata->readings[1], &out->readings[0].y); in akm09918c_decoder_decode() 75 akm09918c_convert_raw_to_q31(edata->readings[2], &out->readings[0].z); in akm09918c_decoder_decode()
|
D | akm09918c_async.c | 97 rc = akm09918c_fetch_measurement(dev, &edata->readings[0], &edata->readings[1], in akm09918_async_fetch() 98 &edata->readings[2]); in akm09918_async_fetch()
|
/Zephyr-latest/tests/boards/nrf/qdec/src/ |
D | main.c | 107 /* wait for some readings*/ in qenc_emulate_verify_reading() 128 /* wait and get readings to clear state */ in qenc_emulate_verify_reading() 232 zassert_true(val.val1 != 0, "No readings from QDEC"); in ZTEST() 274 * @brief QDEC readings tests 311 /* wait for potential new readings */ in ZTEST() 317 /* get readings but ignore them, as they may include reading from time in ZTEST() 323 /* wait for potential new readings */ in ZTEST() 329 /* emulation was not working, expect no readings */ in ZTEST() 332 zassert_true(val.val1 == 0, "Expected no readings but got: %d", val.val1); in ZTEST() 333 zassert_true(val.val2 == 0, "Expected no readings but got: %d", val.val2); in ZTEST() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_decoder.c | 335 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo() 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() 366 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo() 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() 398 out->readings[count].timestamp_delta = in lsm6dsv16x_decode_fifo() 406 out->readings[count].temperature = Q31_SHIFT_MICROVAL(t_uC, out->shift); in lsm6dsv16x_decode_fifo() [all …]
|
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_decoder.c | 84 out->readings[0].temperature = MMC56X3_TEMP_CONV_Q7_24_BASE + in mmc56x3_decoder_decode() 97 out->readings[0].value = data->magn_x * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode() 109 out->readings[0].value = data->magn_y * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode() 121 out->readings[0].value = data->magn_z * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode() 135 out_3->readings[0].v[0] = data->magn_x * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode() 136 out_3->readings[0].v[1] = data->magn_y * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode() 137 out_3->readings[0].v[2] = data->magn_z * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode()
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372_decoder.c | 79 data->readings[count].timestamp_delta = sample_num * period_ns; in adxl372_decode_stream() 80 adxl372_accel_convert_q31(&data->readings[count].x, buffer); in adxl372_decode_stream() 91 data->readings[count].timestamp_delta = sample_num * period_ns; in adxl372_decode_stream() 92 adxl372_accel_convert_q31(&data->readings[count].y, in adxl372_decode_stream() 110 data->readings[count].timestamp_delta = sample_num * period_ns; in adxl372_decode_stream() 111 adxl372_accel_convert_q31(&data->readings[count].z, in adxl372_decode_stream() 116 data->readings[count].timestamp_delta = sample_num * period_ns; in adxl372_decode_stream() 120 adxl372_accel_convert_q31(&data->readings[count].x, buffer); in adxl372_decode_stream() 125 adxl372_accel_convert_q31(&data->readings[count].y, in adxl372_decode_stream() 132 adxl372_accel_convert_q31(&data->readings[count].z, in adxl372_decode_stream()
|
/Zephyr-latest/dts/bindings/sensor/ |
D | ti,ina219.yaml | 50 one can adjust this to get more accurate readings. 75 Lowering the resolution of the ADC gives less accurate readings but 78 Averaging over multiple samples gives more stable readings but adds 111 Lowering the resolution of the ADC gives less accurate readings but 114 Averaging over multiple samples gives more stable readings but adds
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367_decoder.c | 173 data->readings[count].timestamp_delta = in adxl367_get_accel() 175 adxl367_accel_convert_q31(&data->readings[count].x, in adxl367_get_accel() 188 data->readings[count].timestamp_delta = sample_num * period_ns; in adxl367_get_accel() 189 adxl367_accel_convert_q31(&data->readings[count].y, in adxl367_get_accel() 209 data->readings[count].timestamp_delta = in adxl367_get_accel() 211 adxl367_accel_convert_q31(&data->readings[count].z, in adxl367_get_accel() 217 data->readings[count].timestamp_delta = in adxl367_get_accel() 222 adxl367_accel_convert_q31(&data->readings[count].x, in adxl367_get_accel() 229 adxl367_accel_convert_q31(&data->readings[count].y, in adxl367_get_accel() 237 adxl367_accel_convert_q31(&data->readings[count].z, in adxl367_get_accel() [all …]
|
/Zephyr-latest/subsys/sensing/sensor/hinge_angle/ |
D | hinge_angle.c | 104 data->sample[0].readings[0].x, in calc_hinge_angle() 105 data->sample[0].readings[0].y, in calc_hinge_angle() 106 data->sample[0].readings[0].z); in calc_hinge_angle() 108 data->sample[1].readings[0].x, in calc_hinge_angle() 109 data->sample[1].readings[0].y, in calc_hinge_angle() 110 data->sample[1].readings[0].z); in calc_hinge_angle() 146 sample->readings[0].v = calc_hinge_angle(data); in hinge_reporter_on_data_event()
|
/Zephyr-latest/drivers/sensor/adi/adxl362/ |
D | adxl362_decoder.c | 116 data->readings[count].timestamp_delta = in adxl362_decode_stream() 123 adxl362_temp_convert_q31(&data->readings[count].temperature, in adxl362_decode_stream() 138 data->readings[count].timestamp_delta = sample_num in adxl362_decode_stream() 146 adxl362_accel_convert_q31(&data->readings[count].x, in adxl362_decode_stream() 151 data->readings[count].timestamp_delta = sample_num in adxl362_decode_stream() 159 adxl362_accel_convert_q31(&data->readings[count].y, in adxl362_decode_stream() 164 data->readings[count].timestamp_delta = sample_num in adxl362_decode_stream() 171 adxl362_accel_convert_q31(&data->readings[count].z, in adxl362_decode_stream() 176 data->readings[count].timestamp_delta = sample_num * period_ns; in adxl362_decode_stream() 183 adxl362_accel_convert_q31(&data->readings[count].x, in adxl362_decode_stream() [all …]
|
/Zephyr-latest/doc/services/sensing/ |
D | index.rst | 186 Each sensor sample value defines as a common ``header`` + ``readings[]`` data structure, like 198 each element in the **readings[]** array defines **timestamp_delta**. 200 The **timestamp_delta** is in relation to the previous **readings** (or the **base_timestamp**) 204 * timestamp of ``readings[0]`` is ``header.base_timestamp`` + ``readings[0].timestamp_delta``. 206 * timestamp of ``readings[1]`` is ``timestamp of readings[0]`` + ``readings[1].timestamp_delta``. 211 If a sensor has batched data where two consecutive readings differ by more than ``4295`` seconds, 212 the sensing subsystem runtime will split them across multiple instances of the readings structure,
|
/Zephyr-latest/drivers/sensor/bosch/bme680/ |
D | Kconfig | 24 lead to more accurate readings, but higher power consumption. 42 lead to more accurate readings, but higher power consumption. 60 lead to more accurate readings, but higher power consumption.
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | Kconfig | 37 lead to more accurate readings, but higher power consumption. 55 lead to more accurate readings, but higher power consumption. 73 lead to more accurate readings, but higher power consumption.
|
D | bme280_decoder.c | 76 out->readings[0].temperature = in bme280_decoder_decode() 89 out->readings[0].pressure = in bme280_decoder_decode() 99 out->readings[0].humidity = edata->reading.comp_humidity; in bme280_decoder_decode()
|
/Zephyr-latest/drivers/syscon/ |
D | syscon_common.h | 26 /* Avoid unaligned readings */ in syscon_sanitize_reg() 29 /* Check for out-of-bounds readings */ in syscon_sanitize_reg()
|
/Zephyr-latest/drivers/sensor/infineon/dps310/ |
D | Kconfig | 23 lead to more accurate readings, but higher power consumption. 47 lead to more accurate readings, but higher power consumption.
|
/Zephyr-latest/samples/sensor/bme280/src/ |
D | main.c | 97 PRIq_arg(temp_data.readings[0].temperature, 6, temp_data.shift), in main() 98 PRIq_arg(press_data.readings[0].pressure, 6, press_data.shift), in main() 99 PRIq_arg(hum_data.readings[0].humidity, 6, hum_data.shift)); in main()
|
/Zephyr-latest/samples/subsys/sensing/simple/src/ |
D | main.c | 25 sample->readings[0].x, in acc_data_event_callback() 26 sample->readings[0].y, in acc_data_event_callback() 27 sample->readings[0].z); in acc_data_event_callback() 38 LOG_INF("handle:%p, Sensor:%s data:(v:%d)", handle, info->name, sample->readings[0].v); in hinge_angle_data_event_callback()
|
/Zephyr-latest/samples/drivers/adc/adc_sequence/ |
D | Kconfig | 9 int "Set the resolution of the sequence readings."
|