Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor_attribute_types.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
static bool | emul_sensor_backend_is_supported (const struct emul *target) |
Check if a given sensor emulator supports the backend API. | |
static int | emul_sensor_backend_set_channel (const struct emul *target, struct sensor_chan_spec ch, const q31_t *value, int8_t shift) |
Set an expected value for a given channel on a given sensor emulator. | |
static int | emul_sensor_backend_get_sample_range (const struct emul *target, struct sensor_chan_spec ch, q31_t *lower, q31_t *upper, q31_t *epsilon, int8_t *shift) |
Query an emulator for a channel's supported sample value range and tolerance. | |
static int | emul_sensor_backend_set_attribute (const struct emul *target, struct sensor_chan_spec ch, enum sensor_attribute attribute, const void *value) |
Set the emulator's attribute values. | |
static int | emul_sensor_backend_get_attribute_metadata (const struct emul *target, struct sensor_chan_spec ch, enum sensor_attribute attribute, q31_t *min, q31_t *max, q31_t *increment, int8_t *shift) |
Get metadata about an attribute. | |