亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lcd.h

?? ucgui源碼3.32
?? H
字號:
/*
*********************************************************************************************************
*                                                uC/GUI
*                        Universal graphic software for embedded applications
*
*                       (c) Copyright 2002, Micrium Inc., Weston, FL
*                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
*              礐/GUI is protected by international copyright laws. Knowledge of the
*              source code may not be used to write a similar product. This file may
*              only be used in accordance with a license and should not be redistributed
*              in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File        : LCD.h
Purpose     : Declares LCD interface functions
----------------------------------------------------------------------
*/

#ifndef LCD_H
#define LCD_H


/*
  ********************************************************************
  *                                                                  *
  *                   Basic type defines                             *
  *                                                                  *
  ********************************************************************

The follwing are defines for types used in the LCD-driver and the
emWin layers on top of that. Since "C" does not provide data types of
fixed length which are identical on all platforms, this is done here.
For most 16/32 controllers, the settings will work fine. However, if
you have similar defines in other sections of your program, you might
want to change or relocate these defines, e.g. in a TYPE.h file.
*/
 
#define I8    signed char
#define U8  unsigned char     /* unsigned 8  bits. */
#define I16   signed short    /*   signed 16 bits. */
#define U16 unsigned short    /* unsigned 16 bits. */
#define I32   signed long   /*   signed 32 bits. */
#define U32 unsigned long   /* unsigned 32 bits. */
#define I16P I16              /*   signed 16 bits OR MORE ! */
#define U16P U16              /* unsigned 16 bits OR MORE ! */

/*
  ********************************************************************
  *                                                                  *
  *               Settings for windows simulation                    *
  *                                                                  *
  ********************************************************************

Some settings in the configuration may conflict with the values required
in the Simulation. This is why we ignore the target settings for data
types and use the correct settings for the simulation.
(U32 could be defined as long, which would yield a 64 bit type on
the PC)
*/

#ifdef WIN32
  #pragma warning( disable : 4244 )  // Disable warning messages in simulation
  #pragma warning( disable : 4761 )  // Disable warning "integral size mismatch in argument; conversion supplied"
#endif                                      


/*      *************************************************************
        *                                                           *
        *                Constants                                  *
        *                                                           *
        *************************************************************
*/
#define LCD_ERR0 (0x10)
#define LCD_ERR_CONTROLLER_NOT_FOUND (LCD_ERR0+1)
#define LCD_ERR_MEMORY               (LCD_ERR0+2)

/*
      *********************************
      *                               *
      *      Drawing modes            *
      *                               *
      *********************************
*/

#define LCD_DRAWMODE_NORMAL (0)
#define LCD_DRAWMODE_XOR    (1<<0)
#define LCD_DRAWMODE_TRANS  (1<<1)
#define LCD_DRAWMODE_REV    (1<<2)


 
/*      *************************************************************
        *                                                           *
        *                Typedefs                                   *
        *                                                           *
        *************************************************************
*/

typedef int LCD_DRAWMODE;
typedef U32 LCD_COLOR;

 
/********************************************************
*
*     Data structures
*
*********************************************************
*/

typedef struct { I16P x,y; } GUI_POINT;
typedef struct { I16 x0,y0,x1,y1; } LCD_RECT;
/*typedef struct { GUI_POINT P0, P1; } LCD_RECT; */

typedef struct {
  int              NumEntries; 
  char             HasTrans;         
  const LCD_COLOR* pPalEntries; 
} LCD_LOGPALETTE; 

/* This is used for the simulation only ! */
typedef struct {
  int x,y;
  unsigned char KeyStat;
} LCD_tMouseState;

/********************************************************
*
*     Index2Color
*
*********************************************************

  This function needs to be int the public part of the software
  since it is needed by the simulation. Most other driver
  functions are hidden in the private header file.
*/

