diff options
Diffstat (limited to 'zephyr/include')
-rw-r--r-- | zephyr/include/emul/emul_icm42607.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/zephyr/include/emul/emul_icm42607.h b/zephyr/include/emul/emul_icm42607.h new file mode 100644 index 0000000000..b1c331a58c --- /dev/null +++ b/zephyr/include/emul/emul_icm42607.h @@ -0,0 +1,27 @@ +/* Copyright 2023 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef EMUL_ICM42607_H +#define EMUL_ICM42607_H + +#include "emul/emul_common_i2c.h" + +#include <stdint.h> + +#include <zephyr/drivers/emul.h> + +void icm42607_emul_reset(const struct emul *emul); + +int icm42607_emul_peek_reg(const struct emul *emul, int reg); + +int icm42607_emul_write_reg(const struct emul *emul, int reg, int val); + +void icm42607_emul_push_fifo(const struct emul *emul, const uint8_t *src, + int size); + +struct i2c_common_emul_data * +emul_icm42607_get_i2c_common_data(const struct emul *emul); + +#endif |