Loading...
Searching...
No Matches
goal_vibe_pattern.h
Go to the documentation of this file.
1
12#pragma once
13#include <stdint.h>
14
19
20#define GOAL_VIBE_PATTERN_MAX 40
21#define GOAL_VIBE_PATTERN_MIN_MS 10
22#define GOAL_VIBE_PATTERN_MAX_MS 10000
23
36
46GoalVibeKind goal_vibe_pattern_kind(const char *pick);
47
61int goal_vibe_pattern_parse(const char *text, uint32_t *out, int capacity);
62
GoalVibeKind goal_vibe_pattern_kind(const char *pick)
What a pick plays, read from its first character.
Definition goal_vibe_pattern.c:12
int goal_vibe_pattern_parse(const char *text, uint32_t *out, int capacity)
Reads a list of milliseconds such as "100,80,300" into the caller's buffer.
Definition goal_vibe_pattern.c:51
GoalVibeKind
What a Goal Met Vibration pick plays.
Definition goal_vibe_pattern.h:28
@ GOAL_VIBE_KIND_SHORT
The watch's short pulse, from S.
Definition goal_vibe_pattern.h:30
@ GOAL_VIBE_KIND_LONG
The watch's long pulse, from L.
Definition goal_vibe_pattern.h:31
@ GOAL_VIBE_KIND_DOUBLE
The watch's double pulse, from D.
Definition goal_vibe_pattern.h:32
@ GOAL_VIBE_KIND_LIST
The pick itself, as a comma list of milliseconds.
Definition goal_vibe_pattern.h:34
@ GOAL_VIBE_KIND_NONE
Nothing, the pick is empty.
Definition goal_vibe_pattern.h:29
@ GOAL_VIBE_KIND_CUSTOM
The wearer's own pattern, from C.
Definition goal_vibe_pattern.h:33