| /Zephyr-4.1.0/drivers/sensor/tdk/icm45686/ |
| D | icm45686_decoder.c | 222 struct sensor_chan_spec chan_spec, in icm45686_decoder_get_frame_count() argument 227 if (chan_spec.chan_idx != 0) { in icm45686_decoder_get_frame_count() 231 uint8_t channel_request = icm45686_encode_channel(chan_spec.chan_type); in icm45686_decoder_get_frame_count() 239 switch (chan_spec.chan_type) { in icm45686_decoder_get_frame_count() 258 switch (chan_spec.chan_type) { in icm45686_decoder_get_frame_count() 273 static int icm45686_decoder_get_size_info(struct sensor_chan_spec chan_spec, in icm45686_decoder_get_size_info() argument 277 switch (chan_spec.chan_type) { in icm45686_decoder_get_size_info() 299 struct sensor_chan_spec chan_spec, in icm45686_one_shot_decode() argument 312 if (max_count == 0 || chan_spec.chan_idx != 0) { in icm45686_one_shot_decode() 316 switch (chan_spec.chan_type) { in icm45686_one_shot_decode() [all …]
|
| /Zephyr-4.1.0/drivers/sensor/pixart/paa3905/ |
| D | paa3905_decoder.c | 81 struct sensor_chan_spec chan_spec, in paa3905_decoder_get_frame_count() argument 86 if (chan_spec.chan_idx != 0) { in paa3905_decoder_get_frame_count() 90 uint8_t channel_request = paa3905_encode_channel(chan_spec.chan_type); in paa3905_decoder_get_frame_count() 97 switch (chan_spec.chan_type) { in paa3905_decoder_get_frame_count() 110 static int paa3905_decoder_get_size_info(struct sensor_chan_spec chan_spec, in paa3905_decoder_get_size_info() argument 114 switch (chan_spec.chan_type) { in paa3905_decoder_get_size_info() 130 struct sensor_chan_spec chan_spec, in paa3905_decoder_decode() argument 142 if (max_count == 0 || chan_spec.chan_idx != 0) { in paa3905_decoder_decode() 146 switch (chan_spec.chan_type) { in paa3905_decoder_decode() 149 channel_request = paa3905_encode_channel(chan_spec.chan_type); in paa3905_decoder_decode() [all …]
|
| /Zephyr-4.1.0/drivers/sensor/bosch/bme280/ |
| D | bme280_decoder.c | 9 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-4.1.0/drivers/sensor/asahi_kasei/akm09918c/ |
| D | akm09918c_decoder.c | 11 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-4.1.0/drivers/sensor/tdk/icm42688/ |
| D | icm42688_decoder.c | 309 static int icm42688_fifo_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_fifo_decode() argument 319 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in icm42688_fifo_decode() 351 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in icm42688_fifo_decode() 364 } else if (IS_ACCEL(chan_spec.chan_type) && has_accel) { in icm42688_fifo_decode() 385 } else if (IS_GYRO(chan_spec.chan_type) && has_gyro) { in icm42688_fifo_decode() 414 static int icm42688_one_shot_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_one_shot_decode() argument 429 if (max_count == 0 || chan_spec.chan_idx != 0) { in icm42688_one_shot_decode() 433 switch (chan_spec.chan_type) { in icm42688_one_shot_decode() 441 channel_request = icm42688_encode_channel(chan_spec.chan_type); in icm42688_one_shot_decode() 451 rc = icm42688_get_shift(chan_spec.chan_type, header->accel_fs, header->gyro_fs, in icm42688_one_shot_decode() [all …]
|
| /Zephyr-4.1.0/drivers/sensor/adi/adxl345/ |
| D | adxl345_decoder.c | 102 static int adxl345_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decode_stream() argument 111 if ((uintptr_t)buffer_end <= *fit || chan_spec.chan_idx != 0) { in adxl345_decode_stream() 144 switch (chan_spec.chan_type) { in adxl345_decode_stream() 172 static int adxl345_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_get_frame_count() argument 177 if (chan_spec.chan_idx != 0) { in adxl345_decoder_get_frame_count() 186 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count() 204 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count() 222 struct sensor_chan_spec chan_spec, uint32_t *fit, in adxl345_decode_sample() argument 236 switch (chan_spec.chan_type) { in adxl345_decode_sample() 254 static int adxl345_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_decode() argument [all …]
|
| /Zephyr-4.1.0/drivers/sensor/adi/adxl372/ |
| D | adxl372_decoder.c | 35 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-4.1.0/drivers/sensor/adi/adxl362/ |
| D | adxl362_decoder.c | 67 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-4.1.0/drivers/sensor/st/lsm6dsv16x/ |
| D | lsm6dsv16x_decoder.c | 139 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-4.1.0/drivers/sensor/memsic/mmc56x3/ |
| D | mmc56x3_decoder.c | 9 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-4.1.0/drivers/sensor/adi/adxl367/ |
| D | adxl367_decoder.c | 165 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-4.1.0/drivers/sensor/ |
| D | default_rtio_sensor.c | 99 struct sensor_chan_spec chan_spec, int num_channels) in check_header_contains_channel() argument 101 __ASSERT_NO_MSG(!SENSOR_CHANNEL_3_AXIS(chan_spec.chan_type)); in check_header_contains_channel() 104 if (sensor_chan_spec_eq(header->channels[i], chan_spec)) { in check_header_contains_channel() 409 struct sensor_chan_spec chan_spec, q31_t *out) in get_q31_value() argument 412 if (sensor_chan_spec_eq(chan_spec, header->channels[i])) { in get_q31_value() 450 struct sensor_q31_data *data_out, struct sensor_chan_spec chan_spec) in decode_q31() argument 459 rc = get_q31_value(header, values, chan_spec, &data_out->readings[0].value); in decode_q31() 483 static int decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in decode() argument 495 if (chan_spec.chan_type >= SENSOR_CHAN_ALL) { in decode() 500 switch (chan_spec.chan_type) { in decode() [all …]
|
| /Zephyr-4.1.0/drivers/sensor/maxim/ds3231/ |
| D | ds3231.c | 166 struct sensor_chan_spec chan_spec, in sensor_ds3231_decoder_get_frame_count() argument 171 if (chan_spec.chan_idx != 0) { in sensor_ds3231_decoder_get_frame_count() 175 switch (chan_spec.chan_type) { in sensor_ds3231_decoder_get_frame_count() 190 static int sensor_ds3231_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, in sensor_ds3231_decoder_get_size_info() argument 193 switch (chan_spec.chan_type) { in sensor_ds3231_decoder_get_size_info() 203 static int sensor_ds3231_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in sensor_ds3231_decoder_decode() argument 216 switch (chan_spec.chan_type) { in sensor_ds3231_decoder_decode()
|
| /Zephyr-4.1.0/tests/drivers/sensor/bmi160/src/ |
| D | fixture.c | 36 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()
|