/*
* 1. Channel Information
*/
/* VA area CH number */
#define TP_CHANNEL_NUM 20
/* virtually key area CH number*/
#define TP_KEY_NUM 0
/* virtually key number */
#define TP_LOGIC_KEY_NUM 3
/* How many chnanels from last is invalid*/
#define KEY_CH_INVALID_NUM 0
#define TP_CHANNEL_ORDER {9,10,8,11,7,12,6,13,5,14,4,15,3,16,2,17,1,18,0,19}
//------------------------------------------------------------------------------
/*
*2. AFE setting information
*/
/*
* AFE Scan mode
* 0: Single mode
* 1: Double mode(Scan two channels at one time)
* 2: Four mode (Scan four channels at one time)
* 3: Eight mode (Scan eight channels at one time)
* "Double mode" will improve the anti power noise ability
* Usually use 3(Eight mode) as default
*/
#define AFE_SCAN_MODE 3
/*
* Seleted sensor scan times for every channel, we will get the ACC value of
* all times for the raw data
* scan times = (AFE_SAMPLE_CYCLE + 1) * 8
* Max value 31
* More scan times will get more accuracy, but lower report rate.
* Usually use 7 as default for Single mode and 15 as default for multi scan mode
*/
#define AFE_SAMPLE_CYCLE 15
/*
* AFE water proof level selection
* 0: No Water proof;
* 1: Level 1;
* 2: Level 2;
* 3: Level 3;
* Usually use 3(Level 3) as default
*/
#define AFE_WATERPROOF_LVL 3
/*
* AFE scan frequency is (AFE clock / (AFE_SCAN_K1_DELAY + AFE_SCAN_K2_DELAY)) Khz.
* For example, if AFE_CLK_DIV = 10, AFE_SCAN_K1_DELAY=12, AFE_SCAN_K2_DELAY=18,
* AFE scan frequency is "3000/(12+18) = 100 Khz".
*/
/*
* Set scan sample time (K1_Delay), the range is
* Eight mode from 0x07 to 0xff.
* Four mode from 0x05 to 0xff.
* Double mode from 0x04 to 0xff.
*/
#define AFE_SCAN_K1_AREA1 28//36//23
/*
* Set scan charge time (K2_Delay), the range is
* Eight mode from 0x07 to 0xff.
* Four mode from 0x06 to 0xff.
* Double mode from 0x04 to 0xff.
*/
#define AFE_SCAN_K2_AREA1 38//36//23
/*
* ADC sample mode
* 0-> Single sampling 1->Bilateral sampling
* Usually use 1 as default
*/
#define AFE_SAMPLE_MODE 1
/*==============================================================================
* (1) Set COORDINATE_TUNING_STEP to "TUNING_STEP_INITIAL"
* Tuning mapping related parameters to make the center of X
*==============================================================================*/
#define X_CENTER_SHIFT 0
/*====================================================================================
* (2) Set COORDINATE_TUNING_STEP to "TUNING_STEP_TB_LINE_TOUCH_HANDLE"
* make the Y coordinate in the top and bottom area more accurate.
*
*===================================================================================*/
/*
* Enable this function will make the Y coordinate in the top and bottom area more accurate.
* Some parameters should be specified when enable this function
* 0: Disable line touch funciton
* 1: Enable line touch function for top and bottom border
*/
#define _TB_LINE_TOUCH_HANDLE_EN 0
/*
* Virtual channel panel order index in the top area(First two) and bottom area(Second two)
* These two virtual channel's line layout should be near the top/bottom area
* 0xFF means that do NOT need to be handled
* {Top1, Top2, Bottom1, Bottom2}
*/
#define TB_LINETOUCH_VIRTUAL_CH_IDX {4, (TP_CHANNEL_NUM>>1)+4, TP_CHANNEL_NUM,(TP_CHANNEL_NUM + 1)}