BSB Developer Docs
Loading...
Searching...
No Matches
busy_timer_common.h File Reference

Common BusyTimer types & macros. More...

#include <stdint.h>
#include <stdbool.h>
#include <time.h>
#include "time_macros.h"

Go to the source code of this file.

Data Structures

struct  BusyTimerMetadata
 
struct  BusyTimerSimpleConfig
 
struct  BusyTimerIntervalConfig
 
struct  BusyTimerIntervalState
 
struct  BusyTimerConfig
 

Macros

#define BUSY_TIMER_TIME_MIN_MN   (5)
 
#define BUSY_TIMER_TIME_MAX_MN   H_TO_M(24)
 
#define BUSY_TIMER_TIME_INCREMENT_MN   (5)
 
#define BUSY_TIMER_WORK_TIME_MIN_MN   (5)
 
#define BUSY_TIMER_WORK_TIME_MAX_MN   H_TO_M(8)
 
#define BUSY_TIMER_REST_TIME_MIN_MN   (5)
 
#define BUSY_TIMER_REST_TIME_MAX_MN   H_TO_M(8)
 
#define BUSY_TIMER_CYCLE_COUNT_MIN   (2)
 
#define BUSY_TIMER_CYCLE_COUNT_MAX   (35)
 
#define BUSY_TIMER_CYCLE_INCREMENT   (1)
 
#define BUSY_TIMER_TIME_DEFAULT_MN   (20)
 
#define BUSY_TIMER_WORK_TIME_DEFAULT_MN   (20)
 
#define BUSY_TIMER_REST_TIME_DEFAULT_MN   (5)
 
#define BUSY_TIMER_CYCLE_COUNT_DEFAULT   (3)
 
#define BUSY_TIMER_ENABLE_AUTOSTART_DEFAULT   (false)
 
#define BUSY_TIMER_ENABLE_DEMO_MODE_DEFAULT   (false)
 
#define BUSY_TIMER_CARD_ID_LEN   (36)
 
#define BUSY_TIMER_TITLE_LEN   (32 * 4)
 

Enumerations

enum  BusyTimerMode { BusyTimerModeInfinite , BusyTimerModeSimple , BusyTimerModeInterval , BusyTimerModeMax }
 

Detailed Description

Common BusyTimer types & macros.