/*
 * APP_Data_Process.h
 *
 *  Created on: 2012-3-27
 *      Author: qitiancun
 */
 

    
#ifdef        GLOBALS_APP_PROCESS
    #define   EXTERN_APP_PROCESS
   
#else
    #define   EXTERN_APP_PROCESS     extern
#endif

#ifndef APP_DATA_PROCESS_H_
#define APP_DATA_PROCESS_H_

    
               

   
    #define                  CheckFlag            0x55
    

    EXTERN_APP_PROCESS        void      App_Load_Data(void);
    EXTERN_APP_PROCESS        void      App_State_Init(void);
    EXTERN_APP_PROCESS        INT8U     App_CreateCheckSun(INT8U *pData,INT8U checkbyte,INT8U len);
    EXTERN_APP_PROCESS void UDS_Receive_Main(unsigned char *buf);
    EXTERN_APP_PROCESS void UDS_Service_Main(void);
#endif /* APP_DATA_PROCESS_H_ */

    // typedef struct 
    // {  
	// 	_Subnet  Node;         //F010
    //     INT8U    Checkflag;          
    //     INT8U    VehIde[12];     //F187 vehicleManufacturerSparePartNumberDataIdentifier
    //     INT8U    SupplierIde[4]; //F18A systemSupplierIdentifierDataIdentifier
	// 	INT8U    SystemName[10]; //F197
	// 	INT8U    EcuHardwIde[2]; //F193
	// 	INT8U    EcuSoftwIde[2]; //F195
	// 	INT8U    EcuSerialNum[8]; //F18C		
	// 	INT8U    VIN[17];         //F190
	// 	INT8U    ECUDate[4];      //F18B
	// 	INT8U    Reserved0;
	// 	INT8U    Reserved1;
	// 	INT8U    Reserved2;
    //     INT8U    CheckSun;
    // }_ProductInfo;

    // EXTERN_USER_DEF     volatile       _ProductInfo          ProductInfo;

    //     typedef union 
    // {
    //      struct
    //      {
	// 		  //byte0  //YZHD
	// 		  INT8U     Cruise      		:1;	//xun hang     					 //IC
	// 		  INT8U     StarAndStop 		:1;	//qi ting kong zhi	 			 //IC	  
	// 		  INT8U     Engine_type    		:5; //fa dong ji lei xing 
	// 		  INT8U     Headlight_delay  	:1; //7 da deng yan shi 
	// 		  //byte1
	// 		  INT8U     ECU_Type  			:5;//ECU lei xing 
	// 		  INT8U     Engine_Prevention   :1;//13  fa dong ji fang dao  		 //IC
	// 		  INT8U     FAN_PWM_CON_BIT		:1;//PWM wu ji feng shan kong zhi
	// 		  INT8U     GSM			   		:1;//dian zi huan dang kong zhi qi
	// 		  //byte2
	// 		  INT8U     Reserved5    		:2;
	// 		  INT8U     GrearBoxType		:3; //bian su xiang lei xing			//IC
	// 		  INT8U     Reserved6    		:3;
	// 		  //byte3
    //           INT8U     BreakSysSel  		:1; //24//0,ABS,1,ESP					//IC
	// 		  INT8U     Steering_system     :2; //EPS			  
    //           INT8U     AirbagCtrl   			:2; //an quan qi nang
	// 		  INT8U     Reserved9    	:1; //29 
	// 		  INT8U     Radar_Before    	:1; //30 
	// 		  INT8U     Reserved10   	:1; //31
	// 		  //byte4
	// 		  INT8U     Car_DVR			    :1; //32//xing che ji lu yi
	// 		  INT8U     Parking_sensors   	:1; //33//dao che lei da
	// 		  INT8U     RVC   				:1; //34//dao che ying xiang
	// 		  INT8U     Front_Fog_Lamp   	:1; //35//qian wu deng
	// 		  INT8U     DRL				    :1; //36//ri jian xing che deng
	// 		  INT8U     Sun_rain_sensor     :1; //37//yang guang yu liang chuan gan qi
	// 		  INT8U     Clamp			    :1; //38//fang jia kong zhi qi 
	// 		  INT8U     skylight   			:1; //39//tian chuang kong zhi qi
	// 		  //byte5
	// 		  INT8U     Byte5_bit0    :1;
	// 		  INT8U     Byte5_bit1    :1;//41//zuo qian men tian xian
	// 		  INT8U     Byte5_bit2    :1;//42//fu shou xiang tian xian
	// 		  INT8U     Byte5_bit3    :1;//43//wei men tian xian
	// 		  INT8U     Byte5_bit4    :1;//44//hou zuo yi tian xian 1
	// 		  INT8U     Byte5_bit5    :1;//45//
	// 		  INT8U     Byte5_bit6    :1;//46//hou zuo yi tian xian 2
	// 		  INT8U     Byte5_bit7    :1;//47//
			  	
	// 		  //byte6
	// 		  INT8U     PEPS_Sel      :1; //48											//IC
	// 		  INT8U     Byte6_bit1    :1; //49//quan jing bo che kong zhi qi
	// 		  INT8U     MP5_Sel       :1; //50//GPS dao hang 							//IC
	// 		  INT8U     EPB_Sel       :1; //51//dian zi shou sha						//IC
	// 		  INT8U     TPMS_Sel      :1; //52//tai ya jian ce							//IC
	// 		  INT8U     Car_type_H    :3; //car type
	// 		  //byte7
	// 		  INT8U     Car_type_L    :1;//56 											//IC
	// 		  INT8U     Reserved24    :2;//57 
	// 		  INT8U     Reserved25    :1;//59 
	// 		  INT8U     HUD		      :1;//60   tai tou xian shi 						//IC
	// 		  INT8U     Reserved26    :1;//61 
	// 		  INT8U     Reserved27    :1;//62 
	// 		  INT8U     Reserved28    :1;//63 	
    //      }bits;
    //      INT8U Subnet[8];
    // }_Subnet;

    // #define     MP5_model              0
	// #define     MP3_model              1