Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
generic_sim.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_DRIVERS_SENSOR_GENERIC_SIM_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_DRIVERS_SENSOR_GENERIC_SIM_H_
12
13#include <zephyr/device.h>
14#include <zephyr/drivers/sensor.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
26void generic_sim_reset(const struct device *dev, bool reset_rc);
27
36void generic_sim_func_rc(const struct device *dev, int resume_rc, int suspend_rc, int fetch_rc);
37
48int generic_sim_channel_set(const struct device *dev, enum sensor_channel chan,
49 struct sensor_value val);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* INFUSE_SDK_INCLUDE_INFUSE_DRIVERS_SENSOR_GENERIC_SIM_H_ */
int generic_sim_channel_set(const struct device *dev, enum sensor_channel chan, struct sensor_value val)
Set the value to be returned for a given channel.
void generic_sim_func_rc(const struct device *dev, int resume_rc, int suspend_rc, int fetch_rc)
Configure return value for generic sensor device.
void generic_sim_reset(const struct device *dev, bool reset_rc)
Reset all channels back to unconfigured.