📄 osd2csl.lst
字号:
C51 COMPILER V8.08 OSD2CSL 11/23/2007 00:57:19 PAGE 1
C51 COMPILER V8.08, COMPILATION OF MODULE OSD2CSL
OBJECT MODULE PLACED IN .\Object\OSD2CSL.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE SourceFile\OSD2CSL.C LARGE BROWSE INCDIR(.\IncludeFile;.\IncludeFile\Panel;
-.\IncludeFile\Font_Icon) DEFINE(T108) DEBUG OBJECTEXTEND PRINT(.\List\OSD2CSL.lst) OBJECT(.\Object\OSD2CSL.obj)
line level source
1 /* ##########################################################################
2 # Terawins Inc. Company #
3 # Copyright (c) 2005, All rights reserved #
4 # #
5 # All rights reserved. Reproduction in whole or in parts is prohibited #
6 # without the prior written consent. #
7 ########################################################################## */
8
9 ////////////////////////////////////////////////////////////////////////////////
10 // //
11 // LCD Application Firmware //
12 // ========================================================================== //
13 // //
14 // Module : OSD2CSL.c //
15 // //
16 // Purpose : T128/T108 OSD 2 Chip support libary. //
17 // //
18 // Version : 1.00 //
19 // //
20 // Compiler : Keil 8051 C Compiler v8.05a //
21 // //
22 // Reference: [1] Keil C51 Compiler User's Guide 09.2001, Keil Software, Inc.//
23 // //
24 // ========================================================================== //
25 // //
26 // Date Author Reason (what and why) //
27 // ----------- ------------- ---------------------------------------------- //
28 // 2007/02/07 Kevin Hsu //
29 // //
30 // //
31 ////////////////////////////////////////////////////////////////////////////////
32 #include "Common.h"
33 #include "Global.h"
34 #include "ICControl.h"
35 #include "System.h"
36 #include "TWICreg.h"
37 #include "OSD2_Define.h"
38 #include "OSD2CSL.h"
39 //#include "ICON2BP12X18.H"
40 #include "Icon4BP12x12.H"
41 #include "IconJigsaw.h"
42 //#define _Myson8957_
43 #include "Myson8957.h"
44
45 #ifdef ICON2BP
//=============================================================================
// Function : void OSD2Show2BPIcon(uCHAR *string,uCHAR x,uCHAR y,
// uCHAR cBlink,uCHAR HVScale,uCHAR MenuIndex)
// Prupose : Show OSD2 2BPP
// Arguments : uCHAR *string
// uCHAR x
// uCHAR y
// uCHAR cBlink
// uCHAR HVScale
C51 COMPILER V8.08 OSD2CSL 11/23/2007 00:57:19 PAGE 2
// uCHAR MenuIndex
// Returns : --
// External : -- -- --
//-----------------------------------------------------------------------------
// Detail Description:
// -------------------
// Show OSD2 2BPP
// --------------
//=============================================================================
void OSD2Show2BPIcon(uCHAR *string,uCHAR x,uCHAR y,uCHAR cBlink,uCHAR HVScale,uCHAR MenuIndex)
{
uCHAR *pString= string+1;
uCHAR i,j,k;
//uCHAR iTeststr[]={0x00,0x01,0x02,0x03,0x04,0x05,0x06,EOL};
//pString = iTeststr;
k=0;
if(MenuIndex == MENU1)
{
while((*pString)!= EOL)
{
//~Set RAtt_C~//
OSD2SetRamAddr(Menu1StrAdr+(Menu1Width+4)*y+3);
OSD2SetRamData(((0x0000+HVScale)<<6)|(Menu1Width));
OSD2SetRamAddr(Menu1StrAdr+(Menu1Width+4)*y+x+4);
j=0;
k=x;
//~Stuff Strings~//
while(((*pString) != EOL)&&(k<Menu1Width)&&(j<string[0]))
{
OSD2SetRamData(0x0000|((uWORD)(cBlink)<<13)|((uWORD)(IconColorIndex[(*pString)]&0x0F)<<9)|(*pString++)
-);
k++;
j++;
}
y++;
}
}
else if(MenuIndex==MENU2)
{
//~Set RAtt_C~//
OSD2SetRamAddr(Menu2StrAdr+(Menu2Width+4)*y+3);
OSD2SetRamData(((0x0000+HVScale)<<6)|(Menu2Width));
OSD2SetRamAddr(Menu2StrAdr+(Menu2Width+4)*y+x+4);
k=x;
while((*pString) != EOL)
{
//~Stuff Strings~//
while(((*pString) != EOL)&&(k<Menu2Width)&&(j<string[0]))
{
OSD2SetRamData(0x0000|((uWORD)(cBlink)<<13)|((uWORD)(IconColorIndex[(*pString)]&0x0F)<<9)|(*pString++)
-);
k++;
j++;
}
y++;
}
}
}
#endif //ICON2BP
113
114
C51 COMPILER V8.08 OSD2CSL 11/23/2007 00:57:19 PAGE 3
115 #ifdef ICON4BP
116 //=============================================================================
117 // Function : OSD2Show4BPIcon(uCHAR *string,uCHAR x,uCHAR y,uCHAR cBlink,
118 // uCHAR HVScale,uCHAR Color, uCHAR MenuIndex)
119 // Prupose : Show OSD2 4BPP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -