Kernel - Slight reworks to timer code
[tpg/acess2.git] / Modules / USB / HID / hid.h
1 /*
2  * Acess2 USB Stack HID Driver
3  * - By John Hodge (thePowersGang)
4  *
5  * hid.h
6  * - Core header
7  */
8 #ifndef _HID_H_
9 #define _HID_H_
10
11 // Report Descriptor Types
12 // - 0: Main
13 //  > 8: Input - Axis/Button etc
14 //  > 9: Output - LED/Position
15 //  > B: Feature -
16 //  > A: Collection - Group of Input/Output/Feature
17 //  > C: End collection
18 // - 1: Global (Not restored on main)
19 // - 2: Local
20 //  > 
21 // - 3: Reserved/Unused
22
23 // I/O/F Data Values
24 #define HID_IOF_CONSTANT        0x001   //!< Host Read-only
25 #define HID_IOF_VARIABLE        0x002   //!< 
26
27 struct sLongItem
28 {
29         Uint8   Header; // 0xFE (Tag 15, Type 3, Size 2)
30         Uint8   DataSize;
31         Uint8   Tag;
32 };
33
34 struct sDescriptor_HID
35 {
36         Uint8   Length;
37         Uint8   Type;   // 
38         Uint16  Version;        // 0x0111 = 1.11
39         Uint8   CountryCode;
40         Uint8   NumDescriptors; // >= 1
41         struct {
42                 Uint8   DescType;
43                 Uint16  DescLen;
44         } Descriptors[];
45 }
46
47 #endif

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