WLE5CC_NODE_STS/STS/RC/sts_remote_control.h

38 lines
1.4 KiB
C

/**
******************************************************************************
* @file sts_remote_control.h *
* @author Yunhorn (r) Technology Limited Application Team *
* @brief Yunhorn (r) SmarToilets (r) HMAC-SHA1 Process file. *
******************************************************************************
* @attention
*
* Copyright (c) 2023 Yunhorn Technology Limited.
* Copyright (c) 2023 Shenzhen Yunhorn Technology Co., Ltd.
* All rights reserved.
******************************************************************************
*/
#include "main.h"
#include "yunhorn_sts_prd_conf.h"
#include "yunhorn_sts_sensors.h"
typedef struct service_period_per_day
{
uint8_t enable_mask; // enable this time slot or not day of week,
// 0x1f= 0b0001 1111 ---> day1 to day5 of week
// 0x60= 0b0110 0000 ---> day6 5o day 7 of week
uint8_t start_hour; // start hour 00--23 in 24hour
uint8_t start_minute; // start minute 00--59
uint8_t end_hour; // end hour 00-23 in 24 hour
uint8_t end_minute; // end minute 00--60
} service_period_t;
#define STS_RF_PROJECTOR_PENDING_SEND 1U
#define STS_RF_PROJECTOR_POWER_OFF 2
#define STS_RF_SHOW_PIC_DARK 0
#define STS_RF_SHOW_PIC_WET_FLOOR 4U
#define STS_RF_SHOW_PIC_WELCOME 5
#define STS_RF_PROJECTOR_KEEP_STATE 0
/* end of sts_remote_control.h*/