18 lines
641 B
C
18 lines
641 B
C
#ifndef __APP_NO_DISTURB_H__
|
|
#define __APP_NO_DISTURB_H__
|
|
|
|
#include <stdint.h>
|
|
#include "system/sys_time.h"
|
|
|
|
#define APP_NO_DISTURB_DATA_LEN 13U
|
|
|
|
/* weekdays_mask bit 0..6 means Monday..Sunday. */
|
|
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_is_active(void);
|
|
uint8_t app_no_disturb_is_active_at(const struct sys_time *time);
|
|
uint8_t app_no_disturb_storage_load(uint8_t data[APP_NO_DISTURB_DATA_LEN]);
|
|
uint8_t app_no_disturb_storage_save(const uint8_t data[APP_NO_DISTURB_DATA_LEN]);
|
|
|
|
#endif /* __APP_NO_DISTURB_H__ */
|