
SH7285/SH7286 USB Function Module
USB to Serial Conversion Application Note
REJ05B1152-0100/Rev.1.00 May 2008 Page 23 of 35
/* Configuration Descriptor */
/* Configuration Descriptor informations , Data length = 67Byte */
unsigned char configurationItem[] = {
/* Configuration Descriptor */
0x09, /* 0:bLength */
0x02, /* 1:bDescriptorType */
0x43, /* 2:wTotalLength(L) */ /* 43'h (=67) */
0x00, /* 3:wTotalLength(H) */
0x02, /* 4:bNumInterfaces */
0x01, /* 5:bConfigurationValue */
0x00, /* 6:iConfiguration */
0xC0, /* 7:bmAttributes */ /* self powered */
0x10, /* 8:MAXPower */
/* Interface Descriptor 1-0-0 [Communication Class] */
0x09, /* 0:bLength */
0x04, /* 1:bDescriptor */
0x00, /* 2:bInterfaceNumber */
0x00, /* 3:bAlternateSetting */
0x01, /* 4:bNumEndpoints */ /* support INT IN (= EP3) */
0x02, /* 5:bInterfaceClass */ /* Communication Interface Class */
0x02, /* 6:bInterfaceSubClass */ /* Abstruct Control Model */
0x01, /* 7:bInterfaceProtocol */ /* Common AT commands */
0x00, /* 8:iInterface */
/* Class-Specific Configuration Descriptors */
/* Header Functional Descriptor */
0x05, /* 0:length of this desc. */
0x24, /* 1:CS_INTERFACE */
0x00, /* 2:Header Functional Descr. */
0x10, /* 3:bcdCDC Rel. 1.10 */
0x01, /* 4:bcdCDC Rel. 1.10 */
/* Abstract Control Management Functional Descriptor */
0x04, /* 0:length of this desc. */
0x24, /* 1:CS_INTERFACE */
0x02, /* 2:Abstr.Contr.Managm. F.D. */
0x06, /* 3:bmCapabilities */ /* support Send Break, Set Line Coding,
Set Control Line State, Get Line Coding */
/* Union Functional Descriptor */
0x05, /* 0:length of this desc. */
0x24, /* 1:CS_INTERFACE */
0x06, /* 2:Union Functional Descr. */
0x00, /* 3:bMasterInterface */
0x01, /* 4:bSlaveInterface0 */
/* Call Management Functional Descriptor */
0x05, /* 0:length of this desc. */
0x24, /* 1:CS_INTERFACE */
0x01, /* 2:Call Managment F.D. */
0x03, /* 3:bmCapabilities */
0x01, /* 4:bDataInterface */
/* Endpoint Descriptor 1-0-0-0 */
0x07, /* 0:bLength */
0x05, /* 1:bDescriptorType */
0x83, /* 2:bEndpointAddress */ /* IN, number = 3 */
0x03, /* 3:bmAttribute */
0x08, /* 4:wMAXPacketSize_lo */
0x00, /* 5:wMAXPacketSize_hi */
0x10, /* 6:bInterval */
Figure 3.3 Configuration Descriptor Sample (1/2)
Komentarze do niniejszej Instrukcji