summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/complications/pulseometer_face.h
diff options
context:
space:
mode:
Diffstat (limited to 'movement/watch_faces/complications/pulseometer_face.h')
-rw-r--r--movement/watch_faces/complications/pulseometer_face.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/movement/watch_faces/complications/pulseometer_face.h b/movement/watch_faces/complications/pulseometer_face.h
new file mode 100644
index 00000000..7b96259c
--- /dev/null
+++ b/movement/watch_faces/complications/pulseometer_face.h
@@ -0,0 +1,24 @@
+#ifndef PULSEOMETER_FACE_H_
+#define PULSEOMETER_FACE_H_
+
+#include "movement.h"
+
+typedef struct {
+ bool measuring;
+ int16_t pulse;
+ int16_t ticks;
+} PulsometerState;
+
+void pulseometer_face_setup(LauncherSettings *settings, void ** context_ptr);
+void pulseometer_face_activate(LauncherSettings *settings, void *context);
+bool pulseometer_face_loop(LauncherEvent event, LauncherSettings *settings, void *context);
+void pulseometer_face_resign(LauncherSettings *settings, void *context);
+
+#define pulseometer_face { \
+ pulseometer_face_setup, \
+ pulseometer_face_activate, \
+ pulseometer_face_loop, \
+ pulseometer_face_resign, \
+}
+
+#endif // PULSEOMETER_FACE_H_ \ No newline at end of file