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

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

?? lcd2478.h

?? 基于LPC2478的GUI,包含很豐富的圖形編程接口,在ADS下可直接編譯能過.
?? H
字號:
/****************************************Copyright (c)**************************************************
**                               Guangzou ZLG-MCU Development Co.,LTD.
**                                      graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name:           LCD2478.h
** Last modified Date:  2008-04-07
** Last Version:        1.0
** Descriptions:        the lcd controller driver's head
**
**------------------------------------------------------------------------------------------------------
** Created by:          Houxiaolong
** Created date:        2008-04-07
** Version:             1.0
** Descriptions:        the lcd controller driver's head
**
**------------------------------------------------------------------------------------------------------
** Modified by:         Houxiaolong
** Modified date:       2008-07-10
** Version:             1.1
** Descriptions:        add the mirror operation macro
**                      
********************************************************************************************************/

#ifndef _LCD2478_H
#define _LCD2478_H

#define U_LCD_XSIZE     240                                             /*  LCD x size                  */
#define U_LCD_YSIZE     320                                             /*  LCD y size                  */

#define LcdPwr          1                                               
#define LcdTFT          1                                               
#define LcdBpp          6                                               
#define LcdEn           1

#define HBP             18                                              /*  Horizontal back porch       */
#define HFP             9                                               /*  Horizontal front porch      */
#define HSW             11                                              /*  Horizontal pulse width      */

#define VBP             1                                               /*  Vertical back porch         */
#define VFP             2                                               /*  Vertical front porch        */
#define VSW             2                                               /*  Vertical pulse width        */

#define PPL             (U_LCD_XSIZE / 16) - 1                          /*  Pixels-per-line             */

#define LPP             U_LCD_YSIZE - 1                                 /*  Lines-per-panel             */

#define CPL             U_LCD_XSIZE - 1                                 /*  clock per line              */

#define MIRROR_X        1                                               /*  x size mirror               */
#define MIRROR_Y        0                                               /*  y size mirror               */

#define HWORDMODE       0                                               /*  picture data                */

#define LCD_RED         0xf800                                          /*  red color                   */
#define LCD_GREEN       0x07e0                                          /*  green color                 */
#define LCD_BLUE        0x001f                                          /*  blue color                  */
#define LCD_BLACK       0x0000                                          /*  black color                 */
#define LCD_WHITE       0xffff                                          /*  white color                 */


extern __align(8) volatile unsigned short LCD_BUFFER[U_LCD_YSIZE][U_LCD_XSIZE];

/**********************************************************************************************************
**  mirror operation
**********************************************************************************************************/
#if   (!MIRROR_X && !MIRROR_Y)
    #define    SECTION_X(x, y)    x
    #define    SECTION_Y(x, y)    y
#elif (MIRROR_X && !MIRROR_Y)
    #define    SECTION_X(x, y)    U_LCD_XSIZE - 1 - x
    #define    SECTION_Y(x, y)    y
#elif (!MIRROR_X && MIRROR_Y)
    #define    SECTION_X(x, y)    x
    #define    SECTION_Y(x, y)    U_LCD_YSIZE - 1 - y
#elif (MIRROR_X && MIRROR_Y)
    #define    SECTION_X(x, y)    U_LCD_XSIZE - 1 - x
    #define    SECTION_Y(x, y)    U_LCD_YSIZE - 1 - y
#endif   
/*********************************************************************************************************
** Function name :        lcd_SetPixel
** Function Description : Draw a pixel with the appointed color
** Input:                 ix       x side coordinate of the pixel
**                        iy       y side coordinate of the pixel 
**                        uicolor  the color of the pixel 
** Output:                none
*********************************************************************************************************/

__inline void lcd_SetPixel (int ix, int iy, unsigned int uicolor)
{

    if ((ix < U_LCD_XSIZE) && (iy < U_LCD_YSIZE)) {
        LCD_BUFFER[SECTION_Y(ix, iy)][SECTION_X(ix, iy)] = (unsigned short)uicolor;
    }
}

