Designer Reference Manual
USB08 Evaluation Board
84
USB08 Descriptors
MOTOROLA
USB08 Descriptors
B.3 Device Descriptor
const device_descriptor DeviceDesc =
{ // Size of this Descriptor in Bytes
sizeof(device_descriptor),
DT_DEVICE, // Descriptor Type (=1)
{0x10, 0x01}, // USB Spec Release Number in BCD = 1.10
0, // Device Class Code (none)
0, // Device Subclass Code (none)
0, // Device Protocol Code (none)
8, // Maximum Packet Size for EP0
{0x70, 0x0c}, // Vendor ID = MCT Elektronikladen
{0x00, 0x00}, // Product ID = Generic Demo
{0x00, 0x01}, // Device Release Number 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 DeviceDesc
B.4 Configuration Descriptor
const configuration_descriptor ConfigDesc =
{ // Size of this Descriptor in Bytes
sizeof(configuration_descriptor),
DT_CONFIGURATION, // Descriptor Type (=2)
{sizeof(configuration_descriptor) + sizeof(interface_descriptor) +
sizeof(endpoint_descriptor) + sizeof(endpoint_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 Consumption in this Conf (*2mA)
}; // end of ConfigDesc