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

📄 infodata.h

📁 dz3000_51.0.0.4.rar
💻 H
📖 第 1 页 / 共 5 页
字号:
/*++

Copyright (c) 2001 Sunplus Technology Co., Ltd.

Module Name:

        infodata.h

Abstract:

        product information descriptor

Environment:

        Keil C51 Compiler

Revision History:

        10/05/2001      cch    created

--*/

//------------------------------------------------------------------------------
//Constant
//------------------------------------------------------------------------------
//---- Get imformation Size     -------
#define K_ProductDescriptorSize         ((USHORT) 0x0040)
#define K_SensorSizeInformation         ((USHORT) 0x002c)
#define K_DscSizeMapping                ((USHORT) 0x0040)
#define K_ClipSizeMapping               ((USHORT) 0x0040)
#define K_PcCameraSizeMapping1          ((USHORT) 0x0040)
//patch4.5@richie@pc size
#define K_PcCameraSizeMapping2          ((USHORT) 0x0040)

//patch4.2@richie@0521
#ifdef ICM107B
//---- Descriptor Content -------------
//Product Descriptor
//IC Media 107B sensor
//version4.0 richie@ps0503
code UCHAR ProductDescriptor1[] =
{
        //-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
        0x40,                   //bLength: 0x40 byte
        0x01,                   //bDescriptorType: Sensor information
        0x02,                   //1:CCD,  2:CMOS
        0x04,                   //1:CIF,  2:VGA,  3:800k,  4:1.0M,  5:1.3M
				//6:2.0M, 7:3.0M, 8:4.0M

                                //8 Byte  :
                                //byte 1~7 :DSC size index
                                //byte 8   :DSC default Size index
                                //
        0x08,                   //byte1:dsc size index 8 = 1152 x 864
        0x00,                   //byte2:               0 = no use    
        0x00,                   //byte3:               0 = no use     
        0x00,                   //byte4:               0 = no use
        0x00,                   //byte5:               0 = no use
        0x00,                   //byte6:               0 = no use
        0x00,                   //byte7:               0 = no use
        0x01,                   //byte8:dsc size default size : 1 (1152 x 864)

                                //8 Byte  :
                                //byte 1~7 :Video clip size index
                                //byte 8   :Video Clip default Size index
                                //
        0x04,                   //byte1:clip size index 4 = 320 x 240
        0x00,                   //byte2:                0 = no use   
        0x00,                   //byte3:                0 = no use     
        0x00,                   //byte4:                0 = no use
        0x00,                   //byte5:                0 = no use
        0x00,                   //byte6:                0 = no use
        0x00,                   //byte7:                0 = no use
        0x01,                   //byte8:clip size default size : 1 (320 x 240)

                                //8 Byte  :
                                //byte 1~7 :pc camera size index
                                //byte 8   :pc camera default Size index
                                //
        0x0E,                   //byte1:pc camera size index 14 = 464 x 420
        0x09,                   //byte2:                     9 = 320 x 420 
        0x04,                   //byte3:                     4 = 160 x 420
        0x00,                   //byte4:                     0 = no use
        0x00,                   //byte5:                     0 = no use
        0x00,                   //byte6:                     0 = no use
        0x00,                   //byte7:                     0 = no use
        0x01,                   //byte8:pc camera size default size : 1 (320 x 240)

	//sensor name description: 20 Byte
	'I','C',' ','M','e','d','i','a',' ','1','0','7','B',  0,  0,  0,  0,  0,  0,  0,

	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
};

//version4.0 richie@ps0503
code UCHAR ProductDescriptor2[] =
{
        //-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
        0x40,                   //bLength: 0x40 byte
        0x01,                   //bDescriptorType: Sensor information
        0x02,                   //1:CCD,  2:CMOS
        0x04,                   //1:CIF,  2:VGA,  3:800k,  4:1.0M,  5:1.3M
				//6:2.0M, 7:3.0M, 8:4.0M

                                //8 Byte  :
                                //byte 1~7 :DSC size index
                                //byte 8   :DSC default Size index
                                //
        0x08,                   //byte1:dsc size index 8 = 1152 x 864
        0x00,                   //byte2:               0 = no use    
        0x00,                   //byte3:               0 = no use     
        0x00,                   //byte4:               0 = no use
        0x00,                   //byte5:               0 = no use
        0x00,                   //byte6:               0 = no use
        0x00,                   //byte7:               0 = no use
        0x01,                   //byte8:dsc size default size : 1 (1152 x 864)

                                //8 Byte  :
                                //byte 1~7 :Video clip size index
                                //byte 8   :Video Clip default Size index
                                //
        0x04,                   //byte1:clip size index 4 = 320 x 240
        0x00,                   //byte2:                0 = no use   
        0x00,                   //byte3:                0 = no use     
        0x00,                   //byte4:                0 = no use
        0x00,                   //byte5:                0 = no use
        0x00,                   //byte6:                0 = no use
        0x00,                   //byte7:                0 = no use
        0x01,                   //byte8:clip size default size : 1 (320 x 240)

                                //8 Byte  :
                                //byte 1~7 :pc camera size index
                                //byte 8   :pc camera default Size index
                                //
        0x09,                   //byte1:pc camera size index 9 = 464 x 480
        0x04,                   //byte2:                     4 = 320 x 336
        0x03,                   //byte3:                     3 = 160 x 336
        0x00,                   //byte4:                     0 = no use
        0x00,                   //byte5:                     0 = no use
        0x00,                   //byte6:                     0 = no use
        0x00,                   //byte7:                     0 = no use
        0x01,                   //byte8:pc camera size default size : 1 (320 x 240)

	//sensor name description: 20 Byte
	'I','C',' ','M','e','d','i','a',' ','1','0','7','B',  0,  0,  0,  0,  0,  0,  0,

	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
};
#endif
//patch4.2@richie@0521
#ifdef ICM108
//---- Descriptor Content -------------
//Product Descriptor
//OmniVision 9620 1.3M CMOS
//version4.2 richie@ps0503
code UCHAR ProductDescriptor1[] =
{
	//-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
	0x40, 0x01, 0x02, 0x05,

	//byte 1~7 :DSC size index		byte 8 :DSC default Size index
        0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :Video clip size index	byte 8 :Video Clip default Size index
        0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :pc camera size index	byte 8 :pc camera default Size index
        0x0E, 0x09, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01,

	//sensor name description: 20 Byte
	'I','C',' ','M','e','d','i','a',' ','1','0','8','B',  0,  0,  0,  0,  0,  0,  0,
	
	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
};






