初级会员
- 积分
- 88
- 金钱
- 88
- 注册时间
- 2014-9-15
- 在线时间
- 2 小时
|
楼主 |
发表于 2014-12-19 16:36:22
|
显示全部楼层
回复【2楼】八度空间:
---------------------------------
我怎么没找到这个函数啊static void LcdReadDataMultiple(U16 * pData, int NumItems),新手处处碰壁,能帮我看下吗,谢过了,我用的是emwin5.16,其中LCDConf.c中的部分代码如下:
int LCD_X_DisplayDriver(unsigned LayerIndex, unsigned Cmd, void * pData)
{
int r;
switch (Cmd)
{
case LCD_X_INITCONTROLLER:
{
//
// Called during the initialization process in order to set up the
// display controller and put it into operation. If the display
// controller is not initialized by any external routine this needs
// to be adapted by the customer...
//
// ...
// ???????°??????????????????????????
// LCD_InitHard();
return 0;
}
case LCD_X_SETVRAMADDR:
{
//
// Required for setting the address of the video RAM for drivers
// with memory mapped video RAM which is passed in the 'pVRAM' element of p
//
LCD_X_SETVRAMADDR_INFO * p;
(void)p;
p = (LCD_X_SETVRAMADDR_INFO *)pData;
//...
return 0;
}
case LCD_X_SETORG:
{
//
// Required for setting the display origin which is passed in the 'xPos' and 'yPos' element of p
//
LCD_X_SETORG_INFO * p;
(void)p;
p = (LCD_X_SETORG_INFO *)pData;
//...
return 0;
}
case LCD_X_SHOWBUFFER:
{
//
// Required if multiple buffers are used. The 'Index' element of p contains the buffer index.
//
LCD_X_SHOWBUFFER_INFO * p;
(void)p;
p = (LCD_X_SHOWBUFFER_INFO *)pData;
//...
return 0;
}
case LCD_X_SETLUTENTRY:
{
//
// Required for setting a lookup table entry which is passed in the 'Pos' and 'Color' element of p
//
LCD_X_SETLUTENTRY_INFO * p;
(void)p;
p = (LCD_X_SETLUTENTRY_INFO *)pData;
//...
return 0;
}
case LCD_X_ON:
{
//
// Required if the display controller should support switching on and off
//
return 0;
}
case LCD_X_OFF:
{
//
// Required if the display controller should support switching on and off
//
// ...
return 0;
}
default:
r = -1;
}
return r;
} |
|