typedef LCD_COLOR    tLCDDEV_Index2Color     (int Index);
#if !defined (__C51__) /* To bypass Keil-compiler bug */
  tLCDDEV_Index2Color LCD_L0_Index2Color, LCD_L0_1_Index2Color;
#else
  LCD_COLOR    LCD_L0_Index2Color  (int Index);
  LCD_COLOR    LCD_L0_1_Index2Color(int Index);
#endif

/*      *************************************************************
        *                                                           *
        *                   Defines                                 *
        *                                                           *
        *    for device capabilities                                *
        *                                                           *
        *************************************************************

The following is the list of device capabilities which can, but do
not have to be implemented in the driver. This way the driver can be
enhanced in the future without affecting the driver interface,
keeping older drivers compatible.
More DevCaps can always be added in the future, as older drivers
are guaranteed to return 0 for all unimplemented features or queries.

The values below define the legal parameters to the LCD_GetDeviceCaps
and the LCD_GetpCapFunc routines.
*/

#define LCD_DEVCAP_NUMCOLORS    0x0     /* Quest number of colors
                                           which LCD can display */
#define LCD_DEVCAP_XSIZE        0x1     /* Quest horiz. res. of display */
#define LCD_DEVCAP_YSIZE        0x2     /* Quest vert. res. of display */
#define LCD_DEVCAP_VXSIZE       0x3     /* Quest vert. res. of virtual disp.*/
#define LCD_DEVCAP_VYSIZE       0x4     /* Quest vert. res. of virtual disp.*/
#define LCD_DEVCAP_XORG         0x5     /* X-origin ... usually 0 */
#define LCD_DEVCAP_YORG         0x6     /* Y-origin ... usually 0 */
#define LCD_DEVCAP_CONTROLLER   0x7     /* LCD Controller (Numerical) */
#define LCD_DEVCAP_BITSPERPIXEL 0x8     /* Bits per pixel ... 1/2/4/8 */
#define LCD_DEVCAP_NUMPAGES     0x10    /* Quest number of pages of display */

#define LCD_DEVCAP_COLOR        0x1000  /* Quest Color[0]
                                0x1001     Quest Color[1]
                                0x1002     Quest Color[2]
                                         ...                    */
 /* The next 4095 entries are reserved so up to 4096 colors
    can be queried          ...*/

int LCD_GetXSize(void);
int LCD_GetYSize(void);
int LCD_GetVXSize(void);
int LCD_GetVYSize(void);
U32 LCD_GetNumColors(void);
int LCD_GetBitsPerPixel(void);
int LCD_GetFixedPalette(void);
int LCD_GetXMag(void);
int LCD_GetYMag(void);
int LCD_GetNumDisplays(void);
int LCD_GetXSize_1(void);
int LCD_GetYSize_1(void);
int LCD_GetVXSize_1(void);
int LCD_GetVYSize_1(void);
U32 LCD_GetNumColors_1(void);
int LCD_GetBitsPerPixel_1(void);
int LCD_GetFixedPalette_1(void);
int LCD_GetXMag_1(void);
int LCD_GetYMag_1(void);

#define LCD_GET_XSIZE()        LCD_GetXSize()
#define LCD_GET_YSIZE()        LCD_GetYSize()
#define LCD_GET_VXSIZE()       LCD_GetVXSize()
#define LCD_GET_VYSIZE()       LCD_GetVYSize()
#define LCD_GET_NUMCOLORS()    LCD_GetNumColors()
#define LCD_GET_BITSPERPIXEL() LCD_GetBitsPerPixel()


/*********************************************************************
*
*      LCD_CLIP function table
*
**********************************************************************
*/
typedef void         tLCD_HL_DrawHLine    (int x0, int y0,  int x1);
typedef void         tLCD_HL_DrawPixel    (int x0, int y0);

typedef struct {
  tLCD_HL_DrawHLine*          pfDrawHLine;
  tLCD_HL_DrawPixel*          pfDrawPixel;
} tLCD_HL_APIList;

