/*********************************************************************************
 * Copyright(C),Ningbo Joyson Preh Car Connect Co.,Ltd.
 * FileName:    Power_Config.h
 * Author:      Zheng shijie
 * Version :    Ver0.1
 * Date:        2020-10-09
 * Description:
 *
 *********************************************************************************/
#ifndef APP_POWER_POWER_CONFIG_H_
#define APP_POWER_POWER_CONFIG_H_



#define POWER_NULL			0

#define	NORMAL_FLAG 		0
#define VOCATION_FLAG 		1
#define POWER_CLEAR			0

#define ECO_MODE_EXIT	0x00
#define ECO_MODE_ENTER	0xFF

#define STANDBY_INIT		0x00
#define STANDBYOUT_OVER		0x01
#define STANDBYOUT_TIMEOUT	0x02
#define STANDBYIN_OVER		0x03
#define STANDBYIN_TIMEOUT	0x04

#define POWER_STAGE_0	0
#define POWER_STAGE_1	1
#define POWER_STAGE_2	2
#define POWER_STAGE_3	3
#define POWER_STAGE_4	4
#define POWER_STAGE_5	5

/*Power Mode define*/
enum{
/*00*/PM_MODE_IDEL= 0x00,
/*01*/PM_MODE_STANDBYOUT_COLD,
/*02*/PM_MODE_STANDBYOUT_WARM,
/*03*/PM_MODE_MCU_STANDBYOUT_OVER,
/*04*/PM_MODE_NAD_STANDBYOUT_OVER,
/*05*/PM_MODE_MCU_STANDBYIN_OVER,
/*06*/PM_MODE_NAD_STANDBYIN_OVER,
/*07*/PM_MODE_RUNNING,
/*08*/PM_MODE_STANDBYIN,
/*09*/PM_MODE_STOP,
/*10*/PM_MODE_ECO_SOC_OFF,
/*11*/PM_MODE_ECO,
/*12*/PM_MODE_VOLTAGE_ABNORMAL,
/*13*/PM_MODE_VOLTAGE_ABNORMAL_WAIT,
/*14*/PM_MODE_BATTERY,
/*15*/PM_MODE_BATTERY_SOC_OFF,
/*16*/PM_MODE_OFFCALL,
/*17*/PM_MODE_KEEP,
};

#endif /* APP_POWER_POWER_CONFIG_H_ */
