summaryrefslogtreecommitdiff
path: root/zephyr/include/emul/emul_icm42607.h
blob: b1c331a58c95df6bddec23cbdeef58e4791e3ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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