summaryrefslogtreecommitdiff
path: root/zephyr/include/emul/emul_lis2dw12.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/include/emul/emul_lis2dw12.h')
-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_ */