blob: 2838687731677d336a944563fe2f0662313e9ff1 (
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
28
29
30
31
32
33
34
35
36
|
/* 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_ISL9241_H
#define EMUL_ISL9241_H
#include <zephyr/drivers/emul.h>
/**
* Peek an internal register value
*
* @param emul - ISL9241 emulator data
* @param reg - which register to peek
* @return register contents
*/
uint16_t isl9241_emul_peek(const struct emul *emul, int reg);
/**
* Fake a Vbus voltage presence
*
* @param emul - ISL9241 emulator data
* @param vbus_mv - desired Vbus mV to set
*/
void isl9241_emul_set_vbus(const struct emul *emul, int vbus_mv);
/**
* Fake a specific Vsys voltage
*
* @param emul - ISL9241 emulator data
* @param vsys_mv - desired Vsys mV to set
*/
void isl9241_emul_set_vsys(const struct emul *emul, int vsys_mv);
#endif
|