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
25
32void generic_sim_reset(const struct device *dev, bool reset_rc);
33
42void generic_sim_func_rc(const struct device *dev, int resume_rc, int suspend_rc, int fetch_rc);
43
54int generic_sim_channel_set(const struct device *dev, enum sensor_channel chan,
55 struct sensor_value val);
56
60
61#ifdef __cplusplus
62}
63#endif
64
65#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.