summaryrefslogtreecommitdiff
path: root/zephyr/include
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-09-18 21:58:27 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-21 02:41:41 +0000
commit26e3f0f8596300e1b7f64f426c0469f9bfee669f (patch)
tree39b2dba11ab9d9b73a73a66f07cd307c452e230c /zephyr/include
parentdf6a8a118ba190cecd14d7e8b56e1945d739f390 (diff)
downloadchrome-ec-26e3f0f8596300e1b7f64f426c0469f9bfee669f.tar.gz
zephyr: test: lis2dw12 fail setting bdu on init
BRANCH=none BUG=b:200046770 TEST=zmake configure --test zephyr/projects/drivers Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I5e109001cf19010c2a4edc68be9b043a14070480 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3170539 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Yuval Peress <peress@google.com> Tested-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'zephyr/include')
-rw-r--r--zephyr/include/emul/emul_lis2dw12.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/include/emul/emul_lis2dw12.h b/zephyr/include/emul/emul_lis2dw12.h
index f2c5a5cdfc..b136e24f0a 100644
--- a/zephyr/include/emul/emul_lis2dw12.h
+++ b/zephyr/include/emul/emul_lis2dw12.h
@@ -35,4 +35,14 @@ void lis2dw12_emul_reset(const struct emul *emul);
*/
void lis2dw12_emul_set_who_am_i(const struct emul *emul, uint8_t who_am_i);
+/**
+ * @brief Check the number of times the chip was soft reset.
+ *
+ * This value is reset by a call to lis2dw12_emul_reset().
+ *
+ * @param emul The emulator to query
+ * @return The number of times that the chip was reset.
+ */
+uint32_t lis2dw12_emul_get_soft_reset_count(const struct emul *emul);
+
#endif /* ZEPHYR_INCLUDE_EMUL_EMUL_LIS2DW12_H_ */