| /Zephyr-latest/include/zephyr/drivers/ |
| D | emul_sensor.h | 30 int (*set_channel)(const struct emul *target, struct sensor_chan_spec ch, 33 int (*get_sample_range)(const struct emul *target, struct sensor_chan_spec ch, q31_t *lower, 36 int (*set_attribute)(const struct emul *target, struct sensor_chan_spec ch, 39 int (*get_attribute_metadata)(const struct emul *target, struct sensor_chan_spec ch, 72 struct sensor_chan_spec ch, const q31_t *value, in emul_sensor_backend_set_channel() 105 struct sensor_chan_spec ch, q31_t *lower, in emul_sensor_backend_get_sample_range() 131 struct sensor_chan_spec ch, in emul_sensor_backend_set_attribute() 165 struct sensor_chan_spec ch, in emul_sensor_backend_get_attribute_metadata()
|
| D | sensor.h | 443 struct sensor_chan_spec { struct 450 BUILD_ASSERT(sizeof(struct sensor_chan_spec) <= sizeof(uintptr_t), 462 static inline bool sensor_chan_spec_eq(struct sensor_chan_spec chan_spec0, in sensor_chan_spec_eq() 463 struct sensor_chan_spec chan_spec1) in sensor_chan_spec_eq() 485 int (*get_frame_count)(const uint8_t *buffer, struct sensor_chan_spec channel, 500 int (*get_size_info)(struct sensor_chan_spec channel, size_t *base_size, 528 int (*decode)(const uint8_t *buffer, struct sensor_chan_spec channel, uint32_t *fit, 568 struct sensor_chan_spec channel; 596 int sensor_natively_supported_channel_size_info(struct sensor_chan_spec channel, size_t *base_size, 638 struct sensor_chan_spec *const channels; [all …]
|
| /Zephyr-latest/drivers/sensor/ |
| D | default_rtio_sensor.c | 22 BUILD_ASSERT((sizeof(struct sensor_data_generic_header) % sizeof(struct sensor_chan_spec)) == 0); 52 static inline int compute_num_samples(const struct sensor_chan_spec *const channels, in compute_num_samples() 75 (num_output_samples * sizeof(struct sensor_chan_spec)); in compute_header_size() 99 struct sensor_chan_spec chan_spec, int num_channels) in check_header_contains_channel() 120 const struct sensor_chan_spec *const channels = cfg->channels; in sensor_submit_fallback_sync() 171 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() 175 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() 179 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() 184 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() 325 static int get_frame_count(const uint8_t *buffer, struct sensor_chan_spec channel, in get_frame_count() [all …]
|
| /Zephyr-latest/samples/sensor/bme280/src/ |
| D | main.c | 79 (struct sensor_chan_spec) {SENSOR_CHAN_AMBIENT_TEMP, 0}, in main() 86 (struct sensor_chan_spec) {SENSOR_CHAN_PRESS, 0}, in main() 93 (struct sensor_chan_spec) {SENSOR_CHAN_HUMIDITY, 0}, in main()
|
| /Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
| D | akm09918c_decoder.c | 11 struct sensor_chan_spec 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() 53 static int akm09918c_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in akm09918c_decoder_decode()
|
| /Zephyr-latest/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() 41 static int bme280_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, 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()
|
| /Zephyr-latest/samples/sensor/stream_fifo/src/ |
| D | main.c | 45 struct sensor_chan_spec accel_chan = { SENSOR_CHAN_ACCEL_XYZ, 0 }; 46 struct sensor_chan_spec gyro_chan = { SENSOR_CHAN_GYRO_XYZ, 0 }; 47 struct sensor_chan_spec temp_chan = { SENSOR_CHAN_DIE_TEMP, 0 }; 48 struct sensor_chan_spec rot_vector_chan = { SENSOR_CHAN_GAME_ROTATION_VECTOR, 0 }; 49 struct sensor_chan_spec gravity_chan = { SENSOR_CHAN_GRAVITY_VECTOR, 0 }; 50 struct sensor_chan_spec gbias_chan = { SENSOR_CHAN_GBIAS_XYZ, 0 };
|
| /Zephyr-latest/drivers/sensor/melexis/mlx90394/ |
| D | mlx90394_decoder.c | 11 static int mlx90394_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec channel, in mlx90394_decoder_get_frame_count() 22 static int mlx90394_decoder_get_size_info(struct sensor_chan_spec channel, size_t *base_size, in mlx90394_decoder_get_size_info() 72 static int mlx90394_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec channel, in mlx90394_decoder_decode()
|
| /Zephyr-latest/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() 172 static int adxl345_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_get_frame_count() 222 struct sensor_chan_spec chan_spec, uint32_t *fit, in adxl345_decode_sample() 254 static int adxl345_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_decode() 284 static int adxl345_get_size_info(struct sensor_chan_spec channel, size_t *base_size, in adxl345_get_size_info()
|
| /Zephyr-latest/drivers/sensor/maxim/ds3231/ |
| D | ds3231.c | 116 const struct sensor_chan_spec *const channels = cfg->channels; in sensor_ds3231_submit_sync() 166 struct sensor_chan_spec chan_spec, 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() 203 static int sensor_ds3231_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in sensor_ds3231_decoder_decode()
|
| /Zephyr-latest/drivers/sensor/pixart/paa3905/ |
| D | paa3905_decoder.c | 81 struct sensor_chan_spec chan_spec, 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() 130 struct sensor_chan_spec chan_spec, in paa3905_decoder_decode() 228 const struct sensor_chan_spec *const channels, in paa3905_encode()
|
| D | paa3905_decoder.h | 16 const struct sensor_chan_spec *const channels,
|
| /Zephyr-latest/drivers/sensor/tdk/icm45686/ |
| D | icm45686_decoder.h | 17 const struct sensor_chan_spec *const channels,
|
| D | icm45686_decoder.c | 193 const struct sensor_chan_spec *const channels, in icm45686_encode() 222 struct sensor_chan_spec chan_spec, 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() 299 struct sensor_chan_spec chan_spec, in icm45686_one_shot_decode() 464 struct sensor_chan_spec chan_spec, in icm45686_fifo_decode() 544 struct sensor_chan_spec chan_spec, in icm45686_decoder_decode()
|
| /Zephyr-latest/doc/hardware/peripherals/sensor/ |
| D | channels.rst | 16 A channel is specified in Zephyr using a :c:struct:`sensor_chan_spec` which is a 19 historical since the introduction of :c:struct:`sensor_chan_spec` for Zephyr 3.7.
|
| /Zephyr-latest/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() 48 static int mmc56x3_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, 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()
|
| /Zephyr-latest/samples/sensor/dht_polling/src/ |
| D | main.c | 77 (struct sensor_chan_spec) {SENSOR_CHAN_AMBIENT_TEMP, 0}, in main() 84 (struct sensor_chan_spec) {SENSOR_CHAN_HUMIDITY, 0}, in main()
|
| /Zephyr-latest/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() 149 static int adxl372_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decoder_get_frame_count() 222 struct sensor_chan_spec chan_spec, uint32_t *fit, in adxl372_decode_sample() 255 static int adxl372_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decoder_decode()
|
| /Zephyr-latest/drivers/sensor/tdk/icm42688/ |
| D | icm42688_decoder.h | 39 int icm42688_encode(const struct device *dev, const struct sensor_chan_spec *const channels,
|
| /Zephyr-latest/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() 220 struct sensor_chan_spec chan_spec, 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() 321 static int adxl362_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl362_decoder_decode()
|
| /Zephyr-latest/tests/drivers/build_all/sensor/src/ |
| D | generic_test.c | 33 static struct sensor_chan_spec iodev_all_channels[SENSOR_CHAN_ALL]; 114 struct sensor_chan_spec ch_spec = {.chan_type = ch, .chan_idx = 0}; in run_generic_test() 160 struct sensor_chan_spec ch_spec = iodev_all_channels[i]; in run_generic_test()
|
| /Zephyr-latest/drivers/sensor/bosch/bma4xx/ |
| D | bma4xx.c | 349 const struct sensor_chan_spec *const channels = cfg->channels; in bma4xx_submit_one_shot() 470 static int bma4xx_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec ch, in bma4xx_decoder_get_frame_count() 501 static int bma4xx_decoder_get_size_info(struct sensor_chan_spec ch, size_t *base_size, in bma4xx_decoder_get_size_info() 521 static int bma4xx_get_shift(struct sensor_chan_spec ch, uint8_t accel_fs, int8_t *shift) in bma4xx_get_shift() 596 static int bma4xx_one_shot_decode(const uint8_t *buffer, struct sensor_chan_spec ch, 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() 663 static int bma4xx_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec ch, in bma4xx_decoder_decode()
|
| /Zephyr-latest/drivers/sensor/amd_sb_tsi/ |
| D | sb_tsi_emul.c | 102 static int sb_tsi_emul_set_channel(const struct emul *target, struct sensor_chan_spec ch, in sb_tsi_emul_set_channel() 124 static int sb_tsi_emul_get_sample_range(const struct emul *target, struct sensor_chan_spec ch, in sb_tsi_emul_get_sample_range()
|
| /Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
| D | lsm6dsv16x_decoder.h | 50 int lsm6dsv16x_encode(const struct device *dev, const struct sensor_chan_spec *const channels,
|
| /Zephyr-latest/drivers/sensor/adi/adxl367/ |
| D | adxl367_decoder.c | 165 uint8_t sample_size, struct sensor_chan_spec chan_spec, in adxl367_get_accel() 253 uint8_t packet_size, struct sensor_chan_spec chan_spec, uint8_t packet_alignment, 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() 503 static int adxl367_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl367_decode_stream() 606 struct sensor_chan_spec chan_spec, in adxl367_decoder_get_frame_count() 686 struct sensor_chan_spec chan_spec, uint32_t *fit, uint16_t max_count, void *data_out) in adxl367_decode_sample() 721 static int adxl367_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl367_decoder_decode()
|