
Source Code Files
Contents
USB08 Evaluation Board Designer Reference Manual
MOTOROLA Source Code Files 101
const interface_descrip tor InterfaceDesc =
{ // Size of this Descriptor in Bytes
sizeof(interface_descri ptor),
DT_INTERFACE, // Descriptor Type (=4)
0, // Number of *this* Int erface (0..)
0, // Alternative for this Interfac e (i f an y)
2, // No of EPs used by th is IF (excl. EP0)
0xff, // IF Class Code (0xff = Vendor specif ic )
0x01, // Interface Subclass C ode
0xff, // IF Protocol Code (0 xff = Vendor specific)
0 // Index of String Desc for this Interface
}; // end of InterfaceD esc
//--------------------- ------------------------ ----------------------- --------
const endpoint_descriptor En dp oi nt1Desc =
{ // Size of this Descriptor in Bytes
sizeof(endpoint_descrip tor),
DT_ENDPOINT, // Descriptor Type (=5)
0x81, // Endpoint Address (EP1, IN)
0x03, // Interrupt
{0x08, 0x00}, // Max. Endpoint Packet Size
10 // Polling Interval (In terrupt) in ms
}; // end of Endpoint1D esc
//--------------------- ------------------------ ----------------------- --------
const endpoint_descriptor En dp oi nt2Desc =
{ // Size of this Descriptor in Bytes
sizeof(endpoint_descrip tor),
DT_ENDPOINT, // Descriptor Type (=5)
0x02, // Endpoint Address (EP2, OUT)
0x03, // Interrupt
{0x08, 0x00}, // Max. Endpoint Packet Size
10 // Polling Interval (In terrupt) in ms
}; // end of Endpoint2D esc
//--------------------- ------------------------ ----------------------- --------
// Language IDs
//--------------
#define SD0LEN 4
//--------------
const uchar String0Desc[SD0L EN ] = {
// Size, Type
SD0LEN, DT_STRING,
// LangID Codes
0x09, 0x04
};