/Zephyr-latest/drivers/sensor/ |
D | default_rtio_sensor.c | 57 num_samples += SENSOR_CHANNEL_3_AXIS(channels[i].chan_type) ? 3 : 1; in compute_num_samples() 100 __ASSERT_NO_MSG(!SENSOR_CHANNEL_3_AXIS(chan_spec.chan_type)); in check_header_contains_channel() 154 const int num_samples = SENSOR_CHANNEL_3_AXIS(channels[i].chan_type) ? 3 : 1; in sensor_submit_fallback_sync() 157 rc = sensor_channel_get(dev, channels[i].chan_type, value); in sensor_submit_fallback_sync() 161 rc == 0 ? channels[i].chan_type - 3 : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 165 rc == 0 ? channels[i].chan_type - 2 : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 169 rc == 0 ? channels[i].chan_type - 1 : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 174 rc == 0 ? channels[i].chan_type : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 181 channels[i].chan_type, channels[i].chan_idx); in sensor_submit_fallback_sync() 319 switch (channel.chan_type) { in get_frame_count() [all …]
|
D | sensor_shell.c | 356 for (struct sensor_chan_spec ch = {0, 0}; ch.chan_type < SENSOR_CHAN_ALL; ch.chan_type++) { in sensor_shell_processing_callback() 363 switch (ch.chan_type) { in sensor_shell_processing_callback() 382 sensor_channel_name[ch.chan_type], ch.chan_idx); in sensor_shell_processing_callback() 391 ch.chan_type, ch.chan_idx, base_size, in sensor_shell_processing_callback() 398 frame_count, sensor_channel_name[ch.chan_type], ch.chan_idx); in sensor_shell_processing_callback() 402 switch (ch.chan_type) { in sensor_shell_processing_callback() 456 switch (ch.chan_type) { in sensor_shell_processing_callback() 480 ch.chan_type, sensor_channel_name[ch.chan_type], in sensor_shell_processing_callback() 501 ch.chan_type, sensor_channel_name[ch.chan_type], in sensor_shell_processing_callback() 523 ch.chan_type, in sensor_shell_processing_callback() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | emul_bmi160.c | 296 switch (ch.chan_type) { in bmi160_emul_backend_set_channel() 300 reg_lsb = BMI160_REG_DATA_ACC_X + (ch.chan_type - SENSOR_CHAN_ACCEL_X) * 2; in bmi160_emul_backend_set_channel() 321 reg_lsb = BMI160_REG_DATA_GYR_X + (ch.chan_type - SENSOR_CHAN_GYRO_X) * 2; in bmi160_emul_backend_set_channel() 361 if (ch.chan_type == SENSOR_CHAN_DIE_TEMP) { in bmi160_emul_backend_set_channel() 380 switch (ch.chan_type) { in bmi160_emul_backend_get_sample_range() 451 if (ch.chan_type != SENSOR_CHAN_ACCEL_XYZ && ch.chan_type != SENSOR_CHAN_GYRO_XYZ) { in bmi160_emul_backend_set_offset() 460 if (ch.chan_type == SENSOR_CHAN_ACCEL_XYZ) { in bmi160_emul_backend_set_offset() 466 if (ch.chan_type == SENSOR_CHAN_ACCEL_XYZ) { in bmi160_emul_backend_set_offset() 473 if (ch.chan_type == SENSOR_CHAN_ACCEL_XYZ) { in bmi160_emul_backend_set_offset() 501 __ASSERT_NO_MSG(ch.chan_type != SENSOR_CHAN_ACCEL_XYZ || in bmi160_emul_backend_set_offset() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_decoder.c | 150 switch (chan_spec.chan_type) { in lsm6dsv16x_decoder_get_frame_count() 216 switch (chan_spec.chan_type) { in lsm6dsv16x_decoder_get_frame_count() 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() 301 chan_spec.chan_type == SENSOR_CHAN_GAME_ROTATION_VECTOR || in lsm6dsv16x_decode_fifo() 302 chan_spec.chan_type == SENSOR_CHAN_GBIAS_XYZ) { in lsm6dsv16x_decode_fifo() 330 if (!SENSOR_CHANNEL_IS_ACCEL(chan_spec.chan_type)) { in lsm6dsv16x_decode_fifo() 361 if (!SENSOR_CHANNEL_IS_GYRO(chan_spec.chan_type)) { in lsm6dsv16x_decode_fifo() [all …]
|
D | lsm6dsv16x_rtio.c | 47 switch (channels[i].chan_type) { in lsm6dsv16x_submit_sample()
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280_decoder.c | 20 switch (chan_spec.chan_type) { in bme280_decoder_get_frame_count() 44 switch (chan_spec.chan_type) { in bme280_decoder_get_size_info() 70 switch (chan_spec.chan_type) { in bme280_decoder_decode()
|
D | bme280_async.c | 44 switch (channels[i].chan_type) { in bme280_submit_sync()
|
/Zephyr-latest/drivers/sensor/f75303/ |
D | f75303_emul.c | 115 switch ((int32_t)ch.chan_type) { in f75303_emul_set_channel() 145 if (ch.chan_type != SENSOR_CHAN_AMBIENT_TEMP && in f75303_emul_get_sample_range() 146 ch.chan_type != (enum sensor_channel)SENSOR_CHAN_F75303_REMOTE1 && in f75303_emul_get_sample_range() 147 ch.chan_type != (enum sensor_channel)SENSOR_CHAN_F75303_REMOTE2) { in f75303_emul_get_sample_range()
|
/Zephyr-latest/tests/drivers/build_all/sensor/src/ |
D | generic_test.c | 114 struct sensor_chan_spec ch_spec = {.chan_type = ch, .chan_idx = 0}; in run_generic_test() 125 iodev_all_channels[iodev_read_config.count++].chan_type = ch; in run_generic_test() 164 &channel_table[ch_spec.chan_type].expected_values[iteration], in run_generic_test() 165 channel_table[ch_spec.chan_type].expected_value_shift); in run_generic_test() 169 channel_table[i].expected_values[iteration], ch_spec.chan_type, in run_generic_test()
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_decoder.c | 25 switch (chan_spec.chan_type) { in akm09918c_decoder_get_size_info() 62 switch (chan_spec.chan_type) { in akm09918c_decoder_decode()
|
D | akm09918c_async.c | 27 switch (channels[i].chan_type) { in akm09918c_submit_sync() 35 LOG_ERR("Unsupported channel type %d", channels[i].chan_type); in akm09918c_submit_sync()
|
D | akm09918c_emul.c | 146 switch (ch.chan_type) { in akm09918c_emul_backend_set_channel() 190 switch (ch.chan_type) { in akm09918c_emul_backend_get_sample_range()
|
/Zephyr-latest/drivers/sensor/adi/adxl345/ |
D | adxl345_decoder.c | 130 switch (chan_spec.chan_type) { in adxl345_decode_stream() 172 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count() 190 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count() 217 switch (chan_spec.chan_type) { in adxl345_decode_sample()
|
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_decoder.c | 20 switch (chan_spec.chan_type) { in mmc56x3_decoder_get_frame_count() 51 switch (chan_spec.chan_type) { in mmc56x3_decoder_get_size_info() 77 switch (chan_spec.chan_type) { in mmc56x3_decoder_decode()
|
D | mmc56x3_async.c | 43 switch (channels[i].chan_type) { in mmc56x3_submit_sync()
|
/Zephyr-latest/drivers/sensor/adi/adxl362/ |
D | adxl362_decoder.c | 107 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in adxl362_decode_stream() 136 switch (chan_spec.chan_type) { in adxl362_decode_stream() 234 switch (chan_spec.chan_type) { in adxl362_decoder_get_frame_count() 252 switch (chan_spec.chan_type) { in adxl362_decoder_get_frame_count() 294 switch (chan_spec.chan_type) { in adxl362_decode_sample()
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372_decoder.c | 76 switch (chan_spec.chan_type) { in adxl372_decode_stream() 163 switch (chan_spec.chan_type) { in adxl372_decoder_get_frame_count() 181 switch (chan_spec.chan_type) { in adxl372_decoder_get_frame_count() 231 switch (chan_spec.chan_type) { in adxl372_decode_sample()
|
/Zephyr-latest/drivers/sensor/bosch/bma4xx/ |
D | bma4xx.c | 380 switch (channels[i].chan_type) { in bma4xx_submit_one_shot() 400 channels[i].chan_type, channels[i].chan_idx); in bma4xx_submit_one_shot() 472 switch (ch.chan_type) { in bma4xx_decoder_get_frame_count() 495 switch (ch.chan_type) { in bma4xx_decoder_get_size_info() 514 switch (ch.chan_type) { in bma4xx_get_shift() 601 switch (ch.chan_type) { in bma4xx_one_shot_decode() 614 rc = bma4xx_get_shift((struct sensor_chan_spec){.chan_type = SENSOR_CHAN_ACCEL_XYZ, in bma4xx_one_shot_decode()
|
D | bma4xx_emul.c | 229 switch (ch.chan_type) { in bma4xx_emul_backend_set_channel() 261 switch (ch.chan_type) { in bma4xx_emul_backend_get_sample_range()
|
/Zephyr-latest/drivers/sensor/amd_sb_tsi/ |
D | sb_tsi_emul.c | 110 if (ch.chan_type != SENSOR_CHAN_AMBIENT_TEMP && ch.chan_idx != 0) { in sb_tsi_emul_set_channel() 127 if (ch.chan_type != SENSOR_CHAN_AMBIENT_TEMP || ch.chan_idx != 0) { in sb_tsi_emul_get_sample_range()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_emul.c | 306 switch (ch.chan_type) { in icm42688_emul_backend_get_sample_range() 346 switch (ch.chan_type) { in icm42688_emul_backend_set_channel() 354 switch (ch.chan_type) { in icm42688_emul_backend_set_channel() 373 switch (ch.chan_type) { in icm42688_emul_backend_set_channel()
|
D | icm42688_decoder.c | 190 edata->channels |= icm42688_encode_channel(channels[i].chan_type); in icm42688_encode() 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() 472 switch (chan_spec.chan_type) { in icm42688_one_shot_decode() 595 switch (chan_spec.chan_type) { in icm42688_decoder_get_frame_count() 647 switch (chan_spec.chan_type) { in icm42688_decoder_get_size_info()
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367_decoder.c | 170 switch (chan_spec.chan_type) { in adxl367_get_accel() 261 switch (chan_spec.chan_type) { in adxl367_get_12b_accel() 466 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in adxl367_decode_12b_stream() 546 if (chan_spec.chan_type == SENSOR_CHAN_DIE_TEMP) { in adxl367_decode_stream() 620 switch (chan_spec.chan_type) { in adxl367_decoder_get_frame_count() 638 switch (chan_spec.chan_type) { in adxl367_decoder_get_frame_count() 694 switch (chan_spec.chan_type) { in adxl367_decode_sample()
|
/Zephyr-latest/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()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor.h | 441 uint16_t chan_type; /**< A sensor channel type */ member 462 return chan_spec0.chan_type == chan_spec1.chan_type && in sensor_chan_spec_eq() 576 .channel = {.chan_type = (channel_type_), .chan_idx = (channel_index_)}, \
|