#if defined (__C51__) /* To bypass Keil-compiler bug */
  void LCD_DrawHLine(int x0, int y0,  int x1);
  void LCD_DrawPixel(int x0, int y0);
#else
  tLCD_HL_DrawHLine LCD_DrawHLine;
  tLCD_HL_DrawPixel LCD_DrawPixel;
#endif

void LCD_DrawVLine  (int x, int y0,  int y1);



/*********************************************************************
*
*              Declarations for LCD_
*
**********************************************************************
*/

void LCD_SetClipRectEx(const LCD_RECT* pRect);
void LCD_SetClipRectMax(void);

/* Get device capabilities (0 if not supported) */
I32  LCD_GetDevCap(int Index);

/* Initialize LCD using config-paramters */
int LCD_Init(void);

void LCD_SetBkColor   (LCD_COLOR Color); /* Set background color */
void LCD_SetColor     (LCD_COLOR Color); /* Set foreground color */
void LCD_SetPixelIndex(int x, int y, int ColorIndex);

/* Palette routines (Not available on all drivers) */
void LCD_InitLUT(void);

/* Decompressors */
typedef void tfDrawSpecialBitmap(int x0,int y0,int xsize, int ysize, const U8*pPixel, const LCD_LOGPALETTE* pLogPal, int xMag, int yMag);
#if !defined (__C51__) /* To bypass Keil-compiler bug */
  tfDrawSpecialBitmap LCD_DrawBitmap_RLE8, LCD_DrawBitmap_RLE4;
#else
  void LCD_DrawBitmap_RLE8(int x0,int y0,int xsize, int ysize, const U8*pPixel, const LCD_LOGPALETTE* pLogPal, int xMag, int yMag);
  void LCD_DrawBitmap_RLE4(int x0,int y0,int xsize, int ysize, const U8*pPixel, const LCD_LOGPALETTE* pLogPal, int xMag, int yMag);
#endif

LCD_DRAWMODE LCD_SetDrawMode  (LCD_DRAWMODE dm);
void LCD_SetColorIndex(int Index);
void LCD_SetBkColorIndex(int Index);
void LCD_FillRect(int x0, int y0, int x1, int y1);
typedef void tLCD_SetPixelAA(int x, int y, U8 Intens);

#if defined (__C51__)  /* To bypass Keil-compiler bug */
  void tLCD_SetPixelAA(int x, int y, U8 Intens);
  void LCD_SetPixelAA_NoTrans(int x, int y, U8 Intens);
#else
  tLCD_SetPixelAA LCD_SetPixelAA;
  tLCD_SetPixelAA LCD_SetPixelAA_NoTrans;
#endif

LCD_COLOR LCD_AA_MixColors(LCD_COLOR Color, LCD_COLOR BkColor, U8 Intens);
LCD_COLOR    LCD_GetPixelColor(int x, int y);     /* Get RGB color of pixel */
unsigned int LCD_GetPixelIndex(int x, int y);
int LCD_GetBkColorIndex (void);
int LCD_GetColorIndex (void);



/*      *************************************************************
        *                                                           *
        *      LCD  publics not used by GUI                         *
        *                                                           *
        *************************************************************
  

The following functions can, but do not have to be defined in the LCD driver
as they are not used by the GUI level.

*/



#define LCD_On          LCD_L0_On
#define LCD_Off         LCD_L0_Off
#define LCD_ReInit      LCD_L0_ReInit
#define LCD_SetLUTEntry LCD_L0_SetLUTEntry


#define LCD_CC_UNLOCK (0)    /* Default mode: Cache is transparent */
#define LCD_CC_LOCK   (1)    /* Cache is locked, no write operations */
#define LCD_CC_FLUSH  (2)    /* Flush cache, do not change mode */
U8 LCD_L0_ControlCache(U8 mode);
/* Check if controller is still properly initialized */
int  LCD_L0_CheckInit(void);        /* returns if init is still O.K.
                                      by reading all available registers of
                                      Display controller.
                                      0: Init O.K.
                                    */

