consumer.c

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2011 Lubos Slovak
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * - Redistributions of source code must retain the above copyright
00010  *   notice, this list of conditions and the following disclaimer.
00011  * - Redistributions in binary form must reproduce the above copyright
00012  *   notice, this list of conditions and the following disclaimer in the
00013  *   documentation and/or other materials provided with the distribution.
00014  * - The name of the author may not be used to endorse or promote products
00015  *   derived from this software without specific prior written permission.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
00018  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00019  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00020  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
00021  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00022  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00023  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00024  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00025  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00026  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00027  */
00028 
00036 #include <stdint.h>
00037 #include <stdio.h>
00038 #include <usb/hid/usages/consumer.h>
00039 
00040 static const char *usbhid_consumer_usage_str[0x29d] = {
00041         [0x01] = "Consumer Control",
00042         [0x02] = "Numeric Key Pad",
00043         [0x03] = "Programmable Buttons",
00044         [0x04] = "Microphone",
00045         [0x05] = "Headphone",
00046         [0x06] = "Graphic Equalizer",
00047         [0x07] = "Reserved",
00048         [0x08] = "Reserved",
00049         [0x09] = "Reserved",
00050         [0x0a] = "Reserved",
00051         [0x0b] = "Reserved",
00052         [0x0c] = "Reserved",
00053         [0x0d] = "Reserved",
00054         [0x0e] = "Reserved",
00055         [0x0f] = "Reserved",
00056         [0x10] = "Reserved",
00057         [0x11] = "Reserved",
00058         [0x12] = "Reserved",
00059         [0x13] = "Reserved",
00060         [0x14] = "Reserved",
00061         [0x15] = "Reserved",
00062         [0x16] = "Reserved",
00063         [0x17] = "Reserved",
00064         [0x18] = "Reserved",
00065         [0x19] = "Reserved",
00066         [0x1a] = "Reserved",
00067         [0x1b] = "Reserved",
00068         [0x1c] = "Reserved",
00069         [0x1d] = "Reserved",
00070         [0x1e] = "Reserved",
00071         [0x1f] = "Reserved",
00072         [0x20] = "+10",
00073         [0x21] = "+100",
00074         [0x22] = "AM/PM",
00075         [0x23] = "Reserved",
00076         [0x24] = "Reserved",
00077         [0x25] = "Reserved",
00078         [0x26] = "Reserved",
00079         [0x27] = "Reserved",
00080         [0x28] = "Reserved",
00081         [0x29] = "Reserved",
00082         [0x2a] = "Reserved",
00083         [0x2b] = "Reserved",
00084         [0x2c] = "Reserved",
00085         [0x2d] = "Reserved",
00086         [0x2e] = "Reserved",
00087         [0x2f] = "Reserved",
00088         [0x30] = "Reserved",
00089         [0x31] = "Reserved",
00090         [0x32] = "Reserved",
00091         [0x33] = "Reserved",
00092         [0x34] = "Reserved",
00093         [0x35] = "Reserved",
00094         [0x36] = "Reserved",
00095         [0x37] = "Reserved",
00096         [0x38] = "Reserved",
00097         [0x39] = "Reserved",
00098         [0x3a] = "Reserved",
00099         [0x3b] = "Reserved",
00100         [0x3c] = "Reserved",
00101         [0x3d] = "Reserved",
00102         [0x3e] = "Reserved",
00103         [0x3f] = "Reserved",
00104         [0x40] = "Menu",
00105         [0x41] = "Menu Pick",
00106         [0x42] = "Menu Up",
00107         [0x43] = "Menu Down",
00108         [0x44] = "Menu Left",
00109         [0x45] = "Menu Right",
00110         [0x46] = "Menu Escape",
00111         [0x47] = "Menu Value Increase",
00112         [0x48] = "Menu Value Decrease",
00113         [0x49] = "Reserved",
00114         [0x4a] = "Reserved",
00115         [0x4b] = "Reserved",
00116         [0x4c] = "Reserved",
00117         [0x4d] = "Reserved",
00118         [0x4e] = "Reserved",
00119         [0x4f] = "Reserved",
00120         [0x50] = "Reserved",
00121         [0x51] = "Reserved",
00122         [0x52] = "Reserved",
00123         [0x53] = "Reserved",
00124         [0x54] = "Reserved",
00125         [0x55] = "Reserved",
00126         [0x56] = "Reserved",
00127         [0x57] = "Reserved",
00128         [0x58] = "Reserved",
00129         [0x59] = "Reserved",
00130         [0x5a] = "Reserved",
00131         [0x5b] = "Reserved",
00132         [0x5c] = "Reserved",
00133         [0x5d] = "Reserved",
00134         [0x5e] = "Reserved",
00135         [0x5f] = "Reserved",
00136         [0x60] = "Data On Screen",
00137         [0x61] = "Closed Caption",
00138         [0x62] = "Closed Caption Select",
00139         [0x63] = "VCR/TV",
00140         [0x64] = "Broadcast Mode",
00141         [0x65] = "Snapshot",
00142         [0x66] = "Still",
00143         [0x67] = "Reserved",
00144         [0x68] = "Reserved",
00145         [0x69] = "Reserved",
00146         [0x6a] = "Reserved",
00147         [0x6b] = "Reserved",
00148         [0x6c] = "Reserved",
00149         [0x6d] = "Reserved",
00150         [0x6e] = "Reserved",
00151         [0x6f] = "Reserved",
00152         [0x70] = "Reserved",
00153         [0x71] = "Reserved",
00154         [0x72] = "Reserved",
00155         [0x73] = "Reserved",
00156         [0x74] = "Reserved",
00157         [0x75] = "Reserved",
00158         [0x76] = "Reserved",
00159         [0x77] = "Reserved",
00160         [0x78] = "Reserved",
00161         [0x79] = "Reserved",
00162         [0x7a] = "Reserved",
00163         [0x7b] = "Reserved",
00164         [0x7c] = "Reserved",
00165         [0x7d] = "Reserved",
00166         [0x7e] = "Reserved",
00167         [0x7f] = "Reserved",
00168         [0x80] = "Selection",
00169         [0x81] = "Assign Selection",
00170         [0x82] = "Mode Step",
00171         [0x83] = "Recall Last",
00172         [0x84] = "Enter Channel",
00173         [0x85] = "Order Movie",
00174         [0x86] = "Channel",
00175         [0x87] = "Media Selection",
00176         [0x88] = "Media Select Computer",
00177         [0x89] = "Media Select TV",
00178         [0x8a] = "Media Select WWW",
00179         [0x8b] = "Media Select DVD",
00180         [0x8c] = "Media Select Telephone",
00181         [0x8d] = "Media Select Program Guide",
00182         [0x8e] = "Media Select Video Phone",
00183         [0x8f] = "Media Select Games",
00184         [0x90] = "Media Select Messages",
00185         [0x91] = "Media Select CD",
00186         [0x92] = "Media Select VCR",
00187         [0x93] = "Media Select Tuner",
00188         [0x94] = "Quit",
00189         [0x95] = "Help",
00190         [0x96] = "Media Select Tape",
00191         [0x97] = "Media Select Cable",
00192         [0x98] = "Media Select Satellite",
00193         [0x99] = "Media Select Security",
00194         [0x9a] = "Media Select Home",
00195         [0x9b] = "Media Select Call",
00196         [0x9c] = "Channel Increment",
00197         [0x9d] = "Channel Decrement",
00198         [0x9e] = "Media Select SAP",
00199         [0x9f] = "Reserved",
00200         [0xa0] = "VCR Plus",
00201         [0xa1] = "Once",
00202         [0xa2] = "Daily",
00203         [0xa3] = "Weekly",
00204         [0xa4] = "Monthly",
00205         [0xa5] = "Reserved",
00206         [0xa6] = "Reserved",
00207         [0xa7] = "Reserved",
00208         [0xa8] = "Reserved",
00209         [0xa9] = "Reserved",
00210         [0xaa] = "Reserved",
00211         [0xab] = "Reserved",
00212         [0xac] = "Reserved",
00213         [0xad] = "Reserved",
00214         [0xae] = "Reserved",
00215         [0xaf] = "Reserved",
00216         [0xb0] = "Play",
00217         [0xb1] = "Pause",
00218         [0xb2] = "Record",
00219         [0xb3] = "Fast Forward",
00220         [0xb4] = "Rewind",
00221         [0xb5] = "Scan Next Track",
00222         [0xb6] = "Scan Previous Trac",
00223         [0xb7] = "Stop",
00224         [0xb8] = "Eject",
00225         [0xb9] = "Random Play",
00226         [0xba] = "Select Disc",
00227         [0xbb] = "Enter Disc",
00228         [0xbc] = "Repeat",
00229         [0xbd] = "Tracking",
00230         [0xbe] = "Track Normal",
00231         [0xbf] = "Slow Tracking",
00232         [0xc0] = "Frame Forward",
00233         [0xc1] = "Frame Back",
00234         [0xc2] = "Mark",
00235         [0xc3] = "Clear Mark",
00236         [0xc4] = "Repeat From Mark",
00237         [0xc5] = "Return to Mark",
00238         [0xc6] = "Search Mark Forward",
00239         [0xc7] = "Search Mark Backwards",
00240         [0xc8] = "Counter Reset",
00241         [0xc9] = "Show Counter",
00242         [0xca] = "Tracking Increment",
00243         [0xcb] = "Tracking Decrement",
00244         [0xcc] = "Stop/Eject",
00245         [0xcd] = "Play/Pause",
00246         [0xce] = "Play/Skip",
00247         [0xcf] = "Reserved",
00248         [0xd0] = "Reserved",
00249         [0xd1] = "Reserved",
00250         [0xd2] = "Reserved",
00251         [0xd3] = "Reserved",
00252         [0xd4] = "Reserved",
00253         [0xd5] = "Reserved",
00254         [0xd6] = "Reserved",
00255         [0xd7] = "Reserved",
00256         [0xd8] = "Reserved",
00257         [0xd9] = "Reserved",
00258         [0xda] = "Reserved",
00259         [0xdb] = "Reserved",
00260         [0xdc] = "Reserved",
00261         [0xdd] = "Reserved",
00262         [0xde] = "Reserved",
00263         [0xdf] = "Reserved",
00264         [0xe0] = "Volume",
00265         [0xe1] = "Balance",
00266         [0xe2] = "Mute",
00267         [0xe3] = "Bass",
00268         [0xe4] = "Treble",
00269         [0xe5] = "Bass Boost",
00270         [0xe6] = "Surround Mode",
00271         [0xe7] = "Loudness",
00272         [0xe8] = "MPX",
00273         [0xe9] = "Volume Increment",
00274         [0xea] = "Volume Decrement",
00275         [0xeb] = "Reserved",
00276         [0xec] = "Reserved",
00277         [0xed] = "Reserved",
00278         [0xee] = "Reserved",
00279         [0xef] = "Reserved",
00280         [0xf0] = "Speed Select",
00281         [0xf1] = "Playback Speed",
00282         [0xf2] = "Standard Play",
00283         [0xf3] = "Long Play",
00284         [0xf4] = "Extended Play",
00285         [0xf5] = "Slow",
00286         [0xf6] = "Reserved",
00287         [0xf7] = "Reserved",
00288         [0xf8] = "Reserved",
00289         [0xf9] = "Reserved",
00290         [0xfa] = "Reserved",
00291         [0xfb] = "Reserved",
00292         [0xfc] = "Reserved",
00293         [0xfd] = "Reserved",
00294         [0xfe] = "Reserved",
00295         [0xff] = "Reserved",
00296         [0x100] = "Fan Enable",
00297         [0x101] = "Fan Speed",
00298         [0x102] = "Light Enable",
00299         [0x103] = "Light Illumination Level",
00300         [0x104] = "Climate Control Enable",
00301         [0x105] = "Room Temperature",
00302         [0x106] = "Security Enable",
00303         [0x107] = "Fire Alarm",
00304         [0x108] = "Police Alarm",
00305         [0x109] = "Proximity",
00306         [0x10a] = "Motion",
00307         [0x10b] = "Duress Alarm",
00308         [0x10c] = "Holdup Alarm",
00309         [0x10d] = "Medical Alarm",
00310         [0x10e] = "Reserved",
00311         [0x10f] = "Reserved",
00312         [0x110] = "Reserved",
00313         [0x111] = "Reserved",
00314         [0x112] = "Reserved",
00315         [0x113] = "Reserved",
00316         [0x114] = "Reserved",
00317         [0x115] = "Reserved",
00318         [0x116] = "Reserved",
00319         [0x117] = "Reserved",
00320         [0x118] = "Reserved",
00321         [0x119] = "Reserved",
00322         [0x11a] = "Reserved",
00323         [0x11b] = "Reserved",
00324         [0x11c] = "Reserved",
00325         [0x11d] = "Reserved",
00326         [0x11e] = "Reserved",
00327         [0x11f] = "Reserved",
00328         [0x120] = "Reserved", 
00329         [0x121] = "Reserved",
00330         [0x122] = "Reserved",
00331         [0x123] = "Reserved",
00332         [0x124] = "Reserved",
00333         [0x125] = "Reserved",
00334         [0x126] = "Reserved",
00335         [0x127] = "Reserved",
00336         [0x128] = "Reserved",
00337         [0x129] = "Reserved",
00338         [0x12a] = "Reserved",
00339         [0x12b] = "Reserved",
00340         [0x12c] = "Reserved",
00341         [0x12d] = "Reserved",
00342         [0x12e] = "Reserved",
00343         [0x12f] = "Reserved",
00344         [0x130] = "Reserved", 
00345         [0x131] = "Reserved",
00346         [0x132] = "Reserved",
00347         [0x133] = "Reserved",
00348         [0x134] = "Reserved",
00349         [0x135] = "Reserved",
00350         [0x136] = "Reserved",
00351         [0x137] = "Reserved",
00352         [0x138] = "Reserved",
00353         [0x139] = "Reserved",
00354         [0x13a] = "Reserved",
00355         [0x13b] = "Reserved",
00356         [0x13c] = "Reserved",
00357         [0x13d] = "Reserved",
00358         [0x13e] = "Reserved",
00359         [0x13f] = "Reserved",
00360         [0x140] = "Reserved", 
00361         [0x141] = "Reserved",
00362         [0x142] = "Reserved",
00363         [0x143] = "Reserved",
00364         [0x144] = "Reserved",
00365         [0x145] = "Reserved",
00366         [0x146] = "Reserved",
00367         [0x147] = "Reserved",
00368         [0x148] = "Reserved",
00369         [0x149] = "Reserved",
00370         [0x14a] = "Reserved",
00371         [0x14b] = "Reserved",
00372         [0x14c] = "Reserved",
00373         [0x14d] = "Reserved",
00374         [0x14e] = "Reserved",
00375         [0x14f] = "Reserved",
00376         [0x150] = "Balance Right",
00377         [0x151] = "Balance Left",
00378         [0x152] = "Bass Increment",
00379         [0x153] = "Bass Decrement",
00380         [0x154] = "Treble Increment",
00381         [0x155] = "Treble Decrement",
00382         [0x156] = "Reserved",
00383         [0x157] = "Reserved",
00384         [0x158] = "Reserved",
00385         [0x159] = "Reserved",
00386         [0x15a] = "Reserved",
00387         [0x15b] = "Reserved",
00388         [0x15c] = "Reserved",
00389         [0x15d] = "Reserved",
00390         [0x15e] = "Reserved",
00391         [0x15f] = "Reserved",
00392         [0x160] = "Speaker System",
00393         [0x161] = "Channel Left",
00394         [0x162] = "Channel Right",
00395         [0x163] = "Channel Center",
00396         [0x164] = "Channel Front",
00397         [0x165] = "Channel Center Front",
00398         [0x166] = "Channel Side",
00399         [0x167] = "Channel Surround",
00400         [0x168] = "Channel Low Frequency Enhancement",
00401         [0x169] = "Channel Top",
00402         [0x16a] = "Channel Unknown",
00403         [0x16b] = "Reserved",
00404         [0x16c] = "Reserved",
00405         [0x16d] = "Reserved",
00406         [0x16e] = "Reserved",
00407         [0x16f] = "Reserved",
00408         [0x170] = "Sub-channel",
00409         [0x171] = "Sub-channel Increment",
00410         [0x172] = "Sub-channel Decrement",
00411         [0x173] = "Alternate Audio Increment",
00412         [0x174] = "Alternate Audio Decrement",
00413         [0x175] = "Reserved",
00414         [0x176] = "Reserved",
00415         [0x177] = "Reserved",
00416         [0x178] = "Reserved",
00417         [0x179] = "Reserved",
00418         [0x17a] = "Reserved",
00419         [0x17b] = "Reserved",
00420         [0x17c] = "Reserved",
00421         [0x17d] = "Reserved",
00422         [0x17e] = "Reserved",
00423         [0x17f] = "Reserved",
00424         [0x180] = "Application Launch Buttons",
00425         [0x181] = "AL Launch Buttion Configuration Tool",
00426         [0x182] = "AL Programmable Button Configuration",
00427         [0x183] = "AL Consumer Control Configuration",
00428         [0x184] = "AL Word Processor",
00429         [0x185] = "AL Text Editor",
00430         [0x186] = "AL Spreadsheet",
00431         [0x187] = "AL Graphics Editor",
00432         [0x188] = "AL Presentation App",
00433         [0x189] = "AL Database App",
00434         [0x18a] = "AL Email Reader",
00435         [0x18b] = "AL Newsreader",
00436         [0x18c] = "AL Voicemail",
00437         [0x18d] = "AL Contacts/Address Book",
00438         [0x18e] = "AL Calendar/Schedule",
00439         [0x18f] = "AL Task/Project Manager",
00440         [0x190] = "AL Log/Journal/Timecard",
00441         [0x191] = "AL Checkbook/Finance",
00442         [0x192] = "AL Calculator",
00443         [0x193] = "AL A/V Capture/Playback",
00444         [0x194] = "AL Local Machine Browser",
00445         [0x195] = "AL LAN/WAN Browser",
00446         [0x196] = "AL Internet Browser",
00447         [0x197] = "AL Remote Networking/ISP Connect",
00448         [0x198] = "AL Network Conference",
00449         [0x199] = "AL Network Chat",
00450         [0x19a] = "AL Telephony/Dialer",
00451         [0x19b] = "AL Logon",
00452         [0x19c] = "AL Logoff",
00453         [0x19d] = "AL Logon/Logoff",
00454         [0x19e] = "AL Terminal Lock/Screensaver",
00455         [0x19f] = "AL Control Panel",
00456         [0x1a0] = "AL Command Line Processor/Run",
00457         [0x1a1] = "AL Process/Task Manager",
00458         [0x1a2] = "AL Select Task/Application",
00459         [0x1a3] = "AL Next Task/Application",
00460         [0x1a4] = "AL Previous Task/Application",
00461         [0x1a5] = "AL Preemptive Halt Task/Application",
00462         [0x1a6] = "AL Integrated Help Center",
00463         [0x1a7] = "AL Documents",
00464         [0x1a8] = "AL Thesaurus",
00465         [0x1a9] = "AL Dictionary",
00466         [0x1aa] = "AL Desktop",
00467         [0x1ab] = "AL Spell Check",
00468         [0x1ac] = "AL Grammar Check",
00469         [0x1ad] = "AL Wireless Status",
00470         [0x1ae] = "AL Keyboard Layout",
00471         [0x1af] = "AL Virus Protection",
00472         [0x1b0] = "AL Encryption",
00473         [0x1b1] = "AL Screen Saver",
00474         [0x1b2] = "AL Alarms",
00475         [0x1b3] = "AL Clock",
00476         [0x1b4] = "AL File Browser",
00477         [0x1b5] = "AL Power Status",
00478         [0x1b6] = "AL Image Browser",
00479         [0x1b7] = "AL Audio Browser",
00480         [0x1b8] = "AL Movie Browser",
00481         [0x1b9] = "AL Digital Rights Manager",
00482         [0x1ba] = "AL Digital Wallet",
00483         [0x1bb] = "Reserved",
00484         [0x1bc] = "AL Instant Messaging",
00485         [0x1bd] = "AL OEM Features Tips/Tutorial Browser",
00486         [0x1be] = "AL OEM Help",
00487         [0x1bf] = "AL Online Community",
00488         [0x1c0] = "AL Entertainment Content Browser",
00489         [0x1c1] = "AL Online Shopping Browser",
00490         [0x1c2] = "AL SmartCard Information/Help",
00491         [0x1c3] = "AL Market Monitor/Finance Browser",
00492         [0x1c4] = "AL Customized Corporate News Browser",
00493         [0x1c5] = "AL Online Activity Browser",
00494         [0x1c6] = "AL Research/Search Browser",
00495         [0x1c7] = "AL Audio Player",
00496         [0x1c8] = "Reserved",
00497         [0x1c9] = "Reserved",
00498         [0x1ca] = "Reserved",
00499         [0x1cb] = "Reserved",
00500         [0x1cc] = "Reserved",
00501         [0x1cd] = "Reserved",
00502         [0x1ce] = "Reserved",
00503         [0x1cf] = "Reserved",
00504         [0x1d0] = "Reserved",
00505         [0x1d1] = "Reserved",
00506         [0x1d2] = "Reserved",
00507         [0x1d3] = "Reserved",
00508         [0x1d4] = "Reserved",
00509         [0x1d5] = "Reserved",
00510         [0x1d6] = "Reserved",
00511         [0x1d7] = "Reserved",
00512         [0x1d8] = "Reserved",
00513         [0x1d9] = "Reserved",
00514         [0x1da] = "Reserved",
00515         [0x1db] = "Reserved",
00516         [0x1dc] = "Reserved",
00517         [0x1dd] = "Reserved",
00518         [0x1de] = "Reserved",
00519         [0x1df] = "Reserved",
00520         [0x1e0] = "Reserved",
00521         [0x1e1] = "Reserved",
00522         [0x1e2] = "Reserved",
00523         [0x1e3] = "Reserved",
00524         [0x1e4] = "Reserved",
00525         [0x1e5] = "Reserved",
00526         [0x1e6] = "Reserved",
00527         [0x1e7] = "Reserved",
00528         [0x1e8] = "Reserved",
00529         [0x1e9] = "Reserved",
00530         [0x1ea] = "Reserved",
00531         [0x1eb] = "Reserved",
00532         [0x1ec] = "Reserved",
00533         [0x1ed] = "Reserved",
00534         [0x1ee] = "Reserved",
00535         [0x1ef] = "Reserved",
00536         [0x1f0] = "Reserved",
00537         [0x1f1] = "Reserved",
00538         [0x1f2] = "Reserved",
00539         [0x1f3] = "Reserved",
00540         [0x1f4] = "Reserved",
00541         [0x1f5] = "Reserved",
00542         [0x1f6] = "Reserved",
00543         [0x1f7] = "Reserved",
00544         [0x1f8] = "Reserved",
00545         [0x1f9] = "Reserved",
00546         [0x1fa] = "Reserved",
00547         [0x1fb] = "Reserved",
00548         [0x1fc] = "Reserved",
00549         [0x1fd] = "Reserved",
00550         [0x1fe] = "Reserved",
00551         [0x1ff] = "Reserved",
00552         [0x200] = "Generic GUI Application Controls",
00553         [0x201] = "AC New",
00554         [0x202] = "AC Open",
00555         [0x203] = "AC Close",
00556         [0x204] = "AC Exit",
00557         [0x205] = "AC Maximize",
00558         [0x206] = "AC Minimize",
00559         [0x207] = "AC Save",
00560         [0x208] = "AC Print",
00561         [0x209] = "AC Properties",
00562         [0x20a] = "",
00563         [0x20b] = "",
00564         [0x20c] = "",
00565         [0x20d] = "",
00566         [0x20e] = "",
00567         [0x20f] = "",
00568         [0x210] = "",
00569         [0x211] = "",
00570         [0x212] = "",
00571         [0x213] = "",
00572         [0x214] = "",
00573         [0x215] = "",
00574         [0x216] = "",
00575         [0x217] = "",
00576         [0x218] = "",
00577         [0x219] = "",
00578         [0x21a] = "AC Undo",
00579         [0x21b] = "AC Copy",
00580         [0x21c] = "AC Cut",
00581         [0x21d] = "AC Paste",
00582         [0x21e] = "AC Select All",
00583         [0x21f] = "AC Find",
00584         [0x220] = "AC Find and Replace",
00585         [0x221] = "AC Search",
00586         [0x222] = "AC Go To",
00587         [0x223] = "AC Home",
00588         [0x224] = "AC Back",
00589         [0x225] = "AC Forward",
00590         [0x226] = "AC Stop",
00591         [0x227] = "AC Refresh",
00592         [0x228] = "AC Previous Link",
00593         [0x229] = "AC Next Link",
00594         [0x22a] = "AC Bookmarks",
00595         [0x22b] = "AC History",
00596         [0x22c] = "AC Subscriptions",
00597         [0x22d] = "AC Zoom In",
00598         [0x22e] = "AC Zoom Out",
00599         [0x22f] = "AC Zoom",
00600         [0x230] = "AC Full Screen View",
00601         [0x231] = "AC Normal View",
00602         [0x232] = "AC View Toggle",
00603         [0x233] = "AC Scroll Up",
00604         [0x234] = "AC Scroll Down",
00605         [0x235] = "AC Scroll",
00606         [0x236] = "AC Pan Left",
00607         [0x237] = "AC Pan Right",
00608         [0x238] = "AC Pan",
00609         [0x239] = "AC New Window",
00610         [0x23a] = "AC Tile Horizontally",
00611         [0x23b] = "AC Tile Vertically",
00612         [0x23c] = "AC Format",
00613         [0x23d] = "AC Edit",
00614         [0x23e] = "AC Bold",
00615         [0x23f] = "AC Italics",
00616         [0x240] = "AC Undeline",
00617         [0x241] = "AC Strikethrough",
00618         [0x242] = "AC Subscript",
00619         [0x243] = "AC Superscript",
00620         [0x244] = "AC All Caps",
00621         [0x245] = "AC Rotate",
00622         [0x246] = "AC Resize",
00623         [0x247] = "AC Flip Horizontal",
00624         [0x248] = "AC Flip Vertical",
00625         [0x249] = "AC Mirror Horizontal",
00626         [0x24a] = "AC Mirror Vertical",
00627         [0x24b] = "AC Font Select",
00628         [0x24c] = "AC Font Color",
00629         [0x24d] = "AC Font Size",
00630         [0x24e] = "AC Justify Left",
00631         [0x24f] = "AC Justify Center H",
00632         [0x250] = "AC Justify Right",
00633         [0x251] = "AC Justify Block H",
00634         [0x252] = "AC Justify Top",
00635         [0x253] = "AC Justify Center V",
00636         [0x254] = "AC Justify Bottom",
00637         [0x255] = "AC Justify Block V",
00638         [0x256] = "AC Indent Decrease",
00639         [0x257] = "AC Indent Increase",
00640         [0x258] = "AC Numbered List",
00641         [0x259] = "AC Restart Numbering",
00642         [0x25a] = "AC Bulleted List",
00643         [0x25b] = "AC Promote",
00644         [0x25c] = "AC Demote",
00645         [0x25d] = "AC Yes",
00646         [0x25e] = "AC No",
00647         [0x25f] = "AC Cancel",
00648         [0x260] = "AC Catalog",
00649         [0x261] = "AC Buy/Checkout",
00650         [0x262] = "AC Add to Cart",
00651         [0x263] = "AC Expand",
00652         [0x264] = "AC Expand All",
00653         [0x265] = "AC Collapse",
00654         [0x266] = "AC Collapse All",
00655         [0x267] = "AC Print Preview",
00656         [0x268] = "AC Paste Special",
00657         [0x269] = "AC Insert Mode",
00658         [0x26a] = "AC Delete",
00659         [0x26b] = "AC Lock",
00660         [0x26c] = "AC Unlock",
00661         [0x26d] = "AC Protect",
00662         [0x26e] = "AC Unprotect",
00663         [0x26f] = "AC Attach Comment",
00664         [0x270] = "AC Delete Comment",
00665         [0x271] = "AC View Comment",
00666         [0x272] = "AC Select Word",
00667         [0x273] = "AC Select Sentence",
00668         [0x274] = "AC Select Paragraph",
00669         [0x275] = "AC Select Column",
00670         [0x276] = "AC Select Row",
00671         [0x277] = "AC Select Table",
00672         [0x278] = "AC Select Object",
00673         [0x279] = "AC Redo/Repeat",
00674         [0x27a] = "AC Sort",
00675         [0x27b] = "AC Sort Ascending",
00676         [0x27c] = "AC Sort Descending",
00677         [0x27d] = "AC Filter",
00678         [0x27e] = "AC Set Clock",
00679         [0x27f] = "AC View Clock",
00680         [0x280] = "AC Select Time Zone",
00681         [0x281] = "AC Edit Time Zones",
00682         [0x282] = "AC Set Alarm",
00683         [0x283] = "AC Clear Alarm",
00684         [0x284] = "AC Snooze Alarm",
00685         [0x285] = "AC Reset Alarm",
00686         [0x286] = "AC Synchronize",
00687         [0x287] = "AC Send/Receive",
00688         [0x288] = "AC Send To",
00689         [0x289] = "AC Reply",
00690         [0x28a] = "AC Reply All",
00691         [0x28b] = "AC Forward Msg",
00692         [0x28c] = "AC Send",
00693         [0x28d] = "AC Attach File",
00694         [0x28e] = "AC Upload",
00695         [0x28f] = "AC Download (Save Target As)",
00696         [0x290] = "AC Set Borders",
00697         [0x291] = "AC Insert Row",
00698         [0x292] = "AC Insert Column",
00699         [0x293] = "AC Insert File",
00700         [0x294] = "AC Insert Picture",
00701         [0x295] = "AC Insert Object",
00702         [0x296] = "AC Insert Symbol",
00703         [0x297] = "AC Save and Close",
00704         [0x298] = "AC Rename",
00705         [0x299] = "AC Merge",
00706         [0x29a] = "AC Split",
00707         [0x29b] = "AC Distrubute Horizontally",
00708         [0x29c] = "AC Distrubute Vertically"
00709 };
00710 
00719 const char *usbhid_multimedia_usage_to_str(int usage)
00720 {
00721         size_t map_length = sizeof(usbhid_consumer_usage_str) / sizeof(char *);
00722 
00723         if ((usage < 0) || ((size_t)usage >= map_length))
00724                 return "Unknown usage";
00725 
00727         return usbhid_consumer_usage_str[usage];
00728 }
00729 

Generated on Thu Jun 2 07:45:48 2011 for HelenOS/USB by  doxygen 1.4.7