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