1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef __DISP_ASSERT_LAYER_H__
#define __DISP_ASSERT_LAYER_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
DAL_STATUS_OK = 0,
DAL_STATUS_NOT_READY = -1,
DAL_STATUS_INVALID_ARGUMENT = -2,
DAL_STATUS_LOCK_FAIL = -3,
DAL_STATUS_LCD_IN_SUSPEND = -4,
DAL_STATUS_FATAL_ERROR = -10,
} DAL_STATUS;
typedef enum {
DAL_COLOR_BLACK = 0x000000,
DAL_COLOR_WHITE = 0xFFFFFF,
DAL_COLOR_RED = 0xFF0000,
DAL_COLOR_GREEN = 0x00FF00,
DAL_COLOR_BLUE = 0x0000FF,
DAL_COLOR_TURQUOISE = (DAL_COLOR_GREEN | DAL_COLOR_BLUE),
DAL_COLOR_YELLOW = (DAL_COLOR_RED | DAL_COLOR_GREEN),
DAL_COLOR_PINK = (DAL_COLOR_RED | DAL_COLOR_BLUE),
} DAL_COLOR;
/* Display Assertion Layer API */
unsigned int DAL_GetLayerSize(void);
DAL_STATUS DAL_SetScreenColor(DAL_COLOR color);
DAL_STATUS DAL_Init(unsigned long layerVA, unsigned long layerPA);
DAL_STATUS DAL_SetColor(unsigned int fgColor, unsigned int bgColor);
DAL_STATUS DAL_Clean(void);
DAL_STATUS DAL_Printf(const char *fmt, ...);
DAL_STATUS DAL_OnDispPowerOn(void);
DAL_STATUS DAL_LowMemoryOn(void);
DAL_STATUS DAL_LowMemoryOff(void);
#ifdef __cplusplus
}
#endif
#endif /* __DISP_ASSERT_LAYER_H__ */
|