Loading...
Searching...
No Matches
time_config.c File Reference

What a time store reconfigure runs, and the check for whether two sets of its rules run the same tickers. More...

#include "clock/time_config.h"
#include <stdint.h>
#include "io/store_live.h"

Macros

#define TICKER_MINUTE   0x1
 The minute tick.
#define TICKER_HOUR   0x2
 The hour tick, run only with the minute tick off.
#define TICKER_BEATS   0x4
 The .beats timer.

Functions

static uint8_t tickers (TimeConfig cfg)
 The tickers a set of rules runs, one bit each, in the same order the store starts them.
bool time_config_same_tickers (TimeConfig a, TimeConfig b)
 Whether two sets of rules run the same tickers.
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 frozen.
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.

Detailed Description

What a time store reconfigure runs, and the check for whether two sets of its rules run the same tickers.

Function Documentation

◆ tickers()

uint8_t tickers ( TimeConfig cfg)
static

The tickers a set of rules runs, one bit each, in the same order the store starts them.

Parameters
cfgThe rules.
Returns
The tickers, or 0 when none runs.