www.pudn.com > iMagic_2006_0428_v098r23.rar > utillcd.h
/* **************************************************************** * Magic Pixel Inc. * * Copyright 2004-2005, Magic Pixel Inc., HsinChu, Taiwan * All rights reserved. * * * * Filename: UtilLcd.h * * Programmer: Chiunghua Lee * MPX E120 division * * Created: 08/14/2005 * * Description: Header file of utility functions to iMagic LCD controller. * * * Change History (most recent first): * <1> 08/14/2005 C.H.Lee first file **************************************************************** */ #ifndef __UTILLCD_H #define __UTILLCD_H #include "InfIduRep.h" void UtilActiveDisplaySet(idurep *pstDisplay); idurep* UtilActiveDisplayGet(); void UtilSingleFrmTx(); void UtilMPUReadyWait(); void UtilScreenRefresh(void); BOOL UtilDualPanelSupport(); #define ActiveDisplaySet UtilActiveDisplaySet #define ActiveDisplayGet UtilActiveDisplayGet #define ScreenRefresh UtilScreenRefresh #define MAIN_WINDOW_BUFFER UtilActiveDisplayGet()->pbMainWindow1Addr #define MAIN_WINDOW_BUFFER2 UtilActiveDisplayGet()->pbMainWindow2Addr #define SUB_WINDOW_BUFFER UtilActiveDisplayGet()->pbSubWindow1Addr #define SUB_WINDOW_BUFFER2 UtilActiveDisplayGet()->pbSubWindow2Addr #define FRAME_BUFFER_SIZE UtilActiveDisplayGet()->dwFrameBufSize #define FRAME_BUFFER_WIDTH UtilActiveDisplayGet()->size.h #define FRAME_BUFFER_HEIGHT UtilActiveDisplayGet()->size.v #define SUB_WINDOW_BG_COLOR UtilActiveDisplayGet()->stImageBG #define PRIM_MAIN_WINDOW_BUF UtilPrimaryMBufGet() #define PRIM_SUB_WINDOW1_BUF UtilPrimarySBuf1Get() #define PRIM_SUB_WINDOW2_BUF UtilPrimarySBuf2Get() #define PRIM_FRAME_SIZE UtilPrimarySizeGet() #define SEC_MAIN_WINDOW_BUF UtilSecondaryMBufGet() #define SEC_SUB_WINDOW1_BUF UtilSecondarySBuf1Get() #define SEC_SUB_WINDOW2_BUF UtilSecondarySBuf2Get() #define SEC_FRAME_SIZE UtilSecondarySizeGet() IDUErr IDUNewIduPriModule(idurep*); IDUErr IDUNewIduSubModule(idurep*); BYTE UtilPanelVisualSizeGet(WORD *, WORD *, IDUWINDOWTYPE); #endif // __UTILLCD_H