Pebble App Framework
v7.1.1
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
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
27
typedef
enum
28
{
29
GOAL_VIBE_KIND_NONE
,
30
GOAL_VIBE_KIND_SHORT
,
31
GOAL_VIBE_KIND_LONG
,
32
GOAL_VIBE_KIND_DOUBLE
,
33
GOAL_VIBE_KIND_CUSTOM
,
34
GOAL_VIBE_KIND_LIST
,
35
}
GoalVibeKind
;
36
46
GoalVibeKind
goal_vibe_pattern_kind
(
const
char
*pick);
47
61
int
goal_vibe_pattern_parse
(
const
char
*text, uint32_t *out,
int
capacity);
62
goal_vibe_pattern_kind
GoalVibeKind goal_vibe_pattern_kind(const char *pick)
What a pick plays, read from its first character.
Definition
goal_vibe_pattern.c:12
goal_vibe_pattern_parse
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
GoalVibeKind
What a Goal Met Vibration pick plays.
Definition
goal_vibe_pattern.h:28
GOAL_VIBE_KIND_SHORT
@ GOAL_VIBE_KIND_SHORT
The watch's short pulse, from S.
Definition
goal_vibe_pattern.h:30
GOAL_VIBE_KIND_LONG
@ GOAL_VIBE_KIND_LONG
The watch's long pulse, from L.
Definition
goal_vibe_pattern.h:31
GOAL_VIBE_KIND_DOUBLE
@ GOAL_VIBE_KIND_DOUBLE
The watch's double pulse, from D.
Definition
goal_vibe_pattern.h:32
GOAL_VIBE_KIND_LIST
@ GOAL_VIBE_KIND_LIST
The pick itself, as a comma list of milliseconds.
Definition
goal_vibe_pattern.h:34
GOAL_VIBE_KIND_NONE
@ GOAL_VIBE_KIND_NONE
Nothing, the pick is empty.
Definition
goal_vibe_pattern.h:29
GOAL_VIBE_KIND_CUSTOM
@ GOAL_VIBE_KIND_CUSTOM
The wearer's own pattern, from C.
Definition
goal_vibe_pattern.h:33
src
c
core
health
goal_vibe_pattern.h
Generated by
1.18.0