示例#1
0
void AW5306_User_Init(void)
{
	unsigned char ret;

	ret = 0;

	AW5306_WorkMode = DeltaMode;	//DeltaMode: chip output delta data  RawDataMode: chip output rawdata

	memcpy(&AWTPCfg,&Default_UCF,sizeof(AW5306_UCF));
	memcpy(&AW_Cali,&Default_Cali1,sizeof(STRUCTCALI));		//load default cali value

	AW5306_User_Cfg1();

	ret = AW5306_RAWDATACHK();
	
}
void AW5306_User_Init(void)
{
	unsigned char ret;

	ret = 0;
	AW5306_WorkMode = DeltaMode;	//DeltaMode: chip output delta data  RawDataMode: chip output rawdata
	AWTPCfg.MAPPING_MAX_X = 533;//480;	// 533  320 LCD DISPLAY SOLUTION X
	AWTPCfg.MAPPING_MAX_Y = 800;	//   460 LCD DISPLAY SOLUTION Y  480 + 480 /13

	AWTPCfg.FLYING_TH = 150;	//flying theshold
	AWTPCfg.MOVING_TH = 100;	//moving theshold
	AWTPCfg.MOVING_ACCELER = 50;	//moving ACC
	AWTPCfg.FIRST_CALI = 1;			//calibrate switch, 1 means calibration at first poweron 

	AWTPCfg.DEBUG_SWITCH = 0;		// lib printk switch 

	AWTPCfg.ESD_PROTECT = 0;

	AW5306_User_Cfg1();

	ret = AW5306_RAWDATACHK();
	
}