📄 lcd.h
字号:
// SUNPLUS S+core IDE generated include file.#ifndef ANISPG290_LCDTEST_H_12382_292__INCLUDED_#define ANISPG290_LCDTEST_H_12382_292__INCLUDED_#include "..\SysLib_Basic\Sys_Global.h"//=======================================================================================void Init_TFTLcd( S32 Panel_Sel, S32 type, S32 mode, S32 fb_fmt );void LCD_Buffer_Setting(S32 fb0_addr, S32 fb1_addr, S32 fb2_addr);void TFT_Ctrl_Setting( S32 tft_en, S32 ver_scl, S32 hor_scl, S32 clk_sel, S32 int_enable );void Data_FMT_Setting( S32 tft_fmt, S32 fb_fmt );void Hor_Time_Setting( S32 hor_act, S32 hor_fblk, S32 hor_bblk, S32 hor_syncw );void Ver_Time_Setting( S32 ver_act, S32 ver_fblk, S32 ver_bblk, S32 ver_syncw );void Dis_area_Setting( S32 str_lno, S32 str_pno,S32 pix_num, S32 dumy_pix );void Data_seq_Setting( S32 tft_fmt, S32 yuv_fmt, S32 yuv_seq, S32 rgb_ol_seq, S32 rgb_el_seq );void spi_mst( S32 addr, S32 data);//=========================================================================================//#define QVGA_Data 0x0000//#define HVGA_Data 0x0001//#define VGA_Data 0x0002#define QVGA_Data 0x0000#define VGA_Data 0x0001#define HVGA_Data 0x0002//==========================================//// TFT LCD list ////==========================================////---- AUO TFT panel---------#define A036QN01 0#define A025DL01 1#define A025DL02 2#define A024CN02 3#define Topsun_42 4#define TDO_20 5#define AUO_6 6#define A036QN02 7#define GPLS024 8#define A025BN01 9#define TS35ND2501 10//==========================================//// Value define ////==========================================//// P_TFT_CTRL (0x8804_0000)#define TFT_DEN 0x0#define TFT_EN 0x1#define NO_SCL 0x0#define CK_27 0x0#define CK_135 0x1#define CK_675 0x2#define CK_3875 0x3// P_DATA_FMT (0x8804_0004)#define P_RGB 0x0#define S_RGB 0x1#define S_RGBDM 0x2#define CCIR601_M640 0x3 #define CCIR656_M640 0x4 #define CCIR601_M720 0x100#define CCIR656_M720 0x104// P_FB_ATTRIB (0X8804_0028)#define RGB 0x0#define RGB1555 0x1#define YUV 0x2#define Y4U4Y4V4 0x3#define YCbCr 0x10003// P_DATA_SEQ (0x8804_0040)#define dis_YUV 0x1#define dis_YCbCr 0x0#define Y0U0Y1V0 0x0#define Y0V0Y1U0 0x1#define U0Y0V0Y1 0x2#define V0Y0U0Y1 0x3#define Y1U0Y0V0 0x4#define Y1V0Y0U0 0x5#define U0Y1V0Y0 0x6#define V0Y1U0Y0 0x7#define O_RGB 0x0#define O_GBR 0x1#define O_BRG 0x2#define O_RBG 0x3#define O_BGR 0x4#define O_GRB 0x5#define E_RGB 0x0#define E_GBR 0x1#define E_BRG 0x2#define E_RBG 0x3#define E_BGR 0x4#define E_GRB 0x5// P_TFT_INT (0x8804_0050)#define INT_DEN 0x0#define INT_EN 0x1// P_TFT_DM (0x8804_00A0)#define DM_RGB 0x0#define DM_YUV 0x1// ==============================================// STN LCD// ==============================================// 0x8804_1000#define STN_DEN 0#define STN_EN 1#define BUSW_1 0#define BUSW_4 1#define BUSW_8 2// 0x8804_1004#define FR_175 0#define FR_117 1#define FR_87 2#define FR_70 3#define FR_58 4#define FR_50 5#define FR_43 6#define FR_39 7#define FR_35 8#define FR_31 9// 0x8804_1020#define BMODE 0#define CMODE 1// 0x8804_1024//#define MCOLOR 0//#define MBW 1// 0x8804_1028#define HOR_SD 1#define VER_SD 1// 0x8804_102c#define CSTN 0#define MCSTN 1#define DIS_OFF 0#define DIS_ON 1/*****Lcd define ******/#define PPU_SOFT 0x0000#define PPU_P2T_HARD 0x0010#define PPU_P2L_HARD 0x0020//#define PPU_P2L_HW4 0x0030#define LCD_SOFT 0x0000#define LCD_C2P_HARD 0x0100#define LCD_P2L_HARD 0x0200#define LCD_P2L_HW4 0x0300#endif //ANISPG290_LCDTEST_H_12382_292__INCLUDED_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -