Home
last modified time | relevance | path

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

12

/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c58 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 …]
Dsensor_shell.c362 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/
Dicm45686_decoder.c205 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/
Dpaa3905_decoder.c90 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/
Dicm42688_decoder.c194 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 …]
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()
/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 …]
/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()
/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345_decoder.c144 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/
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/melexis/mlx90394/
Dmlx90394_async.c33 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()
Dmlx90394_decoder.c25 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/
Dmain.c57 .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/
Dds3231.c129 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/
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.c46 switch (channels[i].chan_type) { in akm09918c_submit()
54 LOG_ERR("Unsupported channel type %d", channels[i].chan_type); in akm09918c_submit()
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/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()
/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.c389 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/
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/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()

12