|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Generic sensor emulator for testing. More...
Files | |
| file | generic_emul.h |
| Header file for controlling generic emulated sensor test device. | |
Functions | |
| void | generic_emul_reset (const struct emul *target, bool reset_rc) |
| Reset all channels back to unconfigured. | |
| void | generic_emul_func_rc (const struct emul *target, int resume_rc, int suspend_rc, int fetch_rc) |
| Configure return value for generic sensor device. | |
Generic sensor emulator for testing.
| void generic_emul_func_rc | ( | const struct emul * | target, |
| int | resume_rc, | ||
| int | suspend_rc, | ||
| int | fetch_rc ) |
#include <generic_emul.h>
Configure return value for generic sensor device.
| target | Generic sensor emulator to configure |
| resume_rc | Return code for PM_DEVICE_ACTION_RESUME |
| suspend_rc | Return code for PM_DEVICE_ACTION_SUSPEND |
| fetch_rc | Return code for sensor_sample_fetch |
#include <generic_emul.h>
Reset all channels back to unconfigured.
| target | Generic sensor emulator to reset |
| reset_rc | Reset the return codes |