megconfig.h
来自「一款SmartPhone的驱动代码」· C头文件 代码 · 共 77 行
H
77 行
/***************************************************************
* Copyright(C) 2003--2006
* Epson Electronic Technology Development (ShenZhen) co., LTD
* All rights reserved.
*
* File name: MGECONFIG.h
* Author: Eric ding
* Dept: Electronic Enginerring Department
* Date: 03/19/2003
* Descriptions: the configure information about 137xx .
* Modified:
*
***************************************************************/
#ifndef __MEGCONFIG_H__
#define __MEGCONFIG_H__
#define CHIP_ID_NUM "13712"
#define REG0044_LCD1_HDP_START_POS_VALUE 0x0009
#define REG004E_LCD1_VDP_START_POS_VALUE 0x000C
#define MAIN_WINDOW_ADDRESS 0x10000
#define PIP_WINDOW_ADDRESS 0x24B00
#define NUM_REGS (0xFF+7+1+1) // All LCD regs + duplicates + delay + END
typedef struct tagRegStruct
{
unsigned short Index; // Register index --- ADDRESS
unsigned short Value; // Register data --- DATA
} REG_STRUCT, *PREG_STRUCT;
typedef struct tagHalStruct
{
// the structure information
char szIdString[16]; // HAL ID string
char szConfigString[256]; // Configuration description
unsigned short wSize; // Sizeof this structure
unsigned short wHalCRC; // CRC of the rest of structure
// the chipset information
char szChipId[8]; // SED chip ID
unsigned short wDetectEndian; // Endian detect (LE=0x1234)
unsigned short wReserved; // Reserved for alignment
unsigned long dwClkI; // CLKI frequency (in Hz)
unsigned long dwInternalOSC; // Internal OSC frequency (in Hz)
unsigned long dwRegisterAddress; // Physical register base_address
unsigned long dwMemoryAddress; // Physical memory base_address
unsigned short wLcdPowerdownTime; // LCD power off time (in ms)
unsigned short wLcdPowerupTime; // LCD power on time (in ms)
unsigned long wGPIOLcdPowerPin; // GPIO LCD power pin mask bit
unsigned short wCam1Width, wCam1Height; // Camera1 expected image size
unsigned short wCam2Width, wCam2Height; // Camera2 expected image size
unsigned long wJPEGFIFOSize; // Space reserved for JPEG FIFO
unsigned long dwRequiredVRAM; // Required VRAM (in bytes)
unsigned long dwFlags; // Hal information flags
REG_STRUCT Regs[NUM_REGS]; // Initialization registers
} HAL_STRUCT,*PHAL_STRUCT;
typedef struct tagLutStruct
{
unsigned char lut1[256*3]; // LUT1 has 256 elements
} LUT_STRUCT, *PLUT_STRUCT;
extern HAL_STRUCT HalInfo; // Export HalInfo for application usage
extern LUT_STRUCT LutInfo;
#endif // __MEGCONFIG_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?