52 #define d4dtchhw_s12_adc_ID 1
54 #if (D4D_MK_STR(D4D_LLD_TCH_HW) == d4dtchhw_s12_adc_ID)
65 static unsigned char D4DTCHHW_Init_s12_adc(
void);
66 static unsigned char D4DTCHHW_DeInit_s12_adc(
void);
67 static unsigned short D4DTCHHW_ReadTouchAxis_s12_adc(
D4DTCHHW_PINS pinId);
79 D4DTCHHW_Init_s12_adc,
80 D4DTCHHW_ReadTouchAxis_s12_adc,
81 D4DTCHHW_GetRawLimits_s12_adc,
82 D4DTCHHW_PinCtl_s12_adc,
83 D4DTCHHW_DeInit_s12_adc
101 static unsigned char D4DTCHHW_Init_s12_adc(
void)
121 static unsigned char D4DTCHHW_DeInit_s12_adc(
void)
134 static unsigned short D4DTCHHW_ReadTouchAxis_s12_adc(
D4DTCHHW_PINS pinId)
137 unsigned short advalue=0;
192 INPUT(D4DTCH_X_PLUS);
215 INPUT(D4DTCH_X_MINUS);
221 D4DTCH_RESET_X_MINUS;
232 INPUT(D4DTCH_Y_PLUS);
255 INPUT(D4DTCH_Y_MINUS);
261 D4DTCH_RESET_Y_MINUS;
Switch on the pin for read by ADC.
#define D4DTCH_Y_PLUS_ADCH_PIN_DISABLE
#define D4DTCH_Y_TOUCH_OFFMAX
Analog touch screen X- signal.
#define D4DTCH_FULL_SCALE
D4DTCHHW_PINS
D4D low level MCU types definition for analog resistive touch screen signals.
#define D4DTCH_Y_TOUCH_MIN
D4D Driver main header file.
D4DHW_PIN_STATE
D4D low level MCU pin state enumeration type.
D4D Driver private header file.
#define D4DTCH_X_TOUCH_OFFMAX
Switch pin to input mode (equivalent to high-Z)
#define D4DTCH_ATDSTAT0_SCF
D4D low level touch screen limitation structure.
Switch pin to output mode.
#define D4DTCH_X_PLUS_ADCH_PIN_ENABLE
Set pin output register to logic 1.
Switch off the pin for read by ADC.
Analog touch screen X+ signal.
#define D4DTCH_X_TOUCH_MIN
Set pin output register to logic 0.
D4D driver - low level driver of ADC and gpio for resistive touch screen header file.
D4D driver - resistive touch screen driver function header file.
D4D low level touch screen hardware interface API structure.
#define D4DTCH_X_PLUS_ADCH_PIN_DISABLE
#define D4DTCH_Y_PLUS_ADCH_PIN_ENABLE
Analog touch screen Y- signal.
Analog touch screen Y+ signal.