Designer Reference Manual USB08 Evaluation Board

84 USB08 Descriptors MOTOROLA

USB08 DescriptorsB.3 Device Descriptor
const device_descriptor DeviceDesc =
{ // Size of this Descrip tor in Bytes
sizeof(device_descr iptor),
DT_DEVICE, // Descriptor Type (=1)
{0x10, 0x01}, // USB Spec Release Num ber in BCD = 1.10
0, // Device Class Code (n one)
0, // Device Subclass Code (none)
0, // Device Protocol Code (none)
8, // Maximum Packet Size for EP0
{0x70, 0x0c}, // Vendor ID = MCT Elek tronikladen
{0x00, 0x00}, // Product ID = Generic Demo
{0x00, 0x01}, // Device Release Numbe r in BCD
1, // Index of String Desc for Manufacturer
2, // Index of String Desc for Product
0, // Index of String Desc for SerNo
1 // Number of possible Configurations
}; // end of Device Desc
B.4 Configuration Descriptor
const configuration_des criptor ConfigDesc =
{ // Size of this Descrip tor in Bytes
sizeof(configuratio n_descriptor),
DT_CONFIGURATION, // Descriptor Type (=2)
{sizeof(configuration_descri pt or ) + sizeof(interface_descrip tor) +
sizeof(endpoint_de scriptor) + sizeof(endpo int_descriptor),
0x00}, // Total Length of Data for this Conf
1, // No of Interfaces supported by this Conf
1, // Designator Value for *this* Configuration
0, // Index of String Desc for this Conf
0xc0, // Self-powered, no Remote-Wakeup
0 // Max. Power Consumpti on in this Conf (*2mA)
}; // end of Config Desc