⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xllp_lcd.h

📁 Windows CE 6.0 BSP for VOIP sample phone. Intel PXA270 platform.
💻 H
📖 第 1 页 / 共 2 页
字号:
void XllpLCD_Overlay2_Disable(P_XLLP_LCD_T pXllpLCD, P_XLLP_OVERLAY_T pXllpOverlay);
void XllpLCDLoadPalette(P_XLLP_LCD_T pXllpLCD);
void XllpLCDSuspend(P_XLLP_LCD_T pXllpLCD, int SuspendType);
void XllpLCDResume(P_XLLP_LCD_T pXllpLCD);
void XllpLCDSetDisplayPage(P_XLLP_LCD_T pXllpLCD, int page);
void XllpLCD_DMALength(P_XLLP_OVERLAY_T pXllpOverlay);

//

// Private API functions
void LCDSetupGPIOs(P_XLLP_LCD_T pXllpLCD);
void LCDInitController(P_XLLP_LCD_T pXllpLCD);
void LCDClearStatusReg(P_XLLP_LCD_T pXllpLCD);
void LCDEnableController(P_XLLP_LCD_T pXllpLCD);
void LCDInitController(P_XLLP_LCD_T pXllpLCD);


//
// LCD Controller Control Register 0 (LCCR0)
//
#define LCD_ENB     0x00000001
#define LCD_CMS     0x00000002
#define LCD_SDS     0x00000004
#define LCD_LDM     0x00000008
#define LCD_SFM     0x00000010
#define LCD_IUM     0x00000020
#define LCD_EFM     0x00000040
#define LCD_PAS     0x00000080
#define LCD_BLE     0x00000100
#define LCD_DPD     0x00000200
#define LCD_DIS     0x00000400
#define LCD_QDM     0x00000800
#define LCD_PDD(n)  ((n) << 12)
#define LCD_BM      0x00100000
#define LCD_OUM     0x00200000
#define LCD_LCDT    0x00400000
#define LCD_RDSTM   0x00800000
#define LCD_CMDIM   0x01000000
#define LCD_OUC     0x02000000
#define LCD_LDDALT  0x04000000

//
// LCD Controller Control Register 1 (LCCR1)
//
#define LCD_PPL(n)  ((n))
#define LCD_HSW(n)  ((n) << 10)
#define LCD_ELW(n)  ((n) << 16)
#define LCD_BLW(n)  ((n) << 24)

//
// LCD Controller Control Register 2 (LCCR2)
//
#define LCD_LPP(n)  ((n))
#define LCD_VSW(n)  ((n) << 10)
#define LCD_EFW(n)  ((n) << 16)
#define LCD_BFW(n)  ((n) << 24)

//
// LCD Controller Control Register 3 (LCCR3)
//
#define LCD_PCD(n)      ((n))
#define LCD_ACB(n)      ((n) << 8)
#define LCD_API(n)      ((n) << 16)
#define LCD_VSP         0x00100000
#define LCD_HSP         0x00200000
#define LCD_PCP         0x00400000
#define LCD_OEP         0x00800000
#define LCD_DPC         0x08000000
#define LCD_BPP(n)      ((((n) & 0x7) << 24) | (((n) & 0x8) << 26))
#define LCD_PDFOR(n)    ((n) << 30)

//
// LCD Controller Control Register 4 (LCCR4)
//
#define LCD_K1(n)       ((n))
#define LCD_K2(n)       ((n) << 3)
#define LCD_K3(n)       ((n) << 6)
#define LCD_PAL_FOR(n)  ((n) << 15)


//
// LCD Controller Control Register 5 (LCCR5)
//
#define LCD_SOFM1       0x00000001
#define LCD_SOFM2       0x00000002
#define LCD_SOFM3       0x00000004
#define LCD_SOFM4       0x00000008
#define LCD_SOFM5       0x00000010
#define LCD_SOFM6       0x00000020
#define LCD_EOFM1       0x00000100
#define LCD_EOFM2       0x00000200
#define LCD_EOFM3       0x00000400
#define LCD_EOFM4       0x00000800
#define LCD_EOFM5       0x00001000
#define LCD_EOFM6       0x00002000
#define LCD_BSM1        0x00010000
#define LCD_BSM2        0x00020000
#define LCD_BSM3        0x00040000
#define LCD_BSM4        0x00080000
#define LCD_BSM5        0x00100000
#define LCD_BSM6        0x00200000
#define LCD_IUM1        0x01000000
#define LCD_IUM2        0x02000000
#define LCD_IUM3        0x04000000
#define LCD_IUM4        0x08000000
#define LCD_IUM5        0x10000000
#define LCD_IUM6        0x20000000

//
// LCD Controller Overlay Control Register OVL1C1
//
#define LCD_PPL1(n)     ((n))
#define LCD_LPO1(n)     ((n) << 10)
#define LCD_BPP1(n)     ((n) << 20)
#define LCD_O1EN        0x80000000

