Home
last modified time | relevance | path

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

12

/Zephyr-latest/include/zephyr/drivers/
Demul_sensor.h30 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()
Dsensor.h440 struct sensor_chan_spec { struct
447 BUILD_ASSERT(sizeof(struct sensor_chan_spec) <= sizeof(uintptr_t),
459 static inline bool sensor_chan_spec_eq(struct sensor_chan_spec chan_spec0, in sensor_chan_spec_eq()
460 struct sensor_chan_spec chan_spec1) in sensor_chan_spec_eq()
482 int (*get_frame_count)(const uint8_t *buffer, struct sensor_chan_spec channel,
497 int (*get_size_info)(struct sensor_chan_spec channel, size_t *base_size,
525 int (*decode)(const uint8_t *buffer, struct sensor_chan_spec channel, uint32_t *fit,
565 struct sensor_chan_spec channel;
593 int sensor_natively_supported_channel_size_info(struct sensor_chan_spec channel, size_t *base_size,
635 struct sensor_chan_spec *const channels;
[all …]
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c21 BUILD_ASSERT((sizeof(struct sensor_data_generic_header) % sizeof(struct sensor_chan_spec)) == 0);
51 static inline int compute_num_samples(const struct sensor_chan_spec *const channels, in compute_num_samples()
74 (num_output_samples * sizeof(struct sensor_chan_spec)); in compute_header_size()
98 struct sensor_chan_spec chan_spec, int num_channels) in check_header_contains_channel()
119 const struct sensor_chan_spec *const channels = cfg->channels; in sensor_submit_fallback_sync()
160 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync()
164 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync()
168 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync()
173 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync()
314 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/
Dmain.c79 (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/
Dakm09918c_decoder.c11 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()
Dakm09918c_emul.c136 static int akm09918c_emul_backend_set_channel(const struct emul *target, struct sensor_chan_spec ch, in akm09918c_emul_backend_set_channel()
181 struct sensor_chan_spec ch, q31_t *lower, in akm09918c_emul_backend_get_sample_range()
/Zephyr-latest/drivers/sensor/bosch/bme280/
Dbme280_decoder.c9 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()
Dbme280_async.c24 const struct sensor_chan_spec *const channels = cfg->channels; in bme280_submit_sync()
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dchannels.rst16 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/adi/adxl345/
Dadxl345_decoder.c88 static int adxl345_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decode_stream()
158 static int adxl345_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_get_frame_count()
208 struct sensor_chan_spec chan_spec, uint32_t *fit, in adxl345_decode_sample()
232 static int adxl345_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decoder_decode()
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3_decoder.c9 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/
Dmain.c77 (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/
Dadxl372_decoder.c35 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/bosch/bma4xx/
Dbma4xx.c348 const struct sensor_chan_spec *const channels = cfg->channels; in bma4xx_submit_one_shot()
461 static int bma4xx_decoder_get_frame_count(const uint8_t *buffer, struct sensor_chan_spec ch, in bma4xx_decoder_get_frame_count()
492 static int bma4xx_decoder_get_size_info(struct sensor_chan_spec ch, size_t *base_size, in bma4xx_decoder_get_size_info()
512 static int bma4xx_get_shift(struct sensor_chan_spec ch, uint8_t accel_fs, int8_t *shift) in bma4xx_get_shift()
587 static int bma4xx_one_shot_decode(const uint8_t *buffer, struct sensor_chan_spec ch, 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()
654 static int bma4xx_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec ch, in bma4xx_decoder_decode()
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362_decoder.c67 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/drivers/sensor/tdk/icm42688/
Dicm42688_decoder.h39 int icm42688_encode(const struct device *dev, const struct sensor_chan_spec *const channels,
Dicm42688_decoder.c181 int icm42688_encode(const struct device *dev, const struct sensor_chan_spec *const channels, in icm42688_encode()
348 static int icm42688_fifo_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_fifo_decode()
453 static int icm42688_one_shot_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_one_shot_decode()
571 static int icm42688_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in icm42688_decoder_decode()
584 struct sensor_chan_spec chan_spec, in icm42688_decoder_get_frame_count()
644 static int icm42688_decoder_get_size_info(struct sensor_chan_spec chan_spec, size_t *base_size, in icm42688_decoder_get_size_info()
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi_emul.c102 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/
Dlsm6dsv16x_decoder.h50 int lsm6dsv16x_encode(const struct device *dev, const struct sensor_chan_spec *const channels,
/Zephyr-latest/drivers/sensor/adi/adxl367/
Dadxl367_decoder.c165 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()
/Zephyr-latest/tests/drivers/build_all/sensor/src/
Dgeneric_test.c33 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/f75303/
Df75303_emul.c106 static int f75303_emul_set_channel(const struct emul *target, struct sensor_chan_spec ch, in f75303_emul_set_channel()
142 static int f75303_emul_get_sample_range(const struct emul *target, struct sensor_chan_spec ch, in f75303_emul_get_sample_range()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Demul_bmi160.c287 static int bmi160_emul_backend_set_channel(const struct emul *target, struct sensor_chan_spec ch, in bmi160_emul_backend_set_channel()
375 struct sensor_chan_spec ch, q31_t *lower, in bmi160_emul_backend_get_sample_range()
448 static int bmi160_emul_backend_set_offset(const struct emul *target, struct sensor_chan_spec ch, in bmi160_emul_backend_set_offset()
518 static int bmi160_emul_backend_set_attribute(const struct emul *target, struct sensor_chan_spec ch, in bmi160_emul_backend_set_attribute()
532 struct sensor_chan_spec ch, in bmi160_emul_backend_get_attribute_metadata()
/Zephyr-latest/samples/sensor/accel_polling/src/
Dmain.c95 (struct sensor_chan_spec) {SENSOR_CHAN_ACCEL_XYZ, 0}, &frame_count); in print_accels_stream()
109 decoder->decode(buf, (struct sensor_chan_spec) {SENSOR_CHAN_ACCEL_XYZ, 0}, in print_accels_stream()
/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()

12