5#include <cjson/cJSON.h>
9#define KEY_COMMON_TIMER_SETTINGS_TYPE "type"
11#define KEY_COMMON_SIMPLE_SETTINGS_TOTAL_TIME "total_time_ms"
13#define KEY_COMMON_INTERVAL_SETTINGS_WORK "interval_work_ms"
14#define KEY_COMMON_INTERVAL_SETTINGS_REST "interval_rest_ms"
15#define KEY_COMMON_INTERVAL_SETTINGS_CYCLES "interval_work_cycles_count"
16#define KEY_COMMON_INTERVAL_SETTINGS_AUTOSTART "is_autostart_enabled"
18#define KEY_COMMON_BUSY_BAR_SETTINGS "busy_bar_settings"
19#define KEY_COMMON_BUSY_BAR_SETTINGS_THEME "theme"
20#define KEY_COMMON_BUSY_BAR_SETTINGS_SHOW_WORK_PHASE_ONLY "show_work_phase_only"
21#define KEY_COMMON_BUSY_BAR_SETTINGS_TRIGGER_SMART_HOME "trigger_smart_home"
25void busy_timer_common_serialize_app_config(cJSON* json,
const BusyAppConfig* app_config);
27void busy_timer_common_serialize_infinite_config(cJSON* json);
29void busy_timer_common_serialize_simple_config(
33void busy_timer_common_serialize_interval_config(
39bool busy_timer_common_deserialize_app_config(
const cJSON* json,
BusyAppConfig* app_config);
41bool busy_timer_common_deserialize_timer_mode(
const cJSON* json, BusyTimerMode* timer_mode);
43bool busy_timer_common_deserialize_simple_config(
47bool busy_timer_common_deserialize_interval_config(
53bool busy_timer_common_is_valid_card_id(
const char* card_id);
Common BUSY application defines and variables.
Common BusyTimer types & macros.
BusyApp configuration structure.
Definition busy_common.h:22
Definition busy_timer_common.h:59
Definition busy_timer_common.h:55