/*********************************************************************************************************
**  macro definition of lcd_SetPixel
*********************************************************************************************************/
/*
#define   lcd_SetPixel(x, y, color)                                                                      \
              do {                                                                                       \
                  if((x < U_LCD_XSIZE) &&  (y < U_LCD_YSIZE)) {                                          \
                      LCD_BUFFER[SECTION_Y(x, y)][SECTION_X(x, y)] = (unsigned short)uicolor;            \
                  }                                                                                      \
              } while (0)
*/                                                  
/*********************************************************************************************************
** Function name :        lcd_Init
** Function Description : Initialize the LCD controler
** Input:                 none
** Output:                none
*********************************************************************************************************/
void lcd_Init(void);
/*********************************************************************************************************
** Function name :        lcd_ReadPixel
** Function Description : Get the pixel's color
** Input:                 ix       x side coordinate of the pixel
**                        iy       y side coordinate of the pixel 
** Output:                succeed  return the pixel's color
**                        fail     0
*********************************************************************************************************/
int lcd_ReadPixel(int ix, int iy);
/*********************************************************************************************************
** Function name :        lcd_Clear
** Function Description : Fill the LCD panel with a color
** Input:                 uicolor   LCD display color
** Output:                none
*********************************************************************************************************/
void lcd_Clear(unsigned int uicolor);
/*********************************************************************************************************
** Function name :        lcd_OnOff
** Function Description : enable or disable the lcd controller
** Input:                 ix       x side coordinate of the pixel
**                        iy       y side coordinate of the pixel 
** Output:                succeed  return the pixel's color
**                        fail     0
*********************************************************************************************************/
void lcd_OnOff(int iOnOff);
/*********************************************************************************************************
** Function name :        lcd_DrawHLine
** Function Description : Draw a horizontal line
** Input:                 ix0      x side coordinate of the first pixel
**                        ix1      x side coordinate of the last pixel
**                        iy       y side coordinate of the line
**                        uicolor  the color of the pixel 
** Output:                none
*********************************************************************************************************/
void lcd_DrawHLine(int ix0, int ix1, int iy, unsigned int uicolor);
/*********************************************************************************************************
** Function name :        lcd_DrawVLine
** Function Description : Draw a vertical line
** Input:                 ix       x side coordinate of the line
**                        iy0      y side coordinate of the first pixel
**                        iy1      y side coordinate of the last pixel
**                        uicolor  the color of the pixel 
** Output:                none
*********************************************************************************************************/
void lcd_DrawVLine (int ix, int iy0, int iy1, unsigned int uicolor);
/*********************************************************************************************************
** Function name :        lcd_DrawLine
** Function Description : Draw a line 
** Input:                 ix0      x side coordinate of the first pixel
**                        iy0      y side coordinate of the first pixel
**                        ix1      x side coordinate of the last pixel
**                        iy1      y side coordinate of the last pixel
**                        uicolor  the color of the pixel 
** Output:                none
*********************************************************************************************************/
void lcd_DrawLine(int ix0, int iy0, int ix1, int iy1, unsigned int uicolor);
/*********************************************************************************************************
** Function name :        lcd_DrawRect
** Function Description : Draw a rectangle 
** Input:                 ix0      x side coordinate of the first pixel
**                        iy0      y side coordinate of the first pixel
**                        ix1      x side coordinate of the last pixel
**                        iy1      y side coordinate of the last pixel
**                        uicolor  the color of the pixel 
** Output:                none
*********************************************************************************************************/
void lcd_DrawRect(int ix0, int iy0, int ix1, int iy1, unsigned int uicolor);
/*********************************************************************************************************
** Function name :        lcd_FillRect
** Function Description : Fill a rectangle 
** Input:                 ix0      x side coordinate of the first pixel
**                        iy0      y side coordinate of the first pixel
**                        ix1      x side coordinate of the last pixel
**                        iy1      y side coordinate of the last pixel
**                        uicolor  the color of the pixel
** Output:                none
*********************************************************************************************************/
void lcd_FillRect(int ix0, int iy0, int ix1, int iy1, unsigned int uicolor);

