Searched refs:edata (Results 1 – 11 of 11) sorted by relevance
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_async.c | 32 struct mmc56x3_encoded_data *edata; in mmc56x3_submit_sync() local 34 edata = (struct mmc56x3_encoded_data *)buf; in mmc56x3_submit_sync() 35 edata->header.timestamp = k_ticks_to_ns_floor64(k_uptime_ticks()); in mmc56x3_submit_sync() 36 edata->has_temp = 0; in mmc56x3_submit_sync() 37 edata->has_magn_x = 0; in mmc56x3_submit_sync() 38 edata->has_magn_y = 0; in mmc56x3_submit_sync() 39 edata->has_magn_z = 0; in mmc56x3_submit_sync() 45 edata->has_temp = 1; in mmc56x3_submit_sync() 48 edata->has_magn_x = 1; in mmc56x3_submit_sync() 51 edata->has_magn_y = 1; in mmc56x3_submit_sync() [all …]
|
D | mmc56x3_decoder.c | 12 const struct mmc56x3_encoded_data *edata = (const struct mmc56x3_encoded_data *)buffer; in mmc56x3_decoder_get_frame_count() local 22 *frame_count = edata->has_temp ? 1 : 0; in mmc56x3_decoder_get_frame_count() 25 *frame_count = edata->has_magn_x ? 1 : 0; in mmc56x3_decoder_get_frame_count() 28 *frame_count = edata->has_magn_y ? 1 : 0; in mmc56x3_decoder_get_frame_count() 31 *frame_count = edata->has_magn_z ? 1 : 0; in mmc56x3_decoder_get_frame_count() 35 ((edata->has_magn_x && edata->has_magn_y && edata->has_magn_z) ? 1 : 0); in mmc56x3_decoder_get_frame_count() 70 const struct mmc56x3_encoded_data *edata = (const struct mmc56x3_encoded_data *)buffer; in mmc56x3_decoder_decode() local 71 const struct mmc56x3_data *data = &edata->data; in mmc56x3_decoder_decode() 79 if (edata->has_temp) { in mmc56x3_decoder_decode() 82 out->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_rtio.c | 27 struct lsm6dsv16x_rtio_data *edata; in lsm6dsv16x_submit_sample() local 40 edata = (struct lsm6dsv16x_rtio_data *)buf; in lsm6dsv16x_submit_sample() 42 edata->has_accel = 0; in lsm6dsv16x_submit_sample() 43 edata->has_gyro = 0; in lsm6dsv16x_submit_sample() 44 edata->has_temp = 0; in lsm6dsv16x_submit_sample() 52 edata->has_accel = 1; in lsm6dsv16x_submit_sample() 54 rc = lsm6dsv16x_acceleration_raw_get(ctx, edata->acc); in lsm6dsv16x_submit_sample() 64 edata->has_gyro = 1; in lsm6dsv16x_submit_sample() 66 rc = lsm6dsv16x_angular_rate_raw_get(ctx, edata->gyro); in lsm6dsv16x_submit_sample() 74 edata->has_temp = 1; in lsm6dsv16x_submit_sample() [all …]
|
D | lsm6dsv16x_decoder.c | 171 const struct lsm6dsv16x_fifo_data *edata = (const struct lsm6dsv16x_fifo_data *)buffer; in lsm6dsv16x_decoder_get_frame_count() local 182 buffer_end = buffer + LSM6DSV16X_FIFO_SIZE(edata->fifo_count); in lsm6dsv16x_decoder_get_frame_count() 258 const struct lsm6dsv16x_fifo_data *edata = (const struct lsm6dsv16x_fifo_data *)buffer; in lsm6dsv16x_decode_fifo() local 260 const struct lsm6dsv16x_decoder_header *header = &edata->header; in lsm6dsv16x_decode_fifo() 279 buffer_end = buffer + LSM6DSV16X_FIFO_SIZE(edata->fifo_count); in lsm6dsv16x_decode_fifo() 288 edata->header.timestamp - in lsm6dsv16x_decode_fifo() 289 (tot_chan_fifo_words - 1) * accel_period_ns[edata->accel_batch_odr]; in lsm6dsv16x_decode_fifo() 292 edata->header.timestamp - in lsm6dsv16x_decode_fifo() 293 (tot_chan_fifo_words - 1) * gyro_period_ns[edata->gyro_batch_odr]; in lsm6dsv16x_decode_fifo() 297 edata->header.timestamp - in lsm6dsv16x_decode_fifo() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_async.c | 34 struct bme280_encoded_data *edata; in bme280_submit_sync() local 36 edata = (struct bme280_encoded_data *)buf; in bme280_submit_sync() 37 edata->header.timestamp = k_ticks_to_ns_floor64(k_uptime_ticks()); in bme280_submit_sync() 38 edata->has_temp = 0; in bme280_submit_sync() 39 edata->has_humidity = 0; in bme280_submit_sync() 40 edata->has_press = 0; in bme280_submit_sync() 46 edata->has_temp = 1; in bme280_submit_sync() 49 edata->has_humidity = 1; in bme280_submit_sync() 52 edata->has_press = 1; in bme280_submit_sync() 55 edata->has_temp = 1; in bme280_submit_sync() [all …]
|
D | bme280_decoder.c | 12 const struct bme280_encoded_data *edata = (const struct bme280_encoded_data *)buffer; in bme280_decoder_get_frame_count() local 22 *frame_count = edata->has_temp ? 1 : 0; in bme280_decoder_get_frame_count() 25 *frame_count = edata->has_press ? 1 : 0; in bme280_decoder_get_frame_count() 28 *frame_count = edata->has_humidity ? 1 : 0; in bme280_decoder_get_frame_count() 59 const struct bme280_encoded_data *edata = (const struct bme280_encoded_data *)buffer; in bme280_decoder_decode() local 67 out->header.base_timestamp_ns = edata->header.timestamp; in bme280_decoder_decode() 72 if (edata->has_temp) { in bme280_decoder_decode() 73 int32_t readq = edata->reading.comp_temp * pow(2, 31 - BME280_TEMP_SHIFT); in bme280_decoder_decode() 85 if (edata->has_press) { in bme280_decoder_decode() 86 int32_t readq = edata->reading.comp_press; in bme280_decoder_decode() [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_decoder.c | 185 struct icm42688_encoded_data *edata = (struct icm42688_encoded_data *)buf; in icm42688_encode() local 187 edata->channels = 0; in icm42688_encode() 190 edata->channels |= icm42688_encode_channel(channels[i].chan_type); in icm42688_encode() 193 edata->header.is_fifo = false; in icm42688_encode() 194 edata->header.accel_fs = data->cfg.accel_fs; in icm42688_encode() 195 edata->header.gyro_fs = data->cfg.gyro_fs; in icm42688_encode() 196 edata->header.timestamp = k_ticks_to_ns_floor64(k_uptime_ticks()); in icm42688_encode() 351 const struct icm42688_fifo_data *edata = (const struct icm42688_fifo_data *)buffer; in icm42688_fifo_decode() local 352 const uint8_t *buffer_end = buffer + sizeof(struct icm42688_fifo_data) + edata->fifo_count; in icm42688_fifo_decode() 362 ((struct sensor_data_header *)data_out)->base_timestamp_ns = edata->header.timestamp; in icm42688_fifo_decode() [all …]
|
D | icm42688_rtio.c | 57 struct icm42688_encoded_data *edata; in icm42688_submit_one_shot() local 67 edata = (struct icm42688_encoded_data *)buf; in icm42688_submit_one_shot() 71 rc = icm42688_rtio_sample_fetch(dev, edata->readings); in icm42688_submit_one_shot()
|
/Zephyr-latest/drivers/sensor/bosch/bma4xx/ |
D | bma4xx.c | 352 struct bma4xx_encoded_data *edata; in bma4xx_submit_one_shot() local 366 edata = (struct bma4xx_encoded_data *)buf; in bma4xx_submit_one_shot() 367 edata->header.is_fifo = false; in bma4xx_submit_one_shot() 368 edata->header.accel_fs = bma4xx->accel_fs_range; in bma4xx_submit_one_shot() 369 edata->header.timestamp = k_ticks_to_ns_floor64(k_uptime_ticks()); in bma4xx_submit_one_shot() 370 edata->has_accel = 0; in bma4xx_submit_one_shot() 371 edata->has_temp = 0; in bma4xx_submit_one_shot() 382 edata->has_accel = 1; in bma4xx_submit_one_shot() 384 edata->has_temp = 1; in bma4xx_submit_one_shot() 391 edata->has_accel = 1; in bma4xx_submit_one_shot() [all …]
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_decoder.c | 56 const struct akm09918c_encoded_data *edata = (const struct akm09918c_encoded_data *)buffer; in akm09918c_decoder_decode() local 69 out->header.base_timestamp_ns = edata->header.timestamp; in akm09918c_decoder_decode() 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 | 86 struct akm09918c_encoded_data *edata; in akm09918_async_fetch() local 96 edata = (struct akm09918c_encoded_data *)buf; in akm09918_async_fetch() 97 rc = akm09918c_fetch_measurement(dev, &edata->readings[0], &edata->readings[1], in akm09918_async_fetch() 98 &edata->readings[2]); in akm09918_async_fetch()
|