LZ85194
IrDA Control Peripheral Engine User
’
s Guide
67
[desc.c]
/*****************************************************************************
*
*
desc.c : Descriptor Information File
*
*****************************************************************************/
char DeviceDescriptor[] = {
0x12,
/* Size of this descriptor in bytes
0x01,
/* DEVICE Descriptor Type
0x00, 0x01, /* USB Specification release Number in Binary-Coded Decimal
0x00,
/* Class code (assigned by the USB)
0x00,
/* Subclass code (assigned by the USB)
0x00,
/* Protocol code (assigned by the USB)
0x08,
/* Maximum packet size for endpoint zero
0xDD, 0x04, /* Vendor ID (assigned by the USB)
0x34, 0x12, /* Product ID (assigned by the manufacturer)
0x00, 0x01, /* Device release number in binary-coded decimal
0x00,
/* Index of string descriptor describing manufacturer
0x00,
/* Index of string descriptor describing product
0x00,
/* Index of string descriptor describing the device's serial number
0x01
/* Number of possible configurations
};
char ConfigDescriptor[] = {
0x09,
/* Size of this descriptor in bytes
0x02,
/* CONFIGURATION Descriptor Type
0x7a, 0x00, /* Configuration descriptor length + Report descriptors length
0x02,
/* Number of interfaces supported by this configuration
0x01,
/* Value to use as an argument to the SetConfiguratino()
request to select this configuration
0x00,
/* Index of string descriptor describing this configuration
0x60,
/* Configuration characteristics (see USB Spec.)
0x01
/* Maximum power consumption of USB device from the bus
in this specific configuration when the device is fully operational */
};
char IrDA_CDescriptor[] = {
0x1A,
/* Size of this descriptor in bytes
0x80,
/* IrDA Control Descriptor
0x00, 0x01, /* IrDA Control specification release number in binary-coded decimal */
0x22,
/* Class descriptor number 1 ID code
0x00,
/* Class descriptor number 2 ID code
0x00,
/* Class descriptor number 3 ID code
0x00,
/* Class descriptor number 4 ID code
0x48,
/* Endpoint transfer type and max packet size
0x00,
/* Endpoint transfer type and max packet size
0x43,
/* Endpoint transfer type and max packet size
0x08,
/* Logical device 1 packet size
0x48,
/* Logical interrupt IN device 1 attributes bitmap
0x00,
/* Logical device 2 packet size
0x00,
/* Logical interrupt IN device 2 attributes bitmap
0x03,
/* Logical device 3 packet size
0x88,
/* Logical interrupt IN device 3 attributes bitmap
0x00,
/* Hardware target country 1
0x00,
/* Hardware target country 2
0x00,
/* Hardware target country 3
0x3F, 0x00, /* Length of Report Descriptor 1
0x00, 0x00, /* Length of Report Descriptor 2
0x32, 0x00 /* Length of Report Descriptor 3
};
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/