VLSI Solution Oy VS1103 VLSI Solution Karaoke, MIDI and ADPCM Player Source Code Documentation

Main Page | Class List | File List | Class Members | File Members | Related Pages

display.h

Go to the documentation of this file.
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 

All software copyright 2000-2004 VLSI Solution OY. Redistribution of these software modules is limited to VLSI Solution Oy chip promotional use only. Free or commercial use of these software modules in MP3 players is ok if the product includes chip(s) from VLSI. You can request the complete (compilable) package from mp3@vlsi.fi. This exampe code is provided with good faith to assist You in code development, but under no circumstances will VLSI offer any guarantees on the usability or functionality of any example software or its fitness for any purpose.