Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gpio_ite_it8300_emul.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 ITE Corporation. All Rights Reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_GPIO_GPIO_ITE_IT8300_EMUL_H_
14#define ZEPHYR_INCLUDE_DRIVERS_GPIO_GPIO_ITE_IT8300_EMUL_H_
15
16#include <stdint.h>
17
18#include <zephyr/drivers/emul.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30
32void it8300_emul_reset(const struct emul *target);
33
43int it8300_emul_set_reg(const struct emul *target, uint8_t reg, uint8_t value);
44
51int it8300_emul_get_reg(const struct emul *target, uint8_t reg, uint8_t *value);
52
66int it8300_emul_set_input(const struct emul *target, uint8_t group, uint8_t value);
67
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* ZEPHYR_INCLUDE_DRIVERS_GPIO_GPIO_ITE_IT8300_EMUL_H_ */
Public APIs for the device emulation framework.
int it8300_emul_set_input(const struct emul *target, uint8_t group, uint8_t value)
Set the sampled input value for one GPIO group.
void it8300_emul_reset(const struct emul *target)
Reset all emulated IT8300 registers.
int it8300_emul_get_reg(const struct emul *target, uint8_t reg, uint8_t *value)
Read an emulated IT8300 register.
int it8300_emul_set_reg(const struct emul *target, uint8_t reg, uint8_t value)
Set an emulated IT8300 register.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
An emulator instance - represents the target emulated device/peripheral that is interacted with throu...
Definition emul.h:88
Group structure.
Definition grp.h:18