?? main.h
字號:
#ifndef _MAIN_H_
#define _MAIN_H_
#include "710defs.h"
/*************************************
* LCD_IMAGE_T
* Structure for image width and height
*************************************/
typedef struct
{
unsigned int width;
unsigned int height;
} LCD_IMAGE_T;
/*************************************
* LCD_LOCATION_T
* Structure for location of image at panel
*************************************/
typedef struct
{
unsigned int StartX;
unsigned int StartY;
unsigned int EndX;
unsigned int EndY;
} LCD_LOCATION_T;
/**************************************
* LCD_DOWNSCALING_T
* Sturcture for image down-scaling function
* hor_n : Horizontal n value
* hor_m : Horizontal m value
* ver_n : Vertical n value
* ver_m : Vertical m value
*
* Horizontal down-scaling ratio : n/m
* Vertical down-scaling ratio : n/m
*************************************/
typedef struct
{
unsigned int hor_n;
unsigned int hor_m;
unsigned int ver_n;
unsigned int ver_m;
} LCD_DOWNSCALING_T;
/**************************************
* LCD_CROPPINGWINDOW_T
* Sturcture for image cropping window function
* window_x : cropping window x position
* window_y : cropping window y position
* winodw_width : cropping window width
* window_height : cropping window height
*************************************/
typedef struct
{
unsigned int window_x;
unsigned int window_y;
unsigned int window_width;
unsigned int window_height;
} LCD_CROPPINGWINDOW_T;
/***********************************
* Structure for Look-up Table
* copy from microwindows /include/inc/linux/fb.h */
typedef struct
{
int start; /* First entry */
int len; /* Number of entries */
unsigned short *red; /* Red values */
unsigned short *green;
unsigned short *blue;
short *transp; /* transparency, can be NULL */
}LCD_PALETTE_T;
/******************************/
typedef struct
{
unsigned int StartX;
unsigned int StartY;
unsigned int LibPlace;
unsigned short Color;
unsigned char * LetterChar;
unsigned char * LCDBuffer;
} LCDShowParameter;
/******************************/
extern U32 temp;
extern U32 i;
extern U32 key;
extern void LCDInit(void);
extern void LCDShow(LCD_IMAGE_T Size, LCD_LOCATION_T Location);
extern void LCDFIFOBufferSet(PUINT8 Buffer);
extern void LCDDisplayOn(void);
extern void LCDDisplayOff(void);
extern void KPIInit(void);
extern void LCDDotOne(U32 x, U32 y,U32 color, PUINT8 Buffer);
extern void LCDLine(U32 x1, U32 y1, U32 x2, U32 y2,U32 color,PUINT8 LBuffer);
extern void LCDCircle(U32 x_center, U32 y_center, U32 radius,U32 color, PUINT8 CBuffer);
extern void LetterGet(PUINT8 LetterChar, PUINT8 PBuffer, U32 LibPlace);
extern void LetterConvert(PUINT8 LPBuffer, PUINT8 LetterBuffer, U16 Color);
extern void LetterShow(U32 LetterX, U32 LetterY, PUINT8 LetterBuffer, PUINT8 LCDBuffer);
extern void StringShow(LCDShowParameter LCDShowPara);
extern void LCDOutputShow(LCDShowParameter LCDShowPara, U32 NUM);
extern void Timer0Init(void);
extern void Timer0On(void);
extern void Timer0Off(void);
extern void show1(void);
extern void show2(void);
extern void show3(void);
extern void Delay(U32 t);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -