Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
generic_emul.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Embeint Inc
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_GENERIC_EMUL_H_
14#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_GENERIC_EMUL_H_
15
16#include <zephyr/device.h>
17#include <zephyr/drivers/emul.h>
18
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
36void generic_emul_reset(const struct emul *target, bool reset_rc);
37
46void generic_emul_func_rc(const struct emul *target, int resume_rc, int suspend_rc, int fetch_rc);
47
48#ifdef __cplusplus
49}
50#endif
51
55
56#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_GENERIC_EMUL_H_ */
APIs and macros for the Zephyr device model.
Public APIs for the device emulation framework.
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.
An emulator instance - represents the target emulated device/peripheral that is interacted with throu...
Definition emul.h:88