| /Zephyr-latest/drivers/sensor/ |
| D | default_rtio_sensor.c | 58 num_samples += SENSOR_CHANNEL_3_AXIS(channels[i].chan_type) ? 3 : 1; in compute_num_samples() 101 __ASSERT_NO_MSG(!SENSOR_CHANNEL_3_AXIS(chan_spec.chan_type)); in check_header_contains_channel() 165 const int num_samples = SENSOR_CHANNEL_3_AXIS(channels[i].chan_type) ? 3 : 1; in sensor_submit_fallback_sync() 168 rc = sensor_channel_get(dev, channels[i].chan_type, value); in sensor_submit_fallback_sync() 172 rc == 0 ? channels[i].chan_type - 3 : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 176 rc == 0 ? channels[i].chan_type - 2 : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 180 rc == 0 ? channels[i].chan_type - 1 : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 185 rc == 0 ? channels[i].chan_type : SENSOR_CHAN_MAX, in sensor_submit_fallback_sync() 192 channels[i].chan_type, channels[i].chan_idx); in sensor_submit_fallback_sync() 330 switch (channel.chan_type) { in get_frame_count() [all …]
|
| D | sensor_shell.c | 362 for (struct sensor_chan_spec ch = {0, 0}; ch.chan_type < SENSOR_CHAN_ALL; ch.chan_type++) { in sensor_shell_processing_callback() 371 sensor_channel_name[ch.chan_type], ch.chan_idx); in sensor_shell_processing_callback() 380 ch.chan_type, ch.chan_idx, base_size, in sensor_shell_processing_callback() 387 frame_count, sensor_channel_name[ch.chan_type], ch.chan_idx); in sensor_shell_processing_callback() 391 switch (ch.chan_type) { in sensor_shell_processing_callback() 445 switch (ch.chan_type) { in sensor_shell_processing_callback() 469 ch.chan_type, sensor_channel_name[ch.chan_type], in sensor_shell_processing_callback() 490 ch.chan_type, sensor_channel_name[ch.chan_type], in sensor_shell_processing_callback() 512 ch.chan_type, in sensor_shell_processing_callback() 513 (ch.chan_type >= ARRAY_SIZE(sensor_channel_name)) in sensor_shell_processing_callback() [all …]
|
| /Zephyr-latest/drivers/sensor/tdk/icm45686/ |
| D | icm45686_decoder.c | 205 edata->header.channels |= icm45686_encode_channel(channels[i].chan_type); in icm45686_encode() 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() 277 switch (chan_spec.chan_type) { in icm45686_decoder_get_size_info() 316 switch (chan_spec.chan_type) { in icm45686_one_shot_decode() 324 channel_request = icm45686_encode_channel(chan_spec.chan_type); in icm45686_one_shot_decode() 334 err = icm45686_get_shift(chan_spec.chan_type, in icm45686_one_shot_decode() 344 chan_spec.chan_type, in icm45686_one_shot_decode() 345 edata->payload.readings[icm45686_get_channel_position(chan_spec.chan_type)], in icm45686_one_shot_decode() [all …]
|
| /Zephyr-latest/drivers/sensor/pixart/paa3905/ |
| D | paa3905_decoder.c | 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() 114 switch (chan_spec.chan_type) { in paa3905_decoder_get_size_info() 146 switch (chan_spec.chan_type) { in paa3905_decoder_decode() 149 channel_request = paa3905_encode_channel(chan_spec.chan_type); in paa3905_decoder_decode() 162 out->readings->value = (chan_spec.chan_type == SENSOR_CHAN_POS_DX) ? in paa3905_decoder_decode() 170 channel_request = paa3905_encode_channel(chan_spec.chan_type); in paa3905_decoder_decode() 241 edata->header.channels |= paa3905_encode_channel(channels[i].chan_type); in paa3905_encode()
|
| /Zephyr-latest/drivers/sensor/tdk/icm42688/ |
| D | icm42688_decoder.c | 194 edata->channels |= icm42688_encode_channel(channels[i].chan_type); in icm42688_encode() 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() 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() 458 &cfg, chan_spec.chan_type, in icm42688_one_shot_decode() 459 edata->readings[icm42688_get_channel_position(chan_spec.chan_type)], in icm42688_one_shot_decode() 466 channel_request = icm42688_encode_channel(chan_spec.chan_type); in icm42688_one_shot_decode() [all …]
|
| 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()
|
| /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 …]
|
| /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()
|
| /Zephyr-latest/drivers/sensor/adi/adxl345/ |
| D | adxl345_decoder.c | 144 switch (chan_spec.chan_type) { in adxl345_decode_stream() 186 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count() 204 switch (chan_spec.chan_type) { in adxl345_decoder_get_frame_count() 236 switch (chan_spec.chan_type) { in adxl345_decode_sample() 290 if (channel.chan_type >= SENSOR_CHAN_ALL) { in adxl345_get_size_info() 294 switch (channel.chan_type) { in adxl345_get_size_info()
|
| /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/melexis/mlx90394/ |
| D | mlx90394_async.c | 33 rc = mlx90394_sample_fetch_internal(dev, cfg->channels->chan_type); in mlx90394_async_fetch() 53 switch (cfg->channels->chan_type) { in mlx90394_async_fetch() 89 LOG_DBG("Invalid channel %d", cfg->channels->chan_type); in mlx90394_async_fetch() 104 rc = mlx90394_trigger_measurement_internal(dev, cfg->channels->chan_type); in mlx90394_submit()
|
| D | mlx90394_decoder.c | 25 switch (channel.chan_type) { in mlx90394_decoder_get_size_info() 81 switch (channel.chan_type) { in mlx90394_decoder_decode()
|
| /Zephyr-latest/tests/boards/vmu_rt1170/icm42688/src/ |
| D | main.c | 57 .chan_type = chan, in callback() 65 if (ch.chan_type == SENSOR_CHAN_ACCEL_XYZ) { in callback() 76 } else if (ch.chan_type == SENSOR_CHAN_GYRO_XYZ) { in callback()
|
| /Zephyr-latest/drivers/sensor/maxim/ds3231/ |
| D | ds3231.c | 129 if (channels[0].chan_type != SENSOR_CHAN_AMBIENT_TEMP) { in sensor_ds3231_submit_sync() 175 switch (chan_spec.chan_type) { in sensor_ds3231_decoder_get_frame_count() 193 switch (chan_spec.chan_type) { in sensor_ds3231_decoder_get_size_info() 216 switch (chan_spec.chan_type) { in sensor_ds3231_decoder_decode()
|
| /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 | 46 switch (channels[i].chan_type) { in akm09918c_submit() 54 LOG_ERR("Unsupported channel type %d", channels[i].chan_type); in akm09918c_submit()
|
| 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/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()
|
| /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 | 389 switch (channels[i].chan_type) { in bma4xx_submit_one_shot() 409 channels[i].chan_type, channels[i].chan_idx); in bma4xx_submit_one_shot() 481 switch (ch.chan_type) { in bma4xx_decoder_get_frame_count() 504 switch (ch.chan_type) { in bma4xx_decoder_get_size_info() 523 switch (ch.chan_type) { in bma4xx_get_shift() 610 switch (ch.chan_type) { in bma4xx_one_shot_decode() 623 rc = bma4xx_get_shift((struct sensor_chan_spec){.chan_type = SENSOR_CHAN_ACCEL_XYZ, in bma4xx_one_shot_decode()
|
| /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/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()
|