#ifndef _BLV_NOR_DEV_VIRTUALTIME_
#define _BLV_NOR_DEV_VIRTUALTIME_

#include "includes.h"
#include "stdint.h"
#include "BLV_All_Dev_Init.h"

#define TIME_NULL     0x00          //未知
#define TIME_ALLDAY   0x01          //全天
#define TIME_DAY      0x02          //白天
#define TIME_NIGHT    0x03          //黑夜


#define DEFAULT_DSTART       6      //默认白天开始时间
#define DEFAULT_DEND         18     //默认白天结束时间



typedef struct
{
	uint8_t DayStart;         //白天开始时间    24小时制
	uint8_t DayEnd;           //白天结束时间    24小时制

}__attribute__ ((__packed__))VIRTUALTIME_STRUCT;	




void BLV_Nor_Dev_VirtualTime_Init(uint8_t devaddr);
void BLV_Nor_Dev_VirtualTime_Logic_Init(LOGICFILE_DEVICE_INFO *dev_info,uint8_t *data,uint16_t data_len);

void BLV_Nor_Dev_VirtualTime_Default_Init(void);

#endif












