00001 00005 #ifndef DISPLAY_H 00006 #define DISPLAY_H 00007 00008 #define DS_STATIC 0 00009 #define DS_TEXT 1 00010 #define DS_NUMERIC 2 00011 #define DS_PERCENTAGE 3 00012 #define DS_NO_YES 4 00013 #define DS_ARROWS 5 00014 #define DS_RAWTEXT 6 00015 00016 00017 #define DS_TEXTLENGTH 50 00018 #define DISPLAY_ITEMS 32 00019 00020 extern xdata unsigned char displayTimeCount; 00021 00022 extern xdata struct displayItemStruct { 00023 char style; 00024 char title[12]; 00025 char text[12]; 00026 } displayItem[DISPLAY_ITEMS]; 00027 00028 void SetDisplayTitle(char n, char *s); 00029 void SetDisplayText(char n, char *s); 00030 void SetDisplayPercent (char n, char displayValue); 00031 void SetDisplaySignedValue(char n, int i); 00032 00033 #if 0 00034 extern volatile xdata signed char displayPosition; 00035 extern xdata char displayTitle[16]; 00036 extern xdata char displayText[DS_TEXTLENGTH+1]; 00037 extern xdata char displayLength; 00038 extern xdata char displayStyle; 00039 extern xdata char displayValue; 00040 00041 char InitDisplay(char style, char *title, char *text, int value); 00042 #endif 00043 00044 void UpdateDisplay(unsigned char n); 00045 00046 #endif 00047