Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.

Detailed Description

Generic sensor emulator for testing.

Function Documentation

◆ generic_emul_func_rc()

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.

Parameters
targetGeneric sensor emulator to configure
resume_rcReturn code for PM_DEVICE_ACTION_RESUME
suspend_rcReturn code for PM_DEVICE_ACTION_SUSPEND
fetch_rcReturn code for sensor_sample_fetch

◆ generic_emul_reset()

void generic_emul_reset ( const struct emul * target,
bool reset_rc )

#include <generic_emul.h>

Reset all channels back to unconfigured.

Parameters
targetGeneric sensor emulator to reset
reset_rcReset the return codes