diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2021-10-18 15:37:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 15:37:41 -0400 |
commit | 6210e1c233a3ee66274389e85889b0681102378d (patch) | |
tree | ec94a012f533e8f7017223648321c46c3c9796f4 /movement/watch_faces/complications/pulsometer_face.h | |
parent | 84c0fbfa2a68dc3c29b989947567d111e70a037b (diff) | |
parent | 32710098577c982123d9391132165c0b02a57482 (diff) | |
download | Sensor-Watch-6210e1c233a3ee66274389e85889b0681102378d.tar.gz Sensor-Watch-6210e1c233a3ee66274389e85889b0681102378d.tar.bz2 Sensor-Watch-6210e1c233a3ee66274389e85889b0681102378d.zip |
Merge pull request #17 from joeycastillo/wip-launcher
Resolves #13
Diffstat (limited to 'movement/watch_faces/complications/pulsometer_face.h')
-rw-r--r-- | movement/watch_faces/complications/pulsometer_face.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/movement/watch_faces/complications/pulsometer_face.h b/movement/watch_faces/complications/pulsometer_face.h new file mode 100644 index 00000000..cdb5b977 --- /dev/null +++ b/movement/watch_faces/complications/pulsometer_face.h @@ -0,0 +1,25 @@ +#ifndef PULSOMETER_FACE_H_ +#define PULSOMETER_FACE_H_ + +#include "movement.h" + +typedef struct { + bool measuring; + int16_t pulse; + int16_t ticks; +} pulsometer_state_t; + +void pulsometer_face_setup(movement_settings_t *settings, void ** context_ptr); +void pulsometer_face_activate(movement_settings_t *settings, void *context); +bool pulsometer_face_loop(movement_event_t event, movement_settings_t *settings, void *context); +void pulsometer_face_resign(movement_settings_t *settings, void *context); + +static const watch_face_t pulsometer_face = { + pulsometer_face_setup, + pulsometer_face_activate, + pulsometer_face_loop, + pulsometer_face_resign, + NULL +}; + +#endif // PULSOMETER_FACE_H_
\ No newline at end of file |