#if (HWORDMODE == 1) 
/*********************************************************************************************************
** Function name :        lcd_DrawBmp
** Function Description : Draw a bmp 
** Input:                 ix0     x side coordinate of the first pixel
**                        iy0     y side coordinate of the first pixel
**                        iwidth  x side width
**                        ilength y side length
**                        pucBmp  the bmp array pointer
** Output:                none
*********************************************************************************************************/
void lcd_DrawBmp(int ix0, 
                 int iy0, 
                 int iwidth, 
                 int ilength, 
                 unsigned short *pucBmp);
                 
#else
/*********************************************************************************************************
** Function name :        lcd_DrawBmp
** Function Description : Draw a bmp 
** Input:                 ix0     x side coordinate of the first pixel
**                        iy0     y side coordinate of the first pixel
**                        iwidth  x side width
**                        ilength y side length
**                        pucBmp  the bmp array pointer
** Output:                none
*********************************************************************************************************/
void lcd_DrawBmp(int ix0, 
                 int iy0, 
                 int iwidth, 
                 int ilength, 
                 unsigned char *pucBmp);

#endif
/*********************************************************************************************************
** Function name :        delay_Ns
** Function Description : delay time 
** Input:                 idly   the necessary time
** Output:                none
*********************************************************************************************************/                   
void delay_Ns(int idly);