//version4.2 richie@ps0503
code UCHAR ProductDescriptor2[] =
{
        //-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
	0x40, 0x01, 0x02, 0x05,

	//byte 1~7 :DSC size index		byte 8 :DSC default Size index
        0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :Video clip size index	byte 8 :Video Clip default Size index
        0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
        //patch4.2@cytsai@0529
	//byte 1~7 :pc camera size index	byte 8 :pc camera default Size index
        0x09, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01,

	//sensor name description: 20 Byte
	'I','C',' ','M','e','d','i','a',' ','1','0','8','B',  0,  0,  0,  0,  0,  0,  0,

	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
};
#endif
//patch4.4@andrew@ICM109
#ifdef ICM109
//---- Descriptor Content -------------
//Product Descriptor
//OmniVision 9620 1.3M CMOS
//version4.2 richie@ps0503
code UCHAR ProductDescriptor1[] =
{
	//-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
	0x40, 0x01, 0x02, 0x05,

	//byte 1~7 :DSC size index		byte 8 :DSC default Size index
        0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :Video clip size index	byte 8 :Video Clip default Size index
        0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :pc camera size index	byte 8 :pc camera default Size index
        0x0E, 0x09, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01,

	//sensor name description: 20 Byte
	'I','C',' ','M','e','d','i','a',' ','1','0','9',' ',  0,  0,  0,  0,  0,  0,  0,
	
	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
};






//version4.2 richie@ps0503
code UCHAR ProductDescriptor2[] =
{
        //-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
	0x40, 0x01, 0x02, 0x05,

	//byte 1~7 :DSC size index		byte 8 :DSC default Size index
        0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :Video clip size index	byte 8 :Video Clip default Size index
        0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
        //patch4.2@cytsai@0529
	//byte 1~7 :pc camera size index	byte 8 :pc camera default Size index
        0x09, 0x06, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01,

	//sensor name description: 20 Byte
	'I','C',' ','M','e','d','i','a',' ','1','0','9',' ',  0,  0,  0,  0,  0,  0,  0,

	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
};
#endif

//patch4.2@richie@0521
#ifdef OV13
//---- Descriptor Content -------------
//Product Descriptor
//OmniVision 9620 1.3M CMOS
//version4.2 richie@ps0503
code UCHAR ProductDescriptor1[] =
{
	//-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
	0x40, 0x01, 0x02, 0x05,

	//byte 1~7 :DSC size index		byte 8 :DSC default Size index
        0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :Video clip size index	byte 8 :Video Clip default Size index
        0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :pc camera size index	byte 8 :pc camera default Size index
        0x0F, 0x0A, 0x05, 0x00, 0x00, 0x00, 0x00, 0x01,

	//sensor name description: 20 Byte
        'O','m','n','i','V','i','s','i','o','n',' ','9','6','2','0',  0,  0,  0,  0,  0,

	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
        //'D','i','g','i','t','a','l',' ','C','a','m','e','r','a',  0,  0,
};






//version4.2 richie@ps0503
code UCHAR ProductDescriptor2[] =
{
        //-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
	0x40, 0x01, 0x02, 0x05,

	//byte 1~7 :DSC size index		byte 8 :DSC default Size index
        0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :Video clip size index	byte 8 :Video Clip default Size index
        0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
        //patch4.2@cytsai@0529
	//byte 1~7 :pc camera size index	byte 8 :pc camera default Size index
        0x09, 0x05, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01,

	//sensor name description: 20 Byte
        'O','m','n','i','V','i','s','i','o','n',' ','9','6','2','0',  0,  0,  0,  0,  0,

	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
       // 'D','i','g','i','t','a','l',' ','C','a','m','e','r','a',  0,  0,
};
#endif
//patch4.2@richie@0521
#ifdef OV2610
//---- Descriptor Content -------------
//Product Descriptor
//Panasonic 2.0M Interlace CCD sensor
//version4.2 richie@ps0503
code UCHAR ProductDescriptor1[] =
{
	//-------------------------------------------------------------------
        //TotalLength = 0x0040 byte
        //-------------------------------------------------------------------

        //Product (0x40 byte)
	0x40, 0x01, 0x02, 0x06,

	//byte 1~7 :DSC size index		byte 8 :DSC default Size index
        0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :Video clip size index	byte 8 :Video Clip default Size index
        0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,

	//byte 1~7 :pc camera size index	byte 8 :pc camera default Size index
        0x0C, 0x07, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01,

	//sensor name description: 20 Byte
        'O','m','n','i','v','i','s','i','o','n',' ','2','.','0','M',' ',  0,  0,  0,  0,

	//idvendor description: 16 Byte
        'S','u','n','p','l','u','s',' ','C','A','5','3','3','A',  0,  0,
};

⌨️ 快捷键说明

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