comparison chipsetsw/drivers/drv_app/r2d/lcd_functions.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /************************************************************************************
2 * lcd_functions.h : contains low level function for the lcd *
3 * *
4 * *
5 * Author: Davide Carpegna *
6 * *
7 * version: 1.0 *
8 * *
9 * Date: 13/11/2000 *
10 * (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved *
11 * *
12 * --------------------------------------------------------------------------------- *
13 * *
14 * History: *
15 * *
16 * 10/18/2001 - Updated for R2D by Christophe Favergeon *
17 * *
18 ************************************************************************************/
19 #ifndef __LCD_FUNCTIONS_H_
20 #define __LCD_FUNCTIONS_H_
21
22 #include "rv/rv_general.h"
23 #include "rvf/rvf_api.h"
24 #include "rv/general.h"
25 #include "r2d/uwire.h"
26 #include "r2d/r2d_config.h"
27
28 /********** VIDEO MODE definition *********/
29
30 typedef enum {
31 NORMAL,
32 INVERSE
33 }T_VIDEO_MODE;
34
35 //LCD physical configuration:
36 //LCD_MODE->1 reversed LCD (origin in the bottom right corner)
37 //LCD_MODE->0 normal positioned LCD (origin in the top left corner)
38 #ifndef _WINDOWS
39 #define LCD_MODE 1
40 #else
41 #define LCD_MODE 0
42 #endif
43
44 /* display dimensions. */
45 #define DISP_PIXELWIDTH R2D_WIDTH
46 #define DISP_PIXELHEIGHT R2D_HEIGHT
47 #define DISP_PAGEHEIGHT (R2D_HEIGHT >> 3)
48
49 //display center
50 #define X_CENTER (R2D_WIDTH>>1)
51 #define Y_CENTER ((DISP_PAGEHEIGHT>>1)-1)
52
53 //functions prototype
54 void LCD_Clear_ll (void);
55 void LCD_Init_ll(void);
56 void LCD_Write_String(UINT8 row, UINT8 column, char *string, T_VIDEO_MODE mode);
57 void LCD_Write_Center( char *string);
58
59 /******* ICONS DEFINITION **********/
60
61 #define LCD_BATTERY_ICON_0 (0)
62 #define LCD_BATTERY_ICON_1 (1)
63 #define LCD_BATTERY_ICON_2 (2)
64 #define LCD_BATTERY_ICON_3 (3)
65 #define LCD_BATTERY_ICON_4 (4)
66 #define LCD_ENVELOP_ICON (5)
67 #define LCD_RECORD_ICON (6)
68 #define LCD_ONLINE_ICON (7)
69 #define LCD_ANTENNA_ICON_0 (8)
70 #define LCD_ANTENNA_ICON_1 (9)
71 #define LCD_ANTENNA_ICON_2 (10)
72 #define LCD_ANTENNA_ICON_3 (11)
73 #define LCD_ANTENNA_ICON_4 (12)
74 #define LCD_CLEAR_ICON (13)
75
76
77
78 #endif /*__LCD_FUNCTIONS_H_*/