#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级中文字幕在线观看| www.av精品| 久久在线免费观看| 精品影院一区二区久久久| 欧美日韩mp4| 免费不卡在线观看| 久久精品亚洲精品国产欧美kt∨| 国产福利一区二区三区视频| 国产精品热久久久久夜色精品三区 | 久久久国际精品| www.欧美.com| 三级不卡在线观看| 中文字幕亚洲一区二区av在线 | 亚洲一本大道在线| 久久综合色天天久久综合图片| 色老头久久综合| 亚洲成av人片在线观看| 日韩精品一区二区三区蜜臀 | 欧美电影免费观看完整版| 国产成人在线影院| 日韩av在线播放中文字幕| 国产精品护士白丝一区av| 日韩丝袜情趣美女图片| 91蝌蚪国产九色| 成人动漫一区二区三区| 麻豆精品久久久| 天天色综合天天| 亚洲一区中文在线| 一区二区三区精密机械公司| 国产日韩欧美一区二区三区综合| 色天天综合久久久久综合片| 风间由美性色一区二区三区| 国内精品在线播放| 国产福利一区在线观看| 国产精品乡下勾搭老头1| 国内欧美视频一区二区| 最近中文字幕一区二区三区| 久久日韩粉嫩一区二区三区| 日韩一区二区免费在线电影| 欧美一级欧美一级在线播放| 日韩一区二区三区在线观看| 日韩免费电影网站| 国产欧美精品一区| 亚洲伦理在线免费看| 久久国产婷婷国产香蕉| 久久不见久久见中文字幕免费| 99精品一区二区| 国内精品国产三级国产a久久| 日韩电影一区二区三区四区| 精品一区二区三区免费| 国产成人精品一区二| 91碰在线视频| 日韩一级大片在线| 国产精品第13页| 天天做天天摸天天爽国产一区| 日本va欧美va精品发布| 国产制服丝袜一区| 欧美色综合天天久久综合精品| 91精品国产综合久久久久| 国产日韩av一区| 九色|91porny| 精品视频免费在线| 亚洲欧美乱综合| 国产成人在线免费观看| 4438亚洲最大| 一区二区三区高清在线| 东方aⅴ免费观看久久av| 欧美日韩国产综合久久| 综合久久一区二区三区| 成人永久免费视频| 久久精品视频网| 国产剧情一区在线| 2021久久国产精品不只是精品| 日韩国产欧美在线播放| 欧美亚洲动漫精品| 尤物在线观看一区| 色哟哟国产精品| 亚洲国产一区视频| 欧美日韩国产三级| 日韩专区欧美专区| 91精品国产91久久综合桃花 | 欧美日韩一区二区在线观看视频| 国产精品国产自产拍高清av王其 | 欧美国产精品专区| 99久免费精品视频在线观看 | 久久久久久亚洲综合影院红桃| 激情欧美日韩一区二区| 中文字幕在线一区| 欧美色中文字幕| 国产精品91xxx| 一区二区三区高清| 久久青草欧美一区二区三区| 国产精品一区二区91| 亚洲人精品一区| 欧美一区二区视频网站| 成人网页在线观看| 国产精品99久久久| 性做久久久久久久免费看| 26uuu精品一区二区| 欧美中文字幕一区二区三区亚洲| 视频一区二区国产| 亚洲美女在线一区| 国产欧美1区2区3区| 在线不卡中文字幕播放| 91麻豆免费观看| av日韩在线网站| 国产精品66部| 国内不卡的二区三区中文字幕| 夜夜夜精品看看| 亚洲蜜臀av乱码久久精品| 久久影院视频免费| 日韩午夜在线观看视频| 欧美日韩激情一区二区| 日本精品视频一区二区| a在线欧美一区| av午夜一区麻豆| 91色视频在线| 日本韩国精品在线| 欧美日韩免费一区二区三区视频| 9i看片成人免费高清| av在线不卡免费看| 不卡视频在线观看| 色av一区二区| 欧美妇女性影城| 久久久久九九视频| 亚洲欧洲成人自拍| 亚洲麻豆国产自偷在线| 视频一区二区欧美| 国产在线精品免费av| 国产精品123区| 欧美日韩成人一区二区| 日韩欧美激情一区| 国产精品国产三级国产aⅴ入口| 一区在线观看视频| 天天影视涩香欲综合网 | 国产激情一区二区三区| 色婷婷久久一区二区三区麻豆| 欧美日韩三级视频| 中文字幕欧美日韩一区| 亚洲bt欧美bt精品777| 国产在线精品一区二区| 欧美日韩精品一区二区三区蜜桃| 日韩欧美久久久| 一区二区三区精品视频| 国内成+人亚洲+欧美+综合在线| www.欧美精品一二区| 精品久久99ma| 亚洲国产精品一区二区久久恐怖片 | 国产成人在线免费观看| 91精品国产综合久久精品图片 | 久久久精品人体av艺术| 亚洲国产精品精华液网站| 99re热这里只有精品免费视频| 日韩无一区二区| 青椒成人免费视频| 777久久久精品| 亚洲mv在线观看| 欧美肥大bbwbbw高潮| 夜夜亚洲天天久久| 欧美在线免费播放| 亚洲永久免费av| 欧美亚洲高清一区二区三区不卡| 国产精品成人免费在线| av电影在线观看一区| 亚洲少妇中出一区| 欧美在线观看禁18| 日韩精品免费专区| 欧美精品一区二区三区在线| 国产乱人伦偷精品视频免下载| 久久精品免费在线观看| 从欧美一区二区三区| 亚洲乱码国产乱码精品精的特点| 97久久超碰国产精品| 天天操天天干天天综合网| 日韩午夜三级在线| 99久久精品国产精品久久| 亚洲午夜一二三区视频| 久久综合色一综合色88| 91美女在线视频| 久久99蜜桃精品| 国产精一区二区三区| 国产精品久线观看视频| 777奇米四色成人影色区| 从欧美一区二区三区| 亚洲国产婷婷综合在线精品| 337p粉嫩大胆色噜噜噜噜亚洲| 91麻豆产精品久久久久久| 韩国成人在线视频| 天堂蜜桃一区二区三区| 中文字幕一区二区三区不卡在线| 欧美美女黄视频| 91浏览器入口在线观看| 99久久99久久精品国产片果冻| 免费成人在线观看| 五月激情六月综合| 亚洲黄色小说网站| 亚洲精品va在线观看| 亚洲欧美欧美一区二区三区| 欧美国产精品中文字幕| 欧美激情综合网|