Specifications
Remote Control and Receiver-Transceiver Specifications and Requirements
for Windows Media Center in Windows Operating Systems
81
Interface Descriptor
The device must have at least one interface, which must have at least two endpoints: one control
endpoint and one communication endpoint. For more information, see section 9.6.5 of the USB
2.0 specification.
For communication, the device can use a single bidirectional endpoint, as the examples in this
document illustrate, or it can use two unidirectional endpoints.
The following code shows an interface descriptor structure:
typedef struct _interfaceDescriptor {
byte bLen = sizeof(struct _interfaceDescriptor);
byte bDescriptorType = TYPE_INTERFACE_DESCRIPTOR;
byte bInterfaceNumber = 0;
byte bAlternateSetting = 0;
byte bNumEndpoints = 2;
byte bInterfaceClass = 0xFF;
byte bInterfaceSubclass = 0xFF;
byte bInterfaceProtocol = 0xFF;
byte iInterface;
}










