18 lines
646 B
C
18 lines
646 B
C
#ifndef __APP_NO_DISTURB_H__
|
|
#define __APP_NO_DISTURB_H__
|
|
|
|
#include <stdint.h>
|
|
#include "system/sys_time.h"
|
|
|
|
#define APP_NO_DISTURB_CFG_LEN 13
|
|
|
|
/* DP7: bytes 2..8 are Monday..Sunday, byte 1 is reserved. */
|
|
void app_no_disturb_configure(uint8_t enable, uint8_t weekdays_mask,
|
|
uint16_t start_minute, uint16_t end_minute);
|
|
uint8_t app_no_disturb_storage_load(uint8_t cfg[APP_NO_DISTURB_CFG_LEN]);
|
|
uint8_t app_no_disturb_storage_save(const uint8_t cfg[APP_NO_DISTURB_CFG_LEN]);
|
|
uint8_t app_no_disturb_is_active(void);
|
|
uint8_t app_no_disturb_is_active_at(const struct sys_time *time);
|
|
|
|
#endif /* __APP_NO_DISTURB_H__ */
|