1 /*
2  * Copyright (c) 2023 Google LLC
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #ifndef DRIVERS_SENSOR_ICM42688_ICM42688_EMUL_H
7 #define DRIVERS_SENSOR_ICM42688_ICM42688_EMUL_H
8 
9 #include <zephyr/drivers/emul.h>
10 
11 /**
12  * @brief Set one or more register values
13  *
14  * @param target The target emulator to modify
15  * @param reg_addr The starting address of the register to modify
16  * @param in One or more bytes to write to the registers
17  * @param count The number of bytes to write
18  */
19 void icm42688_emul_set_reg(const struct emul *target, uint8_t reg_addr, const uint8_t *in,
20 			   size_t count);
21 
22 /**
23  * @brief Get the values of one or more register values
24  *
25  * @param target The target emulator to read
26  * @param reg_addr The starting address of the register to read
27  * @param out Buffer to write the register values into
28  * @param count The number of bytes to read
29  */
30 void icm42688_emul_get_reg(const struct emul *target, uint8_t reg_addr, uint8_t *out, size_t count);
31 
32 #endif /* DRIVERS_SENSOR_ICM42688_ICM42688_EMUL_H */
33