blob: 52bccf24dce2e7d41ae06b1525b0e8535cd5615c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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(movement_settings_t *settings, void ** context_ptr);
void pulseometer_face_activate(movement_settings_t *settings, void *context);
bool pulseometer_face_loop(movement_event_t event, movement_settings_t *settings, void *context);
void pulseometer_face_resign(movement_settings_t *settings, void *context);
static const watch_face_t pulseometer_face = {
pulseometer_face_setup,
pulseometer_face_activate,
pulseometer_face_loop,
pulseometer_face_resign,
NULL
};
#endif // PULSEOMETER_FACE_H_
|