USB08 Descriptors

Interface Descriptor

USB08 Evaluation Board Designer Reference Manual

MOTOROLA USB08 Descriptors 85

B.5 Interface Descriptor
const interface_descrip tor InterfaceDesc =
{ // Size of this Descrip tor in Bytes
sizeof(interface_de scriptor),
DT_INTERFACE, // Descriptor Type (=4)
0, // Number of *this* Interface (0..)
0, // Alternative for this Interface (if any)
2, // No of EPs used by th is IF (excl. EP0)
0xff, // IF Class Code (0xff = Vendor specific)
0x01, // Interface Subclass Code
0xff, // IF Protocol Code (0xff = Vendor specific)
0 // Index of String Desc for this Interface
}; // end of Interf aceDesc
B.6 Endpoint 1 Descriptor
const endpoint_descriptor Endp oi nt1Desc =
{ // Size of this Descrip tor in Bytes
sizeof(endpoint_des criptor),
DT_ENDPOINT, // Descriptor Type (=5)
0x81, // Endpoint Address (EP1, IN)
0x03, // Interrupt
{0x08, 0x00}, // Max. Endpoint Packet Size
10 // Polling Interval (Interrupt) in ms
}; // end of Endpoi nt1Desc
B.7 Endpoint 2 Descriptor
const endpoint_descriptor Endp oi nt2Desc =
{ // Size of this Descrip tor in Bytes
sizeof(endpoint_des criptor),
DT_ENDPOINT, // Descriptor Type (=5)
0x02, // Endpoint Address (EP2, OUT)
0x03, // Interrupt
{0x08, 0x00}, // Max. Endpoint Packet Size
10 // Polling Interval (Interrupt) in ms
}; // end of Endpoi nt2Desc