Designer Reference Manual USB08 Evaluation Board
100 Source Code Files MOTOROLA
Source Code Files
U08DESC.C
//===================== ======================== ======================= ========
// File: U08DESC.C
// Func: Device-, Confi guration- and String-Des criptors for
// USB08 Demo Application (all const Data, placed in Flash-ROM)
// Ver.: 1.00
// Auth: (C)2000,2001 b y Oliver Thamm, MCT Elek tronikladen GbR
// http://hc08web .de/usb08
// Rem.: View/Edit this File with TAB-Size=4
//===================== ======================== ======================= ========
//--------------------- ------------------------ ----------------------- --------
const device_descriptor DeviceDesc =
{ // Size of this Descriptor in Bytes
sizeof(device_descripto r),
DT_DEVICE, // Descriptor Type (=1)
{0x10, 0x01}, // USB Spec Release Num ber in BCD = 1.10
0, // Device Class Code (none)
0, // Device Subclass Code(none)
0, // Device Protocol Code (none)
8, // Maximum Packet S ize for EP0
{0x70, 0x0c}, // Vendor ID = MCT Elek tronikladen
{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
//--------------------- ------------------------ ----------------------- --------
const configuration_des criptor ConfigDesc =
{ // Size of this Descriptor in Bytes
sizeof(configuration_de scriptor),
DT_CONFIGURATION,// Des criptor Type (=2)
{sizeof(configuration_d es cri ptor) +sizeof(interface_d escriptor) +
sizeof(endpoint_descri ptor) + 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 Rem ote-Wakeup
0 // Max. Power Consumption in this Conf (*2mA)
}; // end of ConfigDesc
//--------------------- ------------------------ ----------------------- --------