beautypg.com

8 touch panel touch detection processing function, Touch panel touch detection processing function – FUJITSU FMB AN706 User Manual

Page 94

background image

AN706-00040-2v0-E

93

7.2.8.8 Touch Panel Touch Detection Processing Function

Touch panel touch detection processing is executed. (av_demoapp_tp_detect)

Detects which position of the nine areas (see Figure 47) on the LCD has been touched.

Start

Loop counter <-0

Loop counter < number of

touch areas

No

Yes

Current touch panel status

changes to touch status

Set current touch panel touch status to

touch detection complete status.

Current touch panel status

changes to no touch status

Set current touch panel no touch status

to touch detection complete status.

Set detection for current touch panel

detection status.

Set touch panel area ID

Increment loop counter.

Yes

No

Yes

No

Finish

Get area status from touch panel.

(TOUCH_GetAreaStatus)

Figure 68 Touch Panel Touch Detection Processing Function Flow