X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FUSB%2FCore%2Fusb_proto.h;h=5641dd245ae879d0344c419a8138a0f2b7f88e73;hb=3e39f3e998538521830c10da09fe14c7a7dc66bd;hp=b5399e8e3991c0cbdaf692fd2e0b42d1d83dda45;hpb=61e738e9f111f0beac621db5efbccff0d64760a2;p=tpg%2Facess2.git diff --git a/Modules/USB/Core/usb_proto.h b/Modules/USB/Core/usb_proto.h index b5399e8e..5641dd24 100644 --- a/Modules/USB/Core/usb_proto.h +++ b/Modules/USB/Core/usb_proto.h @@ -1,4 +1,9 @@ /** + * Acess2 USB Stack + * - By John Hodge (thePowersGang) + * + * usb_proto.h + * - USB Core Protocol Definitions */ #ifndef _USB_PROTO_H_ #define _USB_PROTO_H_ @@ -53,7 +58,7 @@ struct sDescriptor_String Uint8 Length; Uint8 Type; // = 3 - Uint16 Data[62]; // 62 is arbitary + Uint16 Data[128-1]; // (256 bytes - 2 bytes) / Uint16 } PACKED; struct sDescriptor_Interface @@ -76,7 +81,7 @@ struct sDescriptor_Endpoint { Uint8 Length; Uint8 Type; // = 5 - Uint8 Address; // 3:0 Endpoint Num, 7: Direction (IN/OUT) + Uint8 Address; // 3:0 Endpoint Num, 7: Direction (1=IN) /** * 1:0 - Transfer Type * - 00 = Control