Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
emul_sensor.h File Reference

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.