00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if !(defined __DISPLAY_H__)
00022 #define __DISPLAY_H__
00023
00024 #include "lcd.h"
00025 #include "module.h"
00026 #include "screen.h"
00027
00028 typedef struct _tag_display * LPDISPLAY;
00029
00030 typedef void (* pfnDspCBFanSpeed)(void * context,
00031 unsigned int fan_id,
00032 const char * pszFanName,
00033 unsigned int rpm);
00034
00035 typedef void (* pfnDspCBTemp)(void * context,
00036 unsigned int sensor_id,
00037 double degrees_c);
00038
00039 typedef void (* pfnDspCBKeyEvent)(void * context,
00040 unsigned int key_event);
00041
00042
00043 LCD_API int displayCreate(const char * pszClass,
00044 const char * pszPort,
00045 LPDISPLAY * ppDisplay);
00046
00047 LCD_API int displayOpen(LPDISPLAY pDisplay);
00048
00049 LCD_API int displayClose(LPDISPLAY pDisplay);
00050
00051 LCD_API int displayDispose(LPDISPLAY * ppDisplay);
00052
00053 LCD_API int displayGetSize(LPDISPLAY pDisplay,
00054 int * width,
00055 int * height);
00056
00057 LCD_API int displayAddFanReportListener(LPDISPLAY pDisplay,
00058 unsigned int fan_id,
00059 LPMODULE pModule,
00060 const char * pszName);
00061
00062 LCD_API int displayAddTempReportListener(LPDISPLAY pDisplay,
00063 unsigned int sensor_id,
00064 LPMODULE pModule,
00065 const char * pszName);
00066
00067 LCD_API int displayScreenAdd(LPDISPLAY pDisplay,
00068 LPSCREEN pScreen);
00069
00070
00071
00072
00073
00074
00075
00076 int displayStart(LPDISPLAY pDisplay);
00077
00078 int displayStop(LPDISPLAY pDisplay);
00079
00080
00081
00082 #endif
00083