#define LCD_ControlCache LCD_L0_ControlCache

/*
        ******************************************
        *                                        *
        *        Support for paging              *
        *                                        *
        ******************************************
*/

int LCD_SelPage  (int NewPage);    /* returns formerly sel. page */
int LCD_ShowPage (int NewPage);    /* sets / returns visible page */
int LCD_GetSelPage (void);         /* returns selected page */
int LCD_GetVisPage (void);         /* returns visible page */


/*      *************************************************************
        *                                                           *
        *      LCD  imports                                         *
        *                  (for routines in LCDColor)               *
        *                                                           *
        *************************************************************
*/
  

int              LCD_Color2Index     (LCD_COLOR Color);
LCD_COLOR        LCD_Index2Color     (int Index);

/*********************************************************************
*
*       LCD_X_...
*
**********************************************************************
*/

void LCD_X_Init(void);
void LCD_X_On  (void);
void LCD_X_Off (void);

#endif /* LCD_H */




?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
人人精品人人爱| 亚洲天堂免费看| 麻豆91在线看| 亚洲人精品午夜| 成人午夜短视频| 国产精品女同一区二区三区| 成人黄色av网站在线| 中文字幕一区二区三区视频| 91麻豆产精品久久久久久| 亚洲自拍偷拍av| 日韩美女一区二区三区四区| 韩国成人精品a∨在线观看| 国产调教视频一区| 一本色道久久加勒比精品| 亚洲成人资源在线| 日韩精品资源二区在线| 国产成人精品一区二区三区网站观看| 中文幕一区二区三区久久蜜桃| 一本大道久久a久久精品综合| 日韩精品免费专区| 久久久不卡影院| 色婷婷av久久久久久久| 日本亚洲一区二区| 中文乱码免费一区二区| 欧美日韩视频一区二区| 精品在线播放午夜| 亚洲三级视频在线观看| 91精品国产综合久久小美女| 国产福利视频一区二区三区| 亚洲精品成人a在线观看| 日韩一区二区三区电影| aa级大片欧美| 美女网站色91| 伊人一区二区三区| 欧美成人乱码一区二区三区| 色婷婷亚洲精品| 国内精品在线播放| 一区二区三区日韩精品视频| 久久久亚洲午夜电影| 欧美视频在线播放| av电影在线观看不卡| 蜜臀91精品一区二区三区| 亚洲欧洲精品天堂一级| 久久综合中文字幕| 欧美日韩国产系列| av动漫一区二区| 国产一区二区福利视频| 五月天一区二区三区| 中文字幕不卡在线观看| 欧美刺激午夜性久久久久久久| 91亚洲国产成人精品一区二三| 美女一区二区在线观看| 性欧美疯狂xxxxbbbb| 亚洲美女淫视频| 久久这里只有精品6| 欧美军同video69gay| 成人av网在线| 国产精品1区2区| 久久精品久久久精品美女| 亚洲综合免费观看高清完整版在线| 久久精品视频免费观看| 精品剧情在线观看| 6080日韩午夜伦伦午夜伦| 欧美在线999| 免费高清在线视频一区·| 亚洲成人在线免费| 亚洲综合免费观看高清在线观看| 亚洲色欲色欲www在线观看| 国产欧美精品一区aⅴ影院| 26uuu国产电影一区二区| 日韩精品一区二区三区四区| 欧美一级欧美三级在线观看| 欧美精品精品一区| 3751色影院一区二区三区| 欧美精品在线一区二区| 欧美日韩国产高清一区二区| 欧美日韩高清一区二区三区| 欧美人与性动xxxx| 91精品国产综合久久蜜臀 | 日韩免费视频线观看| 欧美三级日韩在线| 欧美精品一卡二卡| 欧美久久久久久久久| 在线播放中文一区| 欧美一区二区精品久久911| 日韩欧美一区电影| 精品国产一区二区三区久久影院| 欧美不卡视频一区| 久久精品一区二区三区不卡牛牛| 欧美国产乱子伦 | 欧美剧在线免费观看网站| 9191久久久久久久久久久| 911国产精品| 欧美成人综合网站| 中国av一区二区三区| 亚洲色图视频网站| 偷拍与自拍一区| 国产一区视频导航| av午夜一区麻豆| 欧美日韩黄视频| 精品福利一区二区三区免费视频| 国产欧美一区二区精品婷婷 | 亚洲精品国久久99热| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲成人免费电影| 久久国产福利国产秒拍| 国产黄色成人av| 在线观看日韩国产| 精品不卡在线视频| 亚洲免费在线观看| 免费在线观看一区二区三区| 成人午夜私人影院| 91精品国产一区二区| 久久精子c满五个校花| 亚洲综合视频网| 国产精一品亚洲二区在线视频| 91久久奴性调教| 精品国产1区二区| 一区二区三区四区激情| 久久99久久精品| 色噜噜久久综合| 久久这里都是精品| 亚洲高清视频中文字幕| 国产精品99久| 欧美一区二区三区四区视频| 国产精品福利一区二区三区| 日本三级亚洲精品| 99精品国产热久久91蜜凸| 精品日韩一区二区三区免费视频| 亚洲狠狠丁香婷婷综合久久久| 黄色资源网久久资源365| 欧美性欧美巨大黑白大战| 国产精品伦一区二区三级视频| 麻豆视频观看网址久久| 色成年激情久久综合| 国产日本欧洲亚洲| 美腿丝袜亚洲一区| 在线观看日韩电影| 国产精品久久久久久妇女6080| 麻豆国产欧美日韩综合精品二区| 91久久一区二区| 国产精品每日更新在线播放网址| 久久精品国产在热久久| 欧美色图激情小说| 亚洲黄色尤物视频| 99re热这里只有精品视频| 久久久久久黄色| 韩国一区二区三区| 欧美不卡一区二区三区| 日韩av午夜在线观看| 在线观看一区日韩| 亚洲精品视频在线| www.日韩在线| 欧美国产精品v| 国产精品1区2区| 精品99999| 精品在线播放午夜| 欧美v日韩v国产v| 日日噜噜夜夜狠狠视频欧美人| 欧美亚洲综合色| 樱桃视频在线观看一区| 色婷婷综合久久久中文字幕| 亚洲人被黑人高潮完整版| 白白色亚洲国产精品| 国产精品国产精品国产专区不蜜| 国产·精品毛片| 中文字幕高清不卡| av在线不卡观看免费观看| 国产精品毛片大码女人| 91香蕉视频污在线| 一区二区三区四区在线免费观看| 日本乱人伦一区| 午夜精品免费在线| 日韩欧美国产一二三区| 国产真实乱对白精彩久久| 国产婷婷一区二区| 99久久99久久精品免费观看| 亚洲日本丝袜连裤袜办公室| 91亚洲精品久久久蜜桃| 亚洲国产精品嫩草影院| 欧美男生操女生| 精品一区二区三区在线观看 | 麻豆国产欧美日韩综合精品二区| 精品久久久久久综合日本欧美| 韩国三级在线一区| 国产精品网站一区| 欧美亚洲综合色| 老司机午夜精品99久久| 国产人久久人人人人爽| 91麻豆福利精品推荐| 亚洲成人高清在线| 日韩欧美第一区| 国产91精品一区二区麻豆亚洲| 国产精品国产三级国产普通话99 | 久久久不卡网国产精品一区| 99re成人在线| 舔着乳尖日韩一区| 国产欧美精品一区| 欧美性大战久久久久久久蜜臀| 久久99国内精品|