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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? lcd.h

?? 嵌入式系統(tǒng)設(shè)計(jì)與開(kāi)發(fā)實(shí)例詳解(實(shí)例源碼) 開(kāi)發(fā)環(huán)境SDT2.5
?? H
字號(hào):
/***********************************************************************************************************                                                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);
void LCD_DrawBitmap   (int x0, int y0,
                       int xsize, int ysize,
                       int xMul, int yMul,
                       int BitsPerPixel,
                       int BytesPerLine,
                       const U8* pPixel,
                       const LCD_LOGPALETTE* pLogPal);
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 */




?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区在线视频| 亚洲精品成人少妇| 日韩精品一区二区三区三区免费| 欧美三级日韩三级| 欧美在线一二三| 在线观看欧美黄色| 欧美视频一区二区| 欧美另类高清zo欧美| 欧美午夜精品理论片a级按摩| 欧美中文字幕一二三区视频| 欧美性视频一区二区三区| 在线免费不卡电影| 欧美日韩国产中文| 欧美喷水一区二区| 欧美日韩国产高清一区二区| 欧美区一区二区三区| 欧美午夜在线一二页| 欧美性色欧美a在线播放| 91福利资源站| 欧美色精品在线视频| 91国产丝袜在线播放| 欧美在线看片a免费观看| 欧美午夜宅男影院| 欧美日韩精品欧美日韩精品一| 在线观看成人小视频| 色婷婷国产精品综合在线观看| 91视频www| 欧美日韩中文字幕一区二区| 欧美区在线观看| 日韩欧美一区在线观看| 精品国产乱码久久久久久牛牛 | 青草av.久久免费一区| 爽爽淫人综合网网站| 无码av中文一区二区三区桃花岛| 亚洲成av人在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲电影一区二区三区| 五月天丁香久久| 三级欧美韩日大片在线看| 日韩电影免费在线看| 韩国女主播一区二区三区| 国产一区二区三区免费看| 99久久精品国产一区| 色88888久久久久久影院野外| 欧美私人免费视频| 日韩亚洲欧美一区| 国产清纯白嫩初高生在线观看91| 亚洲人精品午夜| 亚洲高清免费在线| 老司机精品视频导航| 国产精品亚洲午夜一区二区三区 | 亚洲电影第三页| 五月婷婷激情综合网| 精品在线播放免费| 成人久久视频在线观看| 91视视频在线观看入口直接观看www | 国产精品99久久久久久似苏梦涵| 国产成人aaa| 色呦呦日韩精品| 日韩欧美中文字幕公布| 中文字幕在线不卡一区| 亚洲h动漫在线| 国产精品香蕉一区二区三区| eeuss鲁片一区二区三区在线观看| 色悠悠亚洲一区二区| 欧美日韩一区二区三区在线看| 欧美tk—视频vk| 国产日韩精品一区二区三区在线| 香蕉影视欧美成人| 国产黄色精品视频| 欧美一三区三区四区免费在线看| 国产精品免费看片| 麻豆91在线播放| 色爱区综合激月婷婷| 久久亚洲一区二区三区四区| 尤物视频一区二区| 国模冰冰炮一区二区| 在线观看亚洲专区| 久久新电视剧免费观看| 亚洲午夜精品久久久久久久久| 国内精品免费**视频| 欧美私模裸体表演在线观看| 国产午夜精品美女毛片视频| 亚洲国产精品尤物yw在线观看| 国产成人8x视频一区二区| 欧美一区二区三区在线观看视频| 国产精品第一页第二页第三页| 美洲天堂一区二卡三卡四卡视频| 色www精品视频在线观看| 国产天堂亚洲国产碰碰| 亚洲成av人片在线观看无码| 99久久免费视频.com| 2020国产成人综合网| 亚洲不卡一区二区三区| 国产v综合v亚洲欧| 777欧美精品| 天堂成人国产精品一区| 色综合久久88色综合天天| 91高清视频在线| 亚洲一区二区影院| 成人av影视在线观看| 国产精品久久久久婷婷| 国产一区福利在线| 91精品国产高清一区二区三区蜜臀| 亚洲欧美视频一区| www.久久精品| 国产日韩欧美高清在线| 国模套图日韩精品一区二区| 日韩三级免费观看| 亚洲h在线观看| 欧美日韩一级大片网址| 亚洲男人的天堂在线aⅴ视频| 成人va在线观看| 国产欧美日韩中文久久| 国产一二三精品| 精品国产乱码久久久久久蜜臀 | 国产精品亚洲а∨天堂免在线| 欧美不卡视频一区| 秋霞影院一区二区| 正在播放亚洲一区| 日韩在线卡一卡二| 欧美一级日韩免费不卡| 秋霞午夜鲁丝一区二区老狼| 在线播放91灌醉迷j高跟美女| 五月综合激情婷婷六月色窝| 日本精品裸体写真集在线观看| 一区二区三区四区在线播放| 色噜噜狠狠成人中文综合| 亚洲午夜电影在线| 欧美伦理视频网站| 麻豆成人91精品二区三区| 26uuu亚洲综合色欧美| 国产iv一区二区三区| 国产精品久久久久影院| 色一区在线观看| 午夜av一区二区三区| 日韩欧美国产wwwww| 精品一区二区免费| 国产欧美va欧美不卡在线| 成人免费视频播放| 亚洲欧美区自拍先锋| 91色porny在线视频| 一区二区三区蜜桃网| 精品视频999| 日本免费新一区视频| 精品国产凹凸成av人导航| 国产suv精品一区二区6| 亚洲女厕所小便bbb| 欧美日韩aaaaaa| 久久99精品视频| 国产精品久久久久影院亚瑟| 欧美婷婷六月丁香综合色| 麻豆传媒一区二区三区| 亚洲国产精品99久久久久久久久| 91网页版在线| 欧美96一区二区免费视频| 久久婷婷国产综合国色天香| 9色porny自拍视频一区二区| 亚洲图片欧美色图| 精品国产三级a在线观看| 99久久99久久精品免费观看 | 国产精品影音先锋| 国产精品国产三级国产三级人妇| 日本韩国精品在线| 免费av网站大全久久| 欧美激情一区二区三区四区| 欧美最猛性xxxxx直播| 国产中文字幕精品| 伊人开心综合网| 精品少妇一区二区三区| 色妞www精品视频| 婷婷丁香久久五月婷婷| 国产精品久久久久久久久晋中| 欧美日韩国产免费| 福利91精品一区二区三区| 午夜婷婷国产麻豆精品| 国产欧美久久久精品影院| 欧美亚洲国产一区二区三区va| 国产一区999| 五月天激情综合| ...av二区三区久久精品| 欧美v亚洲v综合ⅴ国产v| 色94色欧美sute亚洲线路一ni | 国产一区二区导航在线播放| 夜色激情一区二区| 精品国产乱码久久久久久浪潮 | 在线电影欧美成精品| 成人丝袜视频网| 免费在线视频一区| 亚洲综合在线免费观看| 日本一区二区三区国色天香| 日韩亚洲欧美一区二区三区| 欧美性色黄大片| 91在线国内视频| 国产老妇另类xxxxx| 午夜久久久影院| 亚洲激情五月婷婷| 中文子幕无线码一区tr| 日韩精品在线一区二区| 欧美情侣在线播放|