Home
last modified time | relevance | path

Searched refs:sample_number (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/src/
Dvnd_sensor.c26 uint32_t sample_number; member
34 uint32_t sample_number; in vnd_sensor_iodev_read() local
40 sample_number = data->sample_number++; in vnd_sensor_iodev_read()
49 buf[i] = sample_number * config->sample_size + i; in vnd_sensor_iodev_read()
/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345.c327 data->sample_number = 0; in adxl345_sample_fetch()
356 if (data->sample_number >= ARRAY_SIZE(data->bufx)) { in adxl345_channel_get()
357 data->sample_number = 0; in adxl345_channel_get()
362 adxl345_accel_convert(val, data->bufx[data->sample_number]); in adxl345_channel_get()
363 data->sample_number++; in adxl345_channel_get()
366 adxl345_accel_convert(val, data->bufy[data->sample_number]); in adxl345_channel_get()
367 data->sample_number++; in adxl345_channel_get()
370 adxl345_accel_convert(val, data->bufz[data->sample_number]); in adxl345_channel_get()
371 data->sample_number++; in adxl345_channel_get()
374 adxl345_accel_convert(val++, data->bufx[data->sample_number]); in adxl345_channel_get()
[all …]
Dadxl345.h152 unsigned int sample_number; member