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

📄 ddc.h

📁 WinCE 3.0 BSP, 包含Inter SA1110, Intel_815E, Advantech_PCM9574 等
💻 H
字号:
/*
 * $Workfile: ddc.h $
 * $Revision: 3 $
 * $Date: 4/07/00 8:49a $
 * $Modtime: 4/07/00 8:38a $
 * $Author: Sarma $
 *
 * Contains routines for GXVideo initialization and also to set modes.
 *
 * Copyright (c) 1998 National Semiconductor Corporation.
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information of National 
 * Semiconductor Corporation. ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into
 * with National Semiconductor Corporation.
 * This code is supplied as is.
 *
 */

/*
 *$Log: /CE/Platform/Nsc/Drivers/Video/gxvideo/base/ddc.h $
 * 
 * 3     4/07/00 8:49a Sarma
 * Removed Cyrix Corporation from the legal/confidentail information.
 * 
 * 2     7/20/99 2:09p Sarma
 * Added Vss history tags.
*/

#define DDC_720x400x70   0x800000
#define DDC_720x400x88   0x400000
#define DDC_640x480x60   0x200000
#define DDC_640x480x67   0x100000
#define DDC_640x480x72   0x080000
#define DDC_640x480x75   0x040000
#define DDC_800x600x56   0x020000
#define DDC_800x600x60   0x010000
#define DDC_800x600x72   0x008000
#define DDC_800x600x75   0x004000
#define DDC_832x624x75   0x002000
#define DDC_1024x768x87  0x001000
#define DDC_1024x768x60  0x000800
#define DDC_1024x768x70  0x000400
#define DDC_1024x768x75  0x000200
#define DDC_1280x1024x75 0x000100
#define DDC_1152x870x75  0x000080

typedef struct _Display_DDC_Modes{
    unsigned long ddc_mode;
    unsigned long ddi_mode;
}Display_DDC_Modes;

#if 0
typedef struct _SYSTEMTIME {
    WORD wYear;
    WORD wMonth;
    WORD wDayOfWeek;
    WORD wDay;
    WORD wHour;
    WORD wMinute;
    WORD wSecond;
    WORD wMilliseconds;
} SYSTEMTIME, *LPSYSTEMTIME;
#endif

#define DEFAULTDELAY    1   // mSec

class DDC1_2B {
public:
    DDC1_2B(unsigned char *);
    ~DDC1_2B();
    bool doesDisplaySupport(unsigned long mode);

private:
    //To be filled in by the 55xx code
    void SetSCL();
    void ClearSCL();
    void ClearSDA();
    void SetSDA();
    int GetSDA();
    int GetSCL();
    void startXfer();
    void endXfer();

    unsigned long displaySupports;
    unsigned char *displayData;
    unsigned int displayDataLength;

    void WaitSCLHigh();
    void getBlock(unsigned char *, int);
    void wait(int uSec=DEFAULTDELAY);
    int  ReadBit();
    void SendBit(bool);
    void StartBit();
    void StopBit();
    void Ack(bool);
    bool waitForAck();
    unsigned char ReadByte(bool);
    void SendByte(unsigned char);
    void requestData();
    void init();

    unsigned char *cxReg;

};

⌨️ 快捷键说明

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