summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/drivers/input/touchscreen/aw5306_ts/AW5306_userpara.h
blob: 15d5c180b78fd808547b07d5e300da38a0132848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#ifndef AW5306_USERPARA_H

#define AW5306_USERPARA_H

#define INTMODE

typedef struct {
	unsigned char	TX_LOCAL;	//					15		//TX number of TP
	unsigned char	RX_LOCAL;	//					10		//RX number of TP
	unsigned char	TX_ORDER[22];	// TX ORDER
	unsigned char	RX_ORDER[12];	// RX mapping in inverted order
	unsigned char	RX_START;	//RX START LINE
	unsigned char	HAVE_KEY_LINE;	// 0: no KEY line, 1: have key line on TX line TX_LOCAL-1
	unsigned char	KeyLineValid[16];

	unsigned short	MAPPING_MAX_X;	//   320
	unsigned short	MAPPING_MAX_Y;	//   460

	unsigned short	GainClbDeltaMin;	// Expected minimum delta for GAIN calibration
	unsigned short	GainClbDeltaMax;	// Expected maximum delta for GAIN calibration
	unsigned short	KeyLineDeltaMin;
	unsigned short	KeyLineDeltaMax;
	unsigned short	OffsetClbExpectedMin;	// Expected minimum data for OFFSET calibration
	unsigned short	OffsetClbExpectedMax;	// Expected minimum data for OFFSET calibration
	unsigned short	RawDataDeviation;	// Maximum deviation in a frame
	unsigned short	CacMultiCoef;

	unsigned short	RawDataCheckMin;
	unsigned short	RawDataCheckMax;

	unsigned short  FLYING_TH;
	unsigned short 	MOVING_TH;
	unsigned short 	MOVING_ACCELER;

	unsigned char	PEAK_TH;
	unsigned char	GROUP_TH;
	unsigned char	BIGAREA_TH;
	unsigned char	BIGAREA_CNT;
	unsigned char	BIGAREA_FRESHCNT;

	unsigned char	CACULATE_COEF;
	
	unsigned char 	FIRST_CALI;
	unsigned char	RAWDATA_DUMP_SWITCH;
	unsigned char	MULTI_SCANFREQ;
	unsigned char	BASE_FREQ;
	unsigned char	FREQ_OFFSET;
	unsigned char	WAIT_TIME;
	unsigned char	CHAMP_CFG;
	unsigned char	POSLEVEL_TH;
	
	unsigned char	ESD_PROTECT;
	
	unsigned char	MARGIN_COMPENSATE;
	unsigned char	MARGIN_COMP_DATA_UP;
	unsigned char	MARGIN_COMP_DATA_DOWN;
	unsigned char	MARGIN_COMP_DATA_LEFT;
	unsigned char	MARGIN_COMP_DATA_RIGHT;
	
	unsigned char	POINT_RELEASEHOLD;
	unsigned char	MARGIN_RELEASEHOLD;
	unsigned char	POINT_PRESSHOLD;
	unsigned char	KEY_PRESSHOLD;
	
	unsigned char	PEAK_ROW_COMPENSATE;
	unsigned char	PEAK_COL_COMPENSATE;
	unsigned char	PEAK_COMPENSATE_COEF;
	
	unsigned char	LCD_NOISE_PROCESS;
	unsigned char	LCD_NOISETH;
	
	unsigned char	FALSE_PEAK_PROCESS;
	unsigned char	FALSE_PEAK_TH;
	
	unsigned char	STABLE_DELTA_X;
	unsigned char	STABLE_DELTA_Y;
	
	unsigned char	DEBUG_LEVEL;
	
	unsigned char	FAST_FRAME;
	unsigned char	SLOW_FRAME;
	
	unsigned char	GAIN_CLB_SEPERATE;

	unsigned char	MARGIN_PREFILTER;
	
	unsigned char	BIGAREA_HOLDPOINT;
	unsigned char	CHARGE_NOISE;
	unsigned char	FREQ_JUMP;
	unsigned char	PEAK_VALID_CHECK;
	unsigned char	WATER_REMOVE;
	unsigned char	INT_MODE;

}AW5306_UCF;

void AW5306_User_Init(void);
void AW5306_User_Cfg1(void);

#endif