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
time_config.h
Go to the documentation of this file.
1
11
#pragma once
12
#include <stdbool.h>
13
18
28
typedef
struct
29
{
35
bool
live
;
36
bool
minute_tick
;
37
bool
beats
;
38
bool
hourly
;
39
}
TimeConfig
;
40
41
// a new field changes what the tickers run, so time_config_same_tickers has to read it too.
42
// this stops the build until it does
43
_Static_assert
(
sizeof
(
TimeConfig
) == 4,
"a new TimeConfig field also goes into time_config_same_tickers"
);
44
56
bool
time_config_same_tickers
(
TimeConfig
a,
TimeConfig
b);
57
70
TimeConfig
time_config_reconfigured
(
TimeConfig
cfg,
bool
pinned);
71
84
bool
time_config_reconfigure
(
TimeConfig
*running,
TimeConfig
cfg,
bool
pinned);
85
time_config_reconfigure
bool time_config_reconfigure(TimeConfig *running, TimeConfig cfg, bool pinned)
What a reconfigure does to the rules running, in the order the time store needs.
Definition
time_config.c:60
time_config_reconfigured
TimeConfig time_config_reconfigured(TimeConfig cfg, bool pinned)
The rules a reconfigure runs, which are the face's own with live held off on a store init started fro...
Definition
time_config.c:54
time_config_same_tickers
bool time_config_same_tickers(TimeConfig a, TimeConfig b)
Whether two sets of rules run the same tickers.
Definition
time_config.c:49
TimeConfig
The rules a face hands the time store, built from its own settings so the store names no SETTING_*.
Definition
time_config.h:29
TimeConfig::minute_tick
bool minute_tick
Run the minute tick (clock date and most readouts).
Definition
time_config.h:36
TimeConfig::beats
bool beats
Also run the 86.4 second .beats timer for a live .beats readout.
Definition
time_config.h:37
TimeConfig::hourly
bool hourly
With the minute tick off, still wake at the top of each hour, such as for an hourly buzz.
Definition
time_config.h:38
TimeConfig::live
bool live
Definition
time_config.h:35
src
c
core
clock
time_config.h
Generated by
1.18.0