Home
last modified time | relevance | path

Searched refs:chan_type (Results 1 – 25 of 25) sorted by relevance

/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c57 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 …]
Dsensor_shell.c356 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/
Demul_bmi160.c296 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/
Dlsm6dsv16x_decoder.c150 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 …]
Dlsm6dsv16x_rtio.c47 switch (channels[i].chan_type) { in lsm6dsv16x_submit_sample()
/Zephyr-latest/drivers/sensor/bosch/bme280/
Dbme280_decoder.c20 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()
Dbme280_async.c44 switch (channels[i].chan_type) { in bme280_submit_sync()
/Zephyr-latest/drivers/sensor/f75303/
Df75303_emul.c115 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/
Dgeneric_test.c114 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/
Dakm09918c_decoder.c25 switch (chan_spec.chan_type) { in akm09918c_decoder_get_size_info()
62 switch (chan_spec.chan_type) { in akm09918c_decoder_decode()
Dakm09918c_async.c27 switch (channels[i].chan_type) { in akm09918c_submit_sync()
35 LOG_ERR("Unsupported channel type %d", channels[i].chan_type); in akm09918c_submit_sync()
Dakm09918c_emul.c146 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/
Dadxl345_decoder.c130 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/
Dmmc56x3_decoder.c20 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()
Dmmc56x3_async.c43 switch (channels[i].chan_type) { in mmc56x3_submit_sync()
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362_decoder.c107 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/
Dadxl372_decoder.c76 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/
Dbma4xx.c380 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()
Dbma4xx_emul.c229 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/
Dsb_tsi_emul.c110 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/
Dicm42688_emul.c306 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()
Dicm42688_decoder.c190 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/
Dadxl367_decoder.c170 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/
Dfixture.c36 struct sensor_chan_spec chan_spec = {.chan_type = values[i].channel, .chan_idx = 0}; in sensor_bmi160_setup_emulator()
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h441 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_)}, \