User Manual

Table Of Contents
AN706-00040-2v0-E
91
7.2.8.6 Switch Press Detection Processing Function
Switch press detection processing is executed. (av_demoapp_sw_detect)
Play/stop switch, selection next switch, selection previous switch press detection is
executed.
Set pressed for current
switch press status.
Start
Loop counter <-
Loop counter < Number of SW
buttons
Increment loop counter.
No
Yes
No current switch press
and switch status pressed
Current switch pressed
and switch status not pressed
No
Yes
Set not pressed for current
switch press status.
Set detection for current
switch detection status.
Yes
No
Finish
Get switch state.
(SW_GetStatus)
Figure 66 Switch Press Detection Processing Function Flow