Home
last modified time | relevance | path

Searched refs:chan_spec (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/drivers/sensor/bosch/bme280/
Dbme280_decoder.c9 static int bme280_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in bme280_decoder_get_frame_count() argument
15 if (chan_spec.chan_idx != 0) { in bme280_decoder_get_frame_count()
20 switch (chan_spec.chan_type) { in bme280_decoder_get_frame_count()
41 static int bme280_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, in bme280_decoder_get_size_info() argument
44 switch (chan_spec.chan_type) { in bme280_decoder_get_size_info()
56 static int bme280_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in bme280_decoder_decode() argument
70 switch (chan_spec.chan_type) { in bme280_decoder_decode()
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_decoder.c11 struct sensor_chan_spec chan_spec, in akm09918c_decoder_get_frame_count() argument
15 ARG_UNUSED(chan_spec); in akm09918c_decoder_get_frame_count()
22 static int akm09918c_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, in akm09918c_decoder_get_size_info() argument
25 switch (chan_spec.chan_type) { in akm09918c_decoder_get_size_info()
53 static int akm09918c_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in akm09918c_decoder_decode() argument
62 switch (chan_spec.chan_type) { in akm09918c_decoder_decode()
/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345_decoder.c88 static int adxl345_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decode_stream() argument
97 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in adxl345_decode_stream()
130 switch (chan_spec.chan_type) { in adxl345_decode_stream()
158 static int adxl345_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_get_frame_count() argument
163 if (chan_spec.chan_idx != 0) { in adxl345_decoder_get_frame_count()
172 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count()
190 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count()
208 struct sensor_chan_spec chan_spec, uint32_t *fit, in adxl345_decode_sample() argument
217 switch (chan_spec.chan_type) { in adxl345_decode_sample()
232 static int adxl345_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_decode() argument
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372_decoder.c35 static int adxl372_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decode_stream() argument
44 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in adxl372_decode_stream()
76 switch (chan_spec.chan_type) { in adxl372_decode_stream()
149 static int adxl372_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decoder_get_frame_count() argument
154 if (chan_spec.chan_idx != 0) { in adxl372_decoder_get_frame_count()
163 switch (chan_spec.chan_type) { in adxl372_decoder_get_frame_count()
181 switch (chan_spec.chan_type) { in adxl372_decoder_get_frame_count()
222 struct sensor_chan_spec chan_spec, uint32_t *fit, in adxl372_decode_sample() argument
231 switch (chan_spec.chan_type) { in adxl372_decode_sample()
255 static int adxl372_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decoder_decode() argument
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362_decoder.c67 static int adxl362_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl362_decode_stream() argument
77 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in adxl362_decode_stream()
107 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in adxl362_decode_stream()
136 switch (chan_spec.chan_type) { in adxl362_decode_stream()
220 struct sensor_chan_spec chan_spec, in adxl362_decoder_get_frame_count() argument
225 if (chan_spec.chan_idx != 0) { in adxl362_decoder_get_frame_count()
234 switch (chan_spec.chan_type) { in adxl362_decoder_get_frame_count()
252 switch (chan_spec.chan_type) { in adxl362_decoder_get_frame_count()
286 struct sensor_chan_spec chan_spec, uint32_t *fit, uint16_t max_count, void *data_out) in adxl362_decode_sample() argument
294 switch (chan_spec.chan_type) { in adxl362_decode_sample()
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_decoder.c139 struct sensor_chan_spec chan_spec, in lsm6dsv16x_decoder_get_frame_count() argument
145 if (chan_spec.chan_idx != 0) { in lsm6dsv16x_decoder_get_frame_count()
150 switch (chan_spec.chan_type) { in lsm6dsv16x_decoder_get_frame_count()
216 switch (chan_spec.chan_type) { in lsm6dsv16x_decoder_get_frame_count()
255 static int lsm6dsv16x_decode_fifo(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in lsm6dsv16x_decode_fifo() argument
273 ret = lsm6dsv16x_decoder_get_frame_count(buffer, chan_spec, &tot_chan_fifo_words); in lsm6dsv16x_decode_fifo()
286 if (SENSOR_CHANNEL_IS_ACCEL(chan_spec.chan_type)) { in lsm6dsv16x_decode_fifo()
290 } else if (SENSOR_CHANNEL_IS_GYRO(chan_spec.chan_type)) { in lsm6dsv16x_decode_fifo()
295 } else if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in lsm6dsv16x_decode_fifo()
300 } else if (chan_spec.chan_type == SENSOR_CHAN_GRAVITY_VECTOR || in lsm6dsv16x_decode_fifo()
[all …]
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3_decoder.c9 static int mmc56x3_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in mmc56x3_decoder_get_frame_count() argument
15 if (chan_spec.chan_idx != 0) { in mmc56x3_decoder_get_frame_count()
20 switch (chan_spec.chan_type) { in mmc56x3_decoder_get_frame_count()
48 static int mmc56x3_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, in mmc56x3_decoder_get_size_info() argument
51 switch (chan_spec.chan_type) { in mmc56x3_decoder_get_size_info()
67 static int mmc56x3_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in mmc56x3_decoder_decode() argument
77 switch (chan_spec.chan_type) { in mmc56x3_decoder_decode()
/Zephyr-latest/drivers/sensor/adi/adxl367/
Dadxl367_decoder.c165 uint8_t sample_size, struct sensor_chan_spec chan_spec, in adxl367_get_accel() argument
170 switch (chan_spec.chan_type) { in adxl367_get_accel()
253 uint8_t packet_size, struct sensor_chan_spec chan_spec, uint8_t packet_alignment, in adxl367_get_12b_accel() argument
261 switch (chan_spec.chan_type) { in adxl367_get_12b_accel()
420 static int adxl367_decode_12b_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl367_decode_12b_stream() argument
466 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in adxl367_decode_12b_stream()
488 chan_spec, packet_alignment, period_ns, sample_num); in adxl367_decode_12b_stream()
503 static int adxl367_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl367_decode_stream() argument
512 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in adxl367_decode_stream()
527 count = adxl367_decode_12b_stream(buffer, chan_spec, fit, max_count, in adxl367_decode_stream()
[all …]
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c98 struct sensor_chan_spec chan_spec, int num_channels) in check_header_contains_channel() argument
100 __ASSERT_NO_MSG(!SENSOR_CHANNEL_3_AXIS(chan_spec.chan_type)); in check_header_contains_channel()
103 if (sensor_chan_spec_eq(header->channels[i], chan_spec)) { in check_header_contains_channel()
391 struct sensor_chan_spec chan_spec, q31_t *out) in get_q31_value() argument
394 if (sensor_chan_spec_eq(chan_spec, header->channels[i])) { in get_q31_value()
432 struct sensor_q31_data *data_out, struct sensor_chan_spec chan_spec) in decode_q31() argument
441 rc = get_q31_value(header, values, chan_spec, &data_out->readings[0].value); in decode_q31()
465 static int decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in decode() argument
477 if (chan_spec.chan_type >= SENSOR_CHAN_ALL) { in decode()
482 switch (chan_spec.chan_type) { in decode()
[all …]
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_decoder.c348 static int icm42688_fifo_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_fifo_decode() argument
358 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in icm42688_fifo_decode()
390 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in icm42688_fifo_decode()
403 } else if (IS_ACCEL(chan_spec.chan_type) && has_accel) { in icm42688_fifo_decode()
424 } else if (IS_GYRO(chan_spec.chan_type) && has_gyro) { in icm42688_fifo_decode()
453 static int icm42688_one_shot_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_one_shot_decode() argument
468 if (max_count == 0 || chan_spec.chan_idx != 0) { in icm42688_one_shot_decode()
472 switch (chan_spec.chan_type) { in icm42688_one_shot_decode()
571 static int icm42688_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_decoder_decode() argument
578 return icm42688_fifo_decode(buffer, chan_spec, fit, max_count, data_out); in icm42688_decoder_decode()
[all …]
/Zephyr-latest/tests/drivers/sensor/bmi160/src/
Dfixture.c36 struct sensor_chan_spec chan_spec = {.chan_type = values[i].channel, .chan_idx = 0}; in sensor_bmi160_setup_emulator() local
38 zassert_ok(emul_sensor_backend_set_channel(emulator, chan_spec, in sensor_bmi160_setup_emulator()