diff options
author | Aaron Massey <aaronmassey@google.com> | 2021-09-23 12:25:12 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-28 19:37:22 +0000 |
commit | a4a2e61e61965d3c5f34fd8a3b03f696aa2582da (patch) | |
tree | 015414734a973aacc020c67b73f43faaadbe18bb /zephyr/include/emul | |
parent | 6faafa7d2ebeec9df5f7eb0375da57a932155347 (diff) | |
download | chrome-ec-a4a2e61e61965d3c5f34fd8a3b03f696aa2582da.tar.gz |
zephyr: emul: ln9310
Add INT1_MSK registor to ln9310 emulator.
BRANCH=none
BUG=b:184856083
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Aaron Massey <aaronmassey@chromium.org>
Change-Id: I864d355767f0c2d091f830329e511be8d293fac4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3179310
Commit-Queue: Aaron Massey <aaronmassey@google.com>
Tested-by: Aaron Massey <aaronmassey@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'zephyr/include/emul')
-rw-r--r-- | zephyr/include/emul/emul_ln9310.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/include/emul/emul_ln9310.h b/zephyr/include/emul/emul_ln9310.h index 8c9101dfab..dfa03eaa28 100644 --- a/zephyr/include/emul/emul_ln9310.h +++ b/zephyr/include/emul/emul_ln9310.h @@ -14,6 +14,7 @@ #include <emul.h> #include "driver/ln9310.h" +#include <stdbool.h> /** * @brief Select the current emulator to use. @@ -60,4 +61,13 @@ void ln9310_emul_set_version(const struct emul *emulator, int version); */ void ln9310_emul_set_vin_gt_10v(const struct emul *emulator, bool is_gt_10v); +/** + * @brief Get whether or not the LN9310 is initialized. + * + * @param emulator The LN9310 emulator to read. + * + * @return true if the LN9310 was correctly initialized. + */ +bool ln9310_emul_is_init(const struct emul *emulator); + #endif /* ZEPHYR_INCLUDE_EMUL_EMUL_LN9310_H_ */ |