UiFm.h
上传用户:hjhsjcl
上传日期:2020-09-25
资源大小:11378k
文件大小:2k
源码类别:

压缩解压

开发平台:

C++ Builder

  1. /*==========================================================================
  2. Copyright (c) 2004 ALi Corporation. All Rights Reserved
  3. File: UiCommon.h
  4. content: user interface for FM module
  5. History: Created by TNE 2004/8/17
  6. ==========================================================================*/
  7. #define UI_FM_PRESET_DELAY_TIME 29
  8. #define UI_FM_PRESET_SAVE_TIME 0x4300
  9. #define UI_FM_PRESET_SCROLL_TIME 0x1700
  10. #define UI_FM_PRESET_BLOCK_PAGE 4
  11. #define UI_FM_PRESET_BLOCK_COLNUM 55
  12. //add by tne 2004/11/12
  13. #define UI_FM_PRESET_START_PAGE 4
  14. #define OLED_FM_PRESET_START_PAGE PAGE4
  15. #define UI_FM_PRESET_START_COLUMN 4
  16. #define UI_FM_PRESET_WIDTH_SPACE 15
  17. //add by tne 2004/12/18 #1
  18. #define UI_FM_FREQ1_PAGE 5
  19. #define UI_FM_FREQ2_PAGE 6
  20. #define OLED_FM_FREQ1_PAGE 86
  21. #define OLED_FM_FREQ2_PAGE PAGE6
  22. //tne 2007/01/11 #1 start
  23. #define UI_FM_FREQ_COL 16
  24. #define UI_FM_FREQ_ROW 56
  25. #define UI_FM_FREQ_SPACE 2
  26. #define UI_FM_FREQ_NUM_WIDTH 16
  27. #define UI_FM_FREQ_BAR_COL 0
  28. #define UI_FM_FREQ_BAR_ROW 136
  29. #define UI_FM_FREQ_BAR_WIDTH 119
  30. #define UI_FM_STEREO_ICON_COL 5
  31. #define UI_FM_STEREO_ICON_ROW 90
  32. #define FM_FREQNUM_ICON_OFFSET (IM_RADIO_NUMBER_1-IM_RADIO_NUMBER_0)
  33. #define UI_FM_FREQ_DOT_COL (UI_FM_FREQ_COL+3*(UI_FM_FREQ_NUM_WIDTH+UI_FM_FREQ_SPACE))
  34. #define UI_FM_LOW_FREQ_NUM_COL (UI_FM_FREQ_DOT_COL+8)
  35. #define UI_PRESET_ICON_COL 28
  36. #define UI_PRESET_ICON_ROW 28
  37. #define UI_FM_NORMAL_MENU_MAX_ITEM 2
  38. #define UI_FM_PRESET_MENU_MAX_ITEM 2
  39. //tne 2007/01/11 #1 end
  40. //tne 2007/01/12 #3 start
  41. #define FM_AUTO_SCAN_PREST_DELAY_TIME 18
  42. #define FM_SEARCH_USER_BREAK 2
  43. #define FM_FREQ_SEARCH_UP TRUE
  44. #define FM_FREQ_SEARCH_DOWN FALSE
  45. #define FM_FREQ_SEARCH_SAVE_PRESET_MODE TRUE
  46. #define FM_FREQ_SEARCH_NORMAL_MODE FALSE
  47. //tne 2007/01/12 #3 end
  48. #ifdef _UI_FM_H_
  49. #define EXTERN
  50. #else
  51. #define EXTERN extern
  52. #endif
  53. #if(FM_MODULE==2) // WHH070322
  54. EXTERN XWORD gxbPreSattion;
  55. #endif
  56. EXTERN XWORD gxwPresetData[FM_MAX_PRESET+1+20]; //Dennis060517#1
  57. EXTERN API void UiDispCtrl(BYTE) reentrant; //Tne051228#reentrant
  58. EXTERN API void UiGoNoMenu(void);
  59. EXTERN API void UiShowWakeUp(void) large;
  60. #undef EXTERN