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