29
|
1 |
/*
|
|
2 |
* Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: HID related enums
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef HIDVALUES_H
|
|
20 |
#define HIDVALUES_H
|
|
21 |
|
|
22 |
#include <e32std.h>
|
|
23 |
|
|
24 |
/**
|
|
25 |
* Constants as defined in "USB HID Usage Tables", Version 1.11, USB
|
|
26 |
* Implementers' Forum, June 2001. Used throughout for parsing report
|
|
27 |
* descriptors and interpreting reports.
|
|
28 |
*/
|
|
29 |
|
|
30 |
/**
|
|
31 |
* HID usage page ID values, as given in the document "USB HID Usage
|
|
32 |
* Tables", Version 1.11, USB Implementers' Forum, June 2001
|
|
33 |
*/
|
|
34 |
enum THidUsagePages
|
|
35 |
{
|
|
36 |
EUsagePageUndefined = 0x00,
|
|
37 |
EUsagePageGenericDesktop = 0x01,
|
|
38 |
EUsagePageSimulationControls = 0x02,
|
|
39 |
EUsagePageVRControls = 0x03,
|
|
40 |
EUsagePageSportControls = 0x04,
|
|
41 |
EUsagePageGameControls = 0x05,
|
|
42 |
EUsagePageGenericDeviceControls = 0x06,
|
|
43 |
EUsagePageKeyboard = 0x07,
|
|
44 |
EUsagePageLEDs = 0x08,
|
|
45 |
EUsagePageButton = 0x09,
|
|
46 |
EUsagePageOrdinal = 0x0A,
|
|
47 |
EUsagePageTelephony = 0x0B,
|
|
48 |
EUsagePageConsumer = 0x0C,
|
|
49 |
EUsagePageDigitizer = 0x0D,
|
|
50 |
EUsagePagePIDPage = 0x0F,
|
|
51 |
EUsagePageUnicode = 0x10,
|
|
52 |
EUsagePageAlphanumericDisplay = 0x14,
|
|
53 |
EUsagePageMedicalInstruments = 0x40,
|
|
54 |
EUsagePageMonitorMin = 0x80,
|
|
55 |
EUsagePageMonitorMax = 0x83,
|
|
56 |
EUsagePagePowerMin = 0x84,
|
|
57 |
EUsagePagePowerMax = 0x87,
|
|
58 |
EUsagePageBarCodeScanner = 0x8C,
|
|
59 |
EUsagePageScale = 0x8D,
|
|
60 |
EUsagePageMagStripe = 0x8E,
|
|
61 |
EUsagePagePOS = 0x8F,
|
|
62 |
EUsagePageCameraControl = 0x90,
|
|
63 |
EUsagePageArcade = 0x91,
|
|
64 |
EUsagePageVendorSpecific = 0xFF01
|
|
65 |
};
|
|
66 |
|
|
67 |
/**
|
|
68 |
* HID usage ID values for the Generic Desktop usage page, as given in
|
|
69 |
* the document "USB HID Usage Tables", Version 1.11, USB Implementers'
|
|
70 |
* Forum, June 2001
|
|
71 |
*/
|
|
72 |
enum THidGenericDesktopUsages
|
|
73 |
{
|
|
74 |
EGenericDesktopUsagePointer = 0x01,
|
|
75 |
EGenericDesktopUsageMouse = 0x02,
|
|
76 |
EGenericDesktopUsageJoystick = 0x04,
|
|
77 |
EGenericDesktopUsagePad = 0x05,
|
|
78 |
EGenericDesktopUsageKeyboard = 0x06,
|
|
79 |
EGenericDesktopUsageKeypad = 0x07,
|
|
80 |
EGenericDesktopUsageMultiAxisCtrl = 0x08,
|
|
81 |
EGenericDesktopUsageX = 0x30,
|
|
82 |
EGenericDesktopUsageY = 0x31,
|
|
83 |
EGenericDesktopUsageZ = 0x32,
|
|
84 |
EGenericDesktopUsageRx = 0x33,
|
|
85 |
EGenericDesktopUsageRy = 0x34,
|
|
86 |
EGenericDesktopUsageRz = 0x35,
|
|
87 |
EGenericDesktopUsageSlider = 0x36,
|
|
88 |
EGenericDesktopUsageDial = 0x37,
|
|
89 |
EGenericDesktopUsageWheel = 0x38,
|
|
90 |
EGenericDesktopUsageHatSwitch = 0x39,
|
|
91 |
EGenericDesktopUsageCountedBuffer = 0x3A,
|
|
92 |
EGenericDesktopUsageByteCount = 0x3B,
|
|
93 |
EGenericDesktopUsageMotionWakeup = 0x3C,
|
|
94 |
EGenericDesktopUsageStart = 0x3D,
|
|
95 |
EGenericDesktopUsageSelect = 0x3E
|
|
96 |
};
|
|
97 |
|
|
98 |
enum THidTelephonyUsages
|
|
99 |
{
|
|
100 |
ETelephonyUsageHookSwitch = 0x20,
|
|
101 |
ETelephonyUsagePhoneMute = 0x2F,
|
|
102 |
ETelephonyUsagePoC = 0x33
|
|
103 |
};
|
|
104 |
|
|
105 |
enum THidConsumerUsages
|
|
106 |
{
|
|
107 |
EConsumerUsagePlay = 0xB0,
|
|
108 |
EConsumerUsageFastForward = 0xB3,
|
|
109 |
EConsumerUsageRewind = 0xB4,
|
|
110 |
EConsumerUsageScanNext = 0xB5,
|
|
111 |
EConsumerUsageScanPrev = 0xB6,
|
|
112 |
EConsumerUsageStop = 0xB7,
|
|
113 |
EConsumerUsageRandomPlay = 0xB9,
|
|
114 |
EConsumerUsagePlayPause = 0xCD,
|
|
115 |
EConsumerUsageVolumeInc = 0xE9,
|
|
116 |
EConsumerUsageVolumeDec = 0xEA,
|
|
117 |
EConsumerUsageMute = 0xE2
|
|
118 |
};
|
|
119 |
|
|
120 |
enum THidVendorSpecificUsages
|
|
121 |
{
|
|
122 |
EVendorSpecificUsagePoC = 0x01,
|
|
123 |
EVendorSpecificUsageHeadplugDetection = 0x02
|
|
124 |
};
|
|
125 |
// ----------------------------------------------------------------------
|
|
126 |
|
|
127 |
#endif
|