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

📄 faraday_code.txt

📁 FIC8120方案的 StartCell_Driver
💻 TXT
📖 第 1 页 / 共 2 页
字号:

xdata unsigned char Descriptor_Table[]={
//Device Descriptor: from 0X00
   0X12,     //bLength
   0X01,     //bDescriptorType
   0X00,     //bcdUSB
   0X02,
   0X00,     //bDeviceClass
   0X00,     //bDeviceSubClass
   0X00,     //bDeviceProtocol
   0X40,     //bMaxPacketSize0
   0X10,     //idVendor
   0X23,
   0X78,     //idProduct
   0X56,
   0X01,     //bcdDevice
   0X10,     //iManufacturer
   0X20,     //iProduct
   0X00,     //iSerialNumber
   0X01,     //bNumConfigurations

//Configuration Descriptor: from 0X11
   0X09,     //bLength
   0X02,     //bDescriptorType
   0X27,     //wTotalLength
   0X01,     //bNumInterface
   0X01,     //bConfigurationValue
   0X30,     //iConfiguration
   0XC0,     //bmAttribute
   0X00,     //iMaxPower

//Interface Descriptor: from 0X19
   0X09,     //bLength
   0X04,     //bDescriptorType
   0X00,     //bInterfaceNumber
   0X00,     //bAlternateSetting
   0X04,     //bNumEndpoints
   0X00,     //bInterfaceClass
   0X00,     //bInterfaceSubClass
   0X00,     //bInterfaceProtocol
   0X40,     //iInterface

//Endpoint 00 Descriptor: from 0X22
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X81,     //bEndpointAddress
   0X02,     //bmAttributes
   0X00,     //wMaxPacketSize
   0X02,
   0X00,     //bInterval

//Endpoint 01 Descriptor: from 0X29
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X02,     //bEndpointAddress
   0X02,     //bmAttributes
   0X00,     //wMaxPacketSize
   0X02,
   0X00,     //bInterval

//Endpoint 02 Descriptor: from 0X30
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X83,     //bEndpointAddress
   0X03,     //bmAttributes
   0X40,     //wMaxPacketSize

//Endpoint 03 Descriptor: from 0X35
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X04,     //bEndpointAddress
   0X03,     //bmAttributes
   0X40,     //wMaxPacketSize
   0X01,     //bInterval

//Interface Descriptor: from 0X3B
   0X09,     //bLength
   0X04,     //bDescriptorType
   0X00,     //bInterfaceNumber
   0X00,     //bAlternateSetting
   0X01,     //bNumEndpoints
   0X03,     //bInterfaceClass
   0X01,     //bInterfaceSubClass
   0X02,     //bInterfaceProtocol
   0X02,     //iInterface

//Endpoint 00 Descriptor: from 0X44
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X01,     //bEndpointAddress
   0X02,     //bmAttributes
   0X00,     //wMaxPacketSize
   0X02,
   0X00,     //bInterval

//Qualifier Descriptor: from 0X4B
   0X0A,     //bLength
   0X09,     //bDescriptorType
   0X00,     //bcdUSB
   0X02,
   0X00,     //bDeviceClass
   0X40,     //bMaxPacketSize0
   0X01,     //bNumConfigurations
   0X09,     //bReserved

//Other Speed Configuration Descriptor: from 0X53
   0X09,     //bLength
   0X07,     //bDescriptorType
   0X27,     //wTotalLength
   0X01,     //bNumInterfaces
   0X01,     //bConfigurationValue
   0X30,     //iConfiguration
   0XC0,     //bmAttributes
   0X00,     //bMaxPower

//Interface Descriptor: from 0X5B
   0X09,     //bLength
   0X04,     //bDescriptorType
   0X00,     //bInterfaceNumber
   0X00,     //bAlternateSetting
   0X04,     //bNumEndpoints
   0X00,     //bInterfaceClass
   0X00,     //bInterfaceSubClass
   0X00,     //bInterfaceProtocol
   0X40,     //iInterface

//Endpoint 00 Descriptor: from 0X64
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X81,     //bEndpointAddress
   0X02,     //bmAttributes
   0X40,     //wMaxPacketSize
   0X00,     //bInterval

//Endpoint 01 Descriptor: from 0X6A
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X02,     //bEndpointAddress
   0X02,     //bmAttributes
   0X40,     //wMaxPacketSize
   0X00,     //bInterval

//Endpoint 02 Descriptor: from 0X70
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X83,     //bEndpointAddress
   0X03,     //bmAttributes
   0X40,     //wMaxPacketSize

//Endpoint 03 Descriptor: from 0X75
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X04,     //bEndpointAddress
   0X03,     //bmAttributes
   0X40,     //wMaxPacketSize
   0X01,     //bInterval

//Interface Descriptor: from 0X7B
   0X09,     //bLength
   0X04,     //bDescriptorType
   0X00,     //bInterfaceNumber
   0X00,     //bAlternateSetting
   0X01,     //bNumEndpoints
   0X03,     //bInterfaceClass
   0X01,     //bInterfaceSubClass
   0X02,     //bInterfaceProtocol
   0X02,     //iInterface

//Endpoint 00 Descriptor: from 0X84
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X01,     //bEndpointAddress
   0X02,     //bmAttributes
   0X00,     //wMaxPacketSize
   0X02,
   0X00,     //bInterval

//Interface Descriptor: from 0X8B
   0X09,     //bLength
   0X04,     //bDescriptorType
   0X00,     //bInterfaceNumber
   0X00,     //bAlternateSetting
   0X01,     //bNumEndpoints
   0X03,     //bInterfaceClass
   0X01,     //bInterfaceSubClass
   0X02,     //bInterfaceProtocol
   0X02,     //iInterface

//Endpoint 00 Descriptor: from 0X94
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X01,     //bEndpointAddress
   0X02,     //bmAttributes
   0X00,     //wMaxPacketSize
   0X02,
   0X00,     //bInterval

//Interface Descriptor: from 0X9B
   0X09,     //bLength
   0X04,     //bDescriptorType
   0X00,     //bInterfaceNumber
   0X00,     //bAlternateSetting
   0X01,     //bNumEndpoints
   0X03,     //bInterfaceClass
   0X01,     //bInterfaceSubClass
   0X02,     //bInterfaceProtocol
   0X02,     //iInterface

//Endpoint 00 Descriptor: from 0XA4
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X01,     //bEndpointAddress
   0X02,     //bmAttributes
   0X00,     //wMaxPacketSize
   0X02,
   0X00,     //bInterval

//LANG ID Descriptor: from 0XAB
   0X04,     //bLength
   0X03,     //bDescriptorType
   0X09,     //bLang
   0X04,

//String Descriptor: from 0XAF
   0X32,     //bLength,from 0XAF
   0X03,     //bDescriptorType
   0X46, 0,  //F
   0X41, 0,  //A
   0X52, 0,  //R
   0X41, 0,  //A
   0X44, 0,  //D
   0X41, 0,  //A
   0X59, 0,  //Y
   0X20, 0,  // 
   0X54, 0,  //T
   0X65, 0,  //e
   0X63, 0,  //c
   0X68, 0,  //h
   0X6E, 0,  //n
   0X6F, 0,  //o
   0X6C, 0,  //l
   0X6F, 0,  //o
   0X67, 0,  //g
   0X79, 0,  //y
   0X20, 0,  // 
   0X43, 0,  //C
   0X6F, 0,  //o
   0X72, 0,  //r
   0X70, 0,  //p
   0X2E, 0,  //.

   0X10,     //bLength,from 0XE1
   0X03,     //bDescriptorType
   0X46, 0,  //F
   0X55, 0,  //U
   0X53, 0,  //S
   0X42, 0,  //B
   0X32, 0,  //2
   0X30, 0,  //0
   0X30, 0,  //0

   0X2E,     //bLength,from 0XF1
   0X03,     //bDescriptorType
   0X45, 0,  //E
   0X56, 0,  //V
   0X2D, 0,  //-
   0X42, 0,  //B
   0X6F, 0,  //o
   0X61, 0,  //a
   0X72, 0,  //r
   0X64, 0,  //d
   0X5F, 0,  //_
   0X43, 0,  //C
   0X6F, 0,  //o
   0X6E, 0,  //n
   0X66, 0,  //f
   0X69, 0,  //i
   0X67, 0,  //g
   0X75, 0,  //u
   0X72, 0,  //r
   0X61, 0,  //a
   0X74, 0,  //t
   0X69, 0,  //i
   0X6F, 0,  //o
   0X6E, 0,  //n

   0X26,     //bLength,from 0X11F
   0X03,     //bDescriptorType
   0X45, 0,  //E
   0X56, 0,  //V
   0X2D, 0,  //-
   0X42, 0,  //B
   0X6F, 0,  //o
   0X61, 0,  //a
   0X72, 0,  //r
   0X64, 0,  //d
   0X5F, 0,  //_
   0X49, 0,  //I
   0X6E, 0,  //n
   0X74, 0,  //t
   0X65, 0,  //e
   0X72, 0,  //r
   0X66, 0,  //f
   0X61, 0,  //a
   0X63, 0,  //c
   0X65, 0,  //e

   0X10,     //bLength,from 0X145
   0X03,     //bDescriptorType
   0X50, 0,  //P
   0X72, 0,  //r
   0X69, 0,  //i
   0X6E, 0,  //n
   0X74, 0,  //t
   0X65, 0,  //e
   0X72, 0,  //r

   0X1E,     //bLength,from 0X155
   0X03,     //bDescriptorType
   0X44, 0,  //D
   0X69, 0,  //i
   0X67, 0,  //g
   0X69, 0,  //i
   0X74, 0,  //t
   0X61, 0,  //a
   0X6C, 0,  //l
   0X5F, 0,  //_
   0X43, 0,  //C
   0X61, 0,  //a
   0X6D, 0,  //m
   0X65, 0,  //e
   0X72, 0,  //r
   0X61, 0,  //a

   0X10,     //bLength,from 0X173
   0X03,     //bDescriptorType
   0X53, 0,  //S
   0X74, 0,  //t
   0X6F, 0,  //o
   0X72, 0,  //r
   0X61, 0,  //a
   0X67, 0,  //g
   0X65, 0,  //e

   0X0E,     //bLength,from 0X183
   0X03,     //bDescriptorType
   0X4D, 0,  //M
   0X65, 0,  //e
   0X6D, 0,  //m
   0X6F, 0,  //o
   0X72, 0,  //r
   0X79, 0   //y

};

xdata unsigned char Alt_Descriptor_Table[]={
//Qualifier Descriptor: from 0X00
   0X0A,     //bLength
   0X09,     //bDescriptorType
   0X00,     //bcdUSB
   0X02,
   0X00,     //bDeviceClass
   0X40,     //bMaxPacketSize0
   0X01,     //bNumConfigurations
   0X09,     //bReserved

//Other Speed Configuration Descriptor: from 0X08
   0X09,     //bLength
   0X07,     //bDescriptorType
   0X27,     //wTotalLength
   0X01,     //bNumInterfaces
   0X01,     //bConfigurationValue
   0X30,     //iConfiguration
   0XC0,     //bmAttributes
   0X00,     //bMaxPower

//Interface Descriptor: from 0X10
   0X09,     //bLength
   0X04,     //bDescriptorType
   0X00,     //bInterfaceNumber
   0X00,     //bAlternateSetting
   0X04,     //bNumEndpoints
   0X00,     //bInterfaceClass
   0X00,     //bInterfaceSubClass
   0X00,     //bInterfaceProtocol
   0X40,     //iInterface

//Endpoint 00 Descriptor: from 0X19
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X81,     //bEndpointAddress
   0X02,     //bmAttributes
   0X40,     //wMaxPacketSize
   0X00,     //bInterval

//Endpoint 01 Descriptor: from 0X1F
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X02,     //bEndpointAddress
   0X02,     //bmAttributes
   0X40,     //wMaxPacketSize
   0X00,     //bInterval

//Endpoint 02 Descriptor: from 0X25
   0X07,     //bLength
   0X05,     //bDescriptorType
   0X83,     //bEndpointAddress
   0X03,     //bmAttributes
   0X40,     //wMaxPacketSize

//Endpoint 03 Descriptor: from 0X2A

⌨️ 快捷键说明

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