hal_lcd.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. ///**************************************************************************************************
  2. // Filename: hal_lcd.h
  3. // Revised: 20150616
  4. // Revision: $Revision: 13579 $andy
  5. //
  6. // Description: This file contains the interface to the LCD Service.
  7. //
  8. //
  9. // Copyright 2005-2007 Texas Instruments Incorporated. All rights reserved.
  10. //
  11. // IMPORTANT: Your use of this Software is limited to those specific rights
  12. // granted under the terms of a software license agreement between the user
  13. // who downloaded the software, his/her employer (which must be your employer)
  14. // and Texas Instruments Incorporated (the "License"). You may not use this
  15. // Software unless you agree to abide by the terms of the License. The License
  16. // limits your use, and you acknowledge, that the Software may not be modified,
  17. // copied or distributed unless embedded on a Texas Instruments microcontroller
  18. // or used solely and exclusively in conjunction with a Texas Instruments radio
  19. // frequency transceiver, which is integrated into your product. Other than for
  20. // the foregoing purpose, you may not use, reproduce, copy, prepare derivative
  21. // works of, modify, distribute, perform, display or sell this Software and/or
  22. // its documentation for any purpose.
  23. //
  24. // YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  25. // PROVIDED 밃S IS?WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  26. // INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
  27. // NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  28. // TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,
  29. // NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
  30. // LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  31. // INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
  32. // OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
  33. // OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
  34. // (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
  35. //
  36. // Should you have any questions regarding your right to use this Software,
  37. // contact Texas Instruments Incorporated at https://aldsz.taobao.com
  38. //**************************************************************************************************/
  39. //
  40. //#ifndef HAL_LCD_H
  41. //#define HAL_LCD_H
  42. //
  43. //#ifdef __cplusplus
  44. //extern "C"
  45. //{
  46. //#endif
  47. //
  48. ///**************************************************************************************************
  49. // * INCLUDES
  50. // **************************************************************************************************/
  51. //#include "hal_board.h"
  52. //
  53. ///**************************************************************************************************
  54. // * CONSTANTS
  55. // **************************************************************************************************/
  56. //
  57. ///* These are used to specify which line the text will be printed */
  58. //
  59. ///*
  60. // This to support LCD with extended number of lines (more than 2).
  61. // Don't use these if LCD doesn't support more than 2 lines
  62. //*/
  63. ///* These are used to specify which line the text will be printed */
  64. //#define HAL_LCD_LINE_1 0x00
  65. //#define HAL_LCD_LINE_2 0x01
  66. ///*
  67. // This to support LCD with extended number of lines (more than 2).
  68. // Don't use these if LCD doesn't support more than 2 lines
  69. //*/
  70. //#define HAL_LCD_LINE_3 0x02
  71. //#define HAL_LCD_LINE_4 0x03
  72. //#define HAL_LCD_LINE_5 0x04
  73. //#define HAL_LCD_LINE_6 0x05
  74. //#define HAL_LCD_LINE_7 0x06
  75. //#define HAL_LCD_LINE_8 0x07
  76. //
  77. ///* Max number of chars on a single LCD line */
  78. //#define HAL_LCD_MAX_CHARS 16
  79. //#define HAL_LCD_MAX_BUFF 25
  80. //
  81. ///**************************************************************************************************
  82. // * MACROS
  83. // **************************************************************************************************/
  84. //
  85. //
  86. ///**************************************************************************************************
  87. // * TYPEDEFS
  88. // **************************************************************************************************/
  89. //
  90. //
  91. ///**************************************************************************************************
  92. // * GLOBAL VARIABLES
  93. // **************************************************************************************************/
  94. //
  95. //
  96. ///**************************************************************************************************
  97. // * FUNCTIONS - API
  98. // **************************************************************************************************/
  99. //
  100. ///*
  101. // * Initialize LCD Service
  102. // */
  103. //extern void HalLcdInit(void);
  104. //
  105. ///*
  106. // * Write a string to the LCD
  107. // */
  108. //extern void HalLcdWriteString ( char *str, uint8 option);
  109. //
  110. ///*
  111. // * Write a value to the LCD
  112. // */
  113. //extern void HalLcdWriteValue ( uint32 value, const uint8 radix, uint8 option);
  114. //
  115. ///*
  116. // * Write a value to the LCD
  117. // */
  118. //extern void HalLcdWriteScreen( char *line1, char *line2 );
  119. //
  120. ///*
  121. // * Write a string followed by a value to the LCD
  122. // */
  123. //extern void HalLcdWriteStringValue( char *title, uint16 value, uint8 format, uint8 line );
  124. //
  125. ///*
  126. // * Write a string followed by 2 values to the LCD
  127. // */
  128. //extern void HalLcdWriteStringValueValue( char *title, uint16 value1, uint8 format1, uint16 value2, uint8 format2, uint8 line );
  129. //
  130. ///*
  131. // * Write a percentage bar to the LCD
  132. // */
  133. //extern void HalLcdDisplayPercentBar( char *title, uint8 value );
  134. //
  135. ////------------------------------------------------------------------------------
  136. ////LCD 奈�
  137. //#define WHITE 0xFFFF
  138. //#define BLACK 0x0000
  139. //#define GREY 0xF7DE
  140. //#define GREY2 0xF79E
  141. //#define DARK_GREY 0x6B4D
  142. //#define DARK_GREY2 0x52AA
  143. //#define LIGHT_GREY 0xE71C
  144. //#define BLUE 0x001F
  145. //#define BLUE2 0x051F
  146. //#define RED 0xF800
  147. //#define MAGENTA 0xF81F
  148. //#define GREEN 0x07E0
  149. //#define CYAN 0x7FFF
  150. //#define YELLOW 0xFFE0
  151. //
  152. //
  153. ////鞫刻썹충奈�
  154. //#define WINDOW_BK_COLOR 0xDFFF //눗왯교쒼�
  155. //#define WINDOW_COLOR 0x11FA //눗왯품쒼�
  156. //#define TITLE_BK_COLOR 0x11FA //깃痙으교쒼�
  157. //#define TITLE_COLOR 0xDFFF //깃痙으품쒼�
  158. //#define STATUS_BK_COLOR 0x0014 //榴檄으교쒼�
  159. //#define STATUS_COLOR 0xDFFF //榴檄으품쒼�
  160. //
  161. //extern unsigned int Color ; // 품쒼奈�
  162. //extern unsigned int Color_BK; // 교쒼奈�
  163. //extern void DrawRectFill(unsigned int Xpos , unsigned int Ypos, unsigned int Width,
  164. // unsigned int Height, unsigned Color);
  165. //extern void LCD_write_EN_string(unsigned char X,unsigned char Y,uint8 *s);
  166. //extern void LCD_write_CN_string(unsigned char X,unsigned char Y,uint8 *s);
  167. ////------------------------------------------------------------------------------
  168. //
  169. ///**************************************************************************************************
  170. //**************************************************************************************************/
  171. //
  172. //#ifdef __cplusplus
  173. //}
  174. //#endif
  175. //
  176. //#endif