Modules/USB - Working on a structure for the USB subsystem
[tpg/acess2.git] / Modules / USB / Core / usb_proto.h
1 /**
2  */
3 #ifndef _USB_PROTO_H_
4 #define _USB_PROTO_H_
5
6 struct sDeviceRequest
7 {
8         Uint8   ReqType;
9         Uint8   Request;
10         Uint16  Value;
11         Uint16  Index;
12         Uint16  Length;
13 };
14
15 /*
16  */
17 struct sDescriptor_Device
18 {
19         Uint8   Length;
20         Uint8   Type;   // =
21         Uint16  USBVersion;     // BCD, 0x210 = 2.10
22         Uint8   DeviceClass;
23         Uint8   DeviceSubClass;
24         Uint8   DeviceProtocol;
25         Uint8   MaxPacketSize;
26         
27         Uint16  VendorID;
28         Uint16  ProductID;
29         
30         Uint8   ManufacturerStr;
31         Uint8   ProductStr;
32         Uint8   SerialNumberStr;
33         
34         Uint8   NumConfigurations;
35 };
36
37 #endif
38

UCC git Repository :: git.ucc.asn.au