#ifndef __PROJECT_CONFIG_INCLUDED__
#define __PROJECT_CONFIG_INCLUDED__
/*************************************************************************
	> File Name: project_config
	> Author: amir
	> Created Time: 2021-11-18
 ************************************************************************/

#include <stdint.h>

#define MAX_VFRAME_SIZE ((uint32_t)(524288))//512*1024
#define MAX_AFRAME_SIZE ((uint32_t)(65536))//64*1024

/*******************************************************************************************/

typedef enum{
	EVENT_HANDSHAKE               = 0,  	//0 host->slave->host, host send msg to salve and wait for slave's reply(carry data maybe)
	EVENT_CMD_DATA,							//1 host->slave->host, host send msg to salve and wait for slave's reply(carry data maybe)
	EVENT_NET_DATA,							//2 host->slave->host, host send msg to salve and wait for slave's reply(carry data maybe)
	EVENT_NOTIFY_CMD_DATA,					//3 slave->host->slave, a host special task wait for slave's msg to recv data and reply ack to slave
	EVENT_NOTIFY_NET_DATA,					//4 slave->host->slave, a host special task wait for slave's msg to recv data and reply ack to slave
		
	EVENT_HAL_START               = 10,	
	EVENT_HAL_PIR,							//11
    EVENT_HAL_GSENSOR,						//12
    EVENT_HAL_TEMPSENSOR,					//13
    EVENT_HAL_LOCK,							//14
    EVENT_HAL_BATTERY,						//15
    EVENT_HAL_DAYNIGHT,						//16 IRCUT_DAY(1)|IRCUT_NIGHT(0)|IRCUT_UNKNOWN(2)
    EVENT_HAL_KEYPAD,						//17
    EVENT_HAL_PMU,							//18
    EVENT_HAL_WIFI,							//19
    EVENT_HAL_SOURNDWAVE,					//20
    EVENT_HAL_LIGHTSENSOR,					//21
	
	EVENT_PAL_START	              = 70,
	EVENT_PAL_SUSPEND,
	
	EVENT_APP_START	              = 0x1FF,
	
	EVENT_OTHER     	          = 0x2FF,
	EVENT_OTHER_LOGFILE	          ,
}MMC_EVENT;

const char *mmc_event_name(int32_t event);

typedef enum{
	IRCUT_UNKNOWN 	= 2,
	IRCUT_DAY   	= 1,  //1  for day to filter IR light      (with ir-filter(red or blue) glass)
	IRCUT_NIGHT 	= 0,  //0  for night to unfilter all light (with transparent glass)
}IRCUT_MODE;


#endif //__PROJECT_CONFIG_INCLUDED__