//
// LCD Controller Overlay Control Register OVL1C2
//
#define LCD_O1XPOS(n)   ((n))
#define LCD_01YPOS(n)   ((n) << 10)

//
// LCD Controller Overlay Control Register OVL2C1
//
#define LCD_PPL2(n)     ((n))
#define LCD_LPO2(n)     ((n) << 10)
#define LCD_BPP2(n)     ((n) << 20)
#define LCD_O2EN        0x80000000

//
// LCD Controller Overlay Control Register OVL2C2
//
#define LCD_O2XPOS(n)   ((n))
#define LCD_O2YPOS(n)   ((n) << 10)
#define LCD_FOR(n)      ((n) << 20)

//
// LCD Controller Cursor Control Register (CCR)
//
#define LCD_CURMS(n)    ((n))
#define LCD_CXPOS(n)    ((n) << 5)
#define LCD_CYPOS(n)    ((n) << 15)
#define LCD_CEN         0x80000000

//
// LCD Controller Command Control Register (CMDCR)
//
#define LCD_SYNC_CNT(n) ((n))

//
// LCD Controller Panel Read Status Register (PRSR)
//
#define LCD_DATA(n)     ((n) & 0xff)
#define LCD_A0          0x00000100
#define LCD_ST_OK       0x00000200
#define LCD_CON_ST      0x00000400

//
// LCD Controller Status Register (LCSR0)
//
#define LCD_LDD         0x00000001
#define LCD_SOF0        0x00000002
#define LCD_BER         0x00000004
#define LCD_ABC         0x00000008
#define LCD_IU0         0x00000010
#define LCD_IU1         0x00000020
#define LCD_OU          0x00000040
#define LCD_QD          0x00000080
#define LCD_EOF0        0x00000100
#define LCD_BS0         0x00000200
#define LCD_SINT        0x00000400
#define LCD_RD_ST       0x00000800
#define LCD_CMD_INTR    0x00001000
#define LCD_BER_CH(n)   (((n) & 0x7FFFFFFF) >> 28)

//
// LCD Controller Status Register (LCSR1)
//
#define LCD_SOF1    0x00000001
#define LCD_SOF2    0x00000002
#define LCD_SOF3    0x00000004
#define LCD_SOF4    0x00000008
#define LCD_SOF5    0x00000010
#define LCD_SOF6    0x00000020
#define LCD_EOF1    0x00000100
#define LCD_EOF2    0x00000200
#define LCD_EOF3    0x00000400
#define LCD_EOF4    0x00000800
#define LCD_EOF5    0x00001000
#define LCD_EOF6    0x00002000
#define LCD_BS1     0x00010000
#define LCD_BS2     0x00020000
#define LCD_BS3     0x00040000
#define LCD_BS4     0x00080000
#define LCD_BS5     0x00100000
#define LCD_BS6     0x00200000
#define LCD_IU2     0x02000000
#define LCD_IU3     0x04000000
#define LCD_IU4     0x08000000
#define LCD_IU5     0x10000000
#define LCD_IU6     0x20000000

//
// LCD Controller Interrupt ID Register (LIIDR)
//
#define LCD_IFrameID(n) ((n))

//
// LCD Controller TMED RGB Seed Register (TRGBR)
//
#define LCD_TRS(n) ((n))
#define LCD_TGS(n) ((n) << 8)
#define LCD_TBS(n) ((n) << 16)

//
// LCD Controller TMED Control Register (TCR)
//
#define LCD_TM2S    0x00000001
#define LCD_TM1S    0x00000002
#define LCD_TM2En   0x00000004
#define LCD_TM1En   0x00000008
#define LCD_TVBS(n) ((n) << 4)
#define LCD_THBS(n) ((n) << 8)
#define LCD_TSCS(n) ((n) << 12)
#define LCD_TED     0x00004000

//
// LCD Controller DMA Frame Descriptor Address Registers (FDADRx)
//
#define LCD_FDADR(n)    ((n) & 0xFFFFFFF0)

//
// LCD Controller DMA Frame Source Address Registers (FSADRx)
//
#define LCD_FSADR(n)    ((n) & 0xFFFFFFF8)

//
// LCD Controller DMA Frame ID Registers (FIDRx)
//
#define LCD_FIDR(n)     ((n) & 0xFFFFFFF8)

//
// LCD Controller DMA Command Registers (LDCMDx)
//
#define LCD_Len(n)      ((n))
#define LCD_EOFInt      0x00200000
#define LCD_SOFInt      0x00400000
#define LCD_Pal         0x04000000

//
// LCD Controller DMA Frame Branch Registers (FBRx)
//
#define LCD_BRA         0x00000001
#define LCD_BINT        0x00000002
#define LCD_SrcAddr(n)  ((n) << 4)

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -