?? usbstr.h
字號:
/*++
Copyright (c) 2001 Sunplus Technology Co., Ltd.
Module Name:
usbstr.h
Abstract:
Header file related to USB string
Environment:
Keil C51 Compiler
Revision History:
08/28/2001 Chi-Yeh Tsai created
--*/
//------------------------------------------------------------------------------
//Constant
//------------------------------------------------------------------------------
#define K_LANGUAGE_ID_STRING_SIZE 0x0004
code UCHAR K_LanguageIdString[] =
{
//----------
//0x04 Bytes
//----------
0x04, //bLength
0x03, //bDescriptorType: STRING
0x09, 0x04, //bString: English (US)
};
#if 0
#define K_MANUFACTURER_STRING_SIZE 0x0020 //wendy@2004/8/5//
code UCHAR K_ManufacturerString[] =
{
//----------
//0x20 Bytes
//----------
0x20, //bLength
0x03, //bDescriptorType: STRING
'D', 0x00, //bString: Sunplus Icatch SPCA533
'i', 0x00,
'g', 0x00,
'i', 0x00,
't', 0x00,
'a', 0x00,
'l', 0x00,
' ', 0x00,
'C', 0x00,
'o', 0x00,
' ', 0x00,
'L', 0x00,
't', 0x00,
'd', 0x00,
' ', 0x00,
};
#else
#define K_MANUFACTURER_STRING_SIZE 0x0040 //wendy@2004/8/5//
code UCHAR K_ManufacturerString[] =
{
//----------
//0x20 Bytes
//----------
0x20, //bLength
0x03, //bDescriptorType: STRING
'S', 0x00, //bString: Sunplus Icatch SPCA533
'u', 0x00,
'n', 0x00,
'p', 0x00,
'l', 0x00,
'u', 0x00,
's', 0x00,
};
#endif
#if 0
#define K_PRODUCT_STRING_SIZE 0x0030//wendy@2004/8/5// drive name
code UCHAR K_ProductString[] =
{
//----------
//0x30 Bytes
//----------
0x30, //bLength
0x03, //bDescriptorType: STRING
'D', 0x00, //bString: Sunplus Icatch SPCA533
'i', 0x00,
'g', 0x00,
'i', 0x00,
't', 0x00,
'a', 0x00,
'l', 0x00,
' ', 0x00,
'S', 0x00,
'P', 0x00,
'C', 0x00,
'A', 0x00,
'5', 0x00,
'3', 0x00,
'3', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
};
#else
#define K_PRODUCT_STRING_SIZE 0x0030 //wendy@2004/8/5//
code UCHAR K_ProductString[] =
{
//----------
//0x30 Bytes
//----------
0x10, //bLength
0x03, //bDescriptorType: STRING
'V', 0x00, //bString: Sunplus Icatch SPCA533
'i', 0x00,
'e', 0x00,
'w', 0x00,
' ', 0x00,
'S', 0x00,
'l', 0x00,
'i', 0x00,
'm', 0x00,
};
#endif
#define K_SERIAL_NUMBER_STRING_SIZE 0x0012
code UCHAR K_SerialNumberString[] =
{
//----------
//0x12 Bytes
//----------
0x12, //bLength
0x03, //bDescriptorType: STRING
'0', 0x00, //bString: 01.00.00
'1', 0x00,
'.', 0x00,
'0', 0x00,
'0', 0x00,
'.', 0x00,
'0', 0x00,
'0', 0x00,
};
#if 1
#define K_CONFIGURATION_STRING_SIZE 0x0020
code UCHAR K_ConfigurationString[] =
{
//----------
//0x20 Bytes
//----------
0x20, //bLength
0x03, //bDescriptorType: STRING
'c', 0x00, //bString: configuration
'o', 0x00,
'n', 0x00,
'f', 0x00,
'i', 0x00,
'g', 0x00,
'u', 0x00,
'r', 0x00,
'a', 0x00,
't', 0x00,
'i', 0x00,
'o', 0x00,
'n', 0x00,
' ', 0x00,
' ', 0x00,
};
#define K_INTERFACE_STRING_SIZE 0x0020
code UCHAR K_InterfaceString[] =
{
//----------
//0x20 Bytes
//----------
0x20, //bLength
0x03, //bDescriptorType: STRING
'i', 0x00, //bString: interface
'n', 0x00,
't', 0x00,
'e', 0x00,
'r', 0x00,
'f', 0x00,
'a', 0x00,
'c', 0x00,
'e', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
' ', 0x00,
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -