📄 lcd_msg.lst
字号:
235 2 #endif
236 2
237 2 if ((ucP3_Prev ^ ucP3_Curr) & AUTO_KEY_MASK)
238 2 {
239 3 ucKey_Issued = 0;
C51 COMPILER V7.50 LCD_MSG 07/28/2008 16:10:57 PAGE 5
240 3 ucNotify = NOTIFY_AUTO_KEY;
241 3 }
242 2 break;
243 2
244 2 #if (KEY_TYPE == KEY_6)
case EXIT_KEY_MASK :
if(ucOSD_Page_Index)
#if(IRPOLLING)
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 34;
#else
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
#endif
if ((ucP3_Prev ^ ucP3_Curr) & EXIT_KEY_MASK)
{
ucKey_Issued = 0;
ucNotify = NOTIFY_EXIT_KEY;
}
break;
#endif
259 2
260 2 case CHINC_KEY_MASK :
261 2 #if(IRPOLLING)
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 34;
#else
264 2 usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
265 2 #endif
266 2 if ((ucP3_Prev ^ ucP3_Curr) & CHINC_KEY_MASK)
267 2 {
268 3 ucKey_Issued = 0;
269 3 ucNotify = NOTIFY_CHINC_KEY;
270 3 ucKey_Repeat = KEY_REPEAT_COUNT;
271 3 }
272 2 else
273 2 {
274 3 if (ucKey_Repeat)
275 3 ucKey_Repeat -= 1;
276 3 else
277 3 {
278 4 if (KEY_TURBO_ENABLE > ucKey_Issued)
279 4 {
280 5 ucKey_Issued += 1;
281 5 ucKey_Repeat = KEY_REPEAT_PERIOD;
282 5 }
283 4 else
284 4 ucKey_Repeat = 0;
285 4
286 4 ucNotify = NOTIFY_CHINC_KEY; // Post CHINC-key repeat message
287 4 }
288 3 }
289 2 break;
290 2
291 2 case CHDEC_KEY_MASK :
292 2 #if(IRPOLLING)
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 34;
#else
295 2 usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
296 2 #endif
297 2 if ((ucP3_Prev ^ ucP3_Curr) & CHDEC_KEY_MASK)
298 2 {
299 3 ucKey_Issued = 0;
300 3 ucNotify = NOTIFY_CHDEC_KEY;
301 3 ucKey_Repeat = KEY_REPEAT_COUNT;
C51 COMPILER V7.50 LCD_MSG 07/28/2008 16:10:57 PAGE 6
302 3 }
303 2 else
304 2 {
305 3 if (ucKey_Repeat)
306 3 ucKey_Repeat -= 1;
307 3 else
308 3 {
309 4 if (KEY_TURBO_ENABLE > ucKey_Issued)
310 4 {
311 5 ucKey_Issued += 1;
312 5 ucKey_Repeat = KEY_REPEAT_PERIOD;
313 5 }
314 4 else
315 4 ucKey_Repeat = 0;
316 4
317 4 ucNotify = NOTIFY_CHDEC_KEY; // Post CHINC-key repeat message
318 4 }
319 3 }
320 2 break;
321 2
322 2 case ENTER_KEY_MASK :
323 2 if ((ucP3_Prev ^ ucP3_Curr) & ENTER_KEY_MASK)
324 2 {
325 3 ucKey_Issued = 0;
326 3 #if(IRPOLLING)
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 34;
#else
329 3 usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
330 3 #endif
331 3 ucNotify = NOTIFY_ENTER_KEY; // Post enter-key pressed message
332 3 ucKey_Repeat = KEY_REPEAT_COUNT * 8;
333 3 }
334 2 else
335 2 {
336 3 if (ucKey_Repeat)
337 3 ucKey_Repeat -= 1;
338 3 else
339 3 {
340 4 if (ucOSD_Page_Index)
341 4 {
342 5 usOSD_Timer = 0;
343 5 ucNotify = NOTIFY_CLEAR_OSD;
344 5 }
345 4 }
346 3 }
347 2 break;
348 2
349 2 case RIGHT_KEY_MASK :
350 2 #if(IRPOLLING)
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 34;
#else
353 2 usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
354 2 #endif
355 2
356 2 if ((ucP3_Prev ^ ucP3_Curr) & RIGHT_KEY_MASK)
357 2 {
358 3 ucKey_Issued = 0;
359 3
360 3 ucNotify = NOTIFY_RIGHT_KEY; // Post right-key pressed message
361 3 ucKey_Repeat = KEY_REPEAT_COUNT;
362 3 }
363 2 else
C51 COMPILER V7.50 LCD_MSG 07/28/2008 16:10:57 PAGE 7
364 2 {
365 3 if (ucKey_Repeat)
366 3 ucKey_Repeat -= 1;
367 3 else
368 3 {
369 4 if (KEY_TURBO_ENABLE > ucKey_Issued)
370 4 {
371 5 ucKey_Issued += 1;
372 5 ucKey_Repeat = KEY_REPEAT_PERIOD;
373 5 }
374 4 else
375 4 ucKey_Repeat = 0;
376 4
377 4 ucNotify = NOTIFY_RIGHT_KEY; // Post right-key repeat message
378 4 }
379 3 }
380 2 break;
381 2
382 2 case LEFT_KEY_MASK :
383 2 #if(IRPOLLING)
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 34;
#else
386 2 usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
387 2 #endif
388 2 if ((ucP3_Prev ^ ucP3_Curr) & LEFT_KEY_MASK)
389 2 {
390 3 ucKey_Issued = 0;
391 3
392 3 ucNotify = NOTIFY_LEFT_KEY; // Post left-key pressed message
393 3 ucKey_Repeat = KEY_REPEAT_COUNT;
394 3 }
395 2 else
396 2 {
397 3 if (ucKey_Repeat)
398 3 ucKey_Repeat -= 1;
399 3 else
400 3 {
401 4 if (KEY_TURBO_ENABLE > ucKey_Issued)
402 4 {
403 5 ucKey_Issued += 1;
404 5 ucKey_Repeat = KEY_REPEAT_PERIOD;
405 5 }
406 4 else
407 4 ucKey_Repeat = 0;
408 4
409 4 ucNotify = NOTIFY_LEFT_KEY; // Post left-key repeat message
410 4 }
411 3 }
412 2 break;
413 2
414 2 #if (IRPOLLING)
case IR_KEY_MASK :
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
ucKey_Issued = 0;
if ((ucP3_Prev ^ ucP3_Curr) & IR_KEY_MASK)
{
ucNotify = Data[0]; // Post IR-key pressed message
ucKey_Repeat = KEY_REPEAT_COUNT;
if (NOTIFY_IR_VOLINC == Data[0] || NOTIFY_IR_VOLDEC == Data[0] || NOTIFY_IR_CHINC == Data[0] |
-| NOTIFY_IR_CHDEC == Data[0] || NOTIFY_IR_RIGHT_KEY== Data[0] || NOTIFY_IR_LEFT_KEY== Data[0])
ucIR_Cmd[1] = 1;
}
C51 COMPILER V7.50 LCD_MSG 07/28/2008 16:10:57 PAGE 8
else if(NOTIFY_IR_VOLINC == Data[0] || NOTIFY_IR_VOLDEC == Data[0] || NOTIFY_IR_CHINC == Data[0] |
-| NOTIFY_IR_CHDEC == Data[0] || NOTIFY_IR_RIGHT_KEY== Data[0] || NOTIFY_IR_LEFT_KEY== Data[0])
{
if (ucKey_Repeat)
ucKey_Repeat -= 1;
else
{
ucNotify = Data[0];
ucKey_Repeat = KEY_REPEAT_PERIOD;
}
}
break;
#endif
437 2
438 2 default :
439 2 // No key or more than 1 key pressed. Post no message and reset key-repeat.
440 2 ucKey_Repeat = KEY_REPEAT_COUNT;
441 2 ucKey_Issued = 0;
442 2
443 2 #if (HIDDEN_PAGE)
444 2 // For triggering the hidden page
445 2 if (0 == ucOSD_Page_Index && (RIGHT_KEY_MASK | LEFT_KEY_MASK) == ucP3_Curr)
446 2 {
447 3 ucNotify = NOTIFY_LR_KEY;
448 3 #if(IRPOLLING)
usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 34;
#else
451 3 usOSD_Timer = (unsigned int)stGUD1.OSD_TIMEOUT * 51;
452 3 #endif
453 3 }
454 2 #endif
455 2 break;
456 2 }
457 1
458 1 return ucNotify;
459 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 511 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 1
IDATA SIZE = 4 ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -