没办法,自己先顶一下。
程序十分的大,在这里放一部分上去吧,让大家看看
V 字符的定义
const unsigned char font_V[] =
{
0x7C,0x1F,0x18,0x04,0x18,0x04,0x18,0x04,0x18,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x06,0x10,0x06,0x10,0x06,0x10,
0x06,0x10,0x03,0x20,0x03,0x20,0x03,0x20,0x03,0x20,0x03,0xC0,0x01,0xC0,0x01,0xC0,0x01,0xC0,0x01,0xC0,0x00,0x80,0x00,0x80,
};/*"V"*/
显示函数:
void ShowVolValue(void)
{
BYTE val = 0;
const S_EXT_ADJ_INFO *ptr = GetOsdShowGeneralExtAdjInfo();
if(ptr->vol == 0)
{
if(currentFormKeyAttr != 0)
{
ShowCurrentAreaWithAttr(BLANK,0);
}
return;
}
val = *(ptr->value);
currentFormKeyAttr = 1;
OsdShowArea((ptr->strTab)[val],currentFormKey->area);
}
const S_EXT_ADJ_INFO *GetOsdShowGeneralExtAdjInfo(void)
{
BYTE i;
for(i = 0;generalExtAdjInfo.adjustInfo != 0; i++)
{
if(systemAdjuctState == generalExtAdjInfo.adjustInfo)
{
#ifdef ENABLE_BT
if(enterTelFlag)
{
return(&telExtAdjInfo);
}
return(&generalExtAdjInfo);
#else
return(&generalExtAdjInfo);
#endif
}
}
return(&generalExtAdjInfo[sizeof(generalExtAdjInfo)/sizeof(S_EXT_ADJ_INFO)-1]);
}
结构指针:
typedef struct
{
BYTE adjustInfo;
BYTE *value;//don't NULL
BOOL vol;
BYTE maxValue;
const BYTE *str;//don't NULL
const BYTE *str1; //don't NULL
const BYTE *str2; //don't NULL
const BYTE *const *strTab;//don't NULL
VOID_FUNCT_PTR fPtr;
}S_EXT_ADJ_INFO;
|