| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.13"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Lightweight USB stack: hid_usage_simulation.h Source File</title>
- <link href="../../tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="../../jquery.js"></script>
- <script type="text/javascript" src="../../dynsections.js"></script>
- <link href="../../navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="../../resize.js"></script>
- <script type="text/javascript" src="../../navtreedata.js"></script>
- <script type="text/javascript" src="../../navtree.js"></script>
- <script type="text/javascript">
- $(document).ready(initResizable);
- </script>
- <link href="../../search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="../../search/searchdata.js"></script>
- <script type="text/javascript" src="../../search/search.js"></script>
- <link href="../../doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Lightweight USB stack
-  <span id="projectnumber">1.0</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.13 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
- </script>
- <script type="text/javascript" src="../../menudata.js"></script>
- <script type="text/javascript" src="../../menu.js"></script>
- <script type="text/javascript">
- $(function() {
- initMenu('../../',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- </script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function(){initNavTree('d5/d16/a00029_source.html','../../');});
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="headertitle">
- <div class="title">hid_usage_simulation.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* This file is the part of the Lightweight USB device Stack for STM32 microcontrollers</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]com></span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> */</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#ifndef _USB_HID_USAGE_SIMUL_H_</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#define _USB_HID_USAHE_SUMUL_H_</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gad7865bbd89e90a4984ed9ad9ede0005a"> 30</a></span> <span class="preprocessor">#define HID_PAGE_SIMULATION 0x02 </span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga0236fbb7ea22b319f4eaa6599d1b13e7"> 31</a></span> <span class="preprocessor">#define HID_SIMUL_SPORTS 0x08 </span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga79e70b96d057b43a1b809d8e686888db"> 35</a></span> <span class="preprocessor">#define HID_SIMUL_FLIGHT 0x01 </span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gac7aee642d74d295db1e9bea6b63355ca"> 36</a></span> <span class="preprocessor">#define HID_SIMUL_SPACESHIP 0x04 </span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga65bf5544a20c511157940a80b51b43f1"> 37</a></span> <span class="preprocessor">#define HID_SIMUL_AIRPLANE 0x09 </span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga44ab88dfdb3858539d77aab65d4152a7"> 38</a></span> <span class="preprocessor">#define HID_SIMUL_HELICOPTER 0x0A </span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gaa7cadb3b3bac6c56c68cc84e4b5ec69c"> 39</a></span> <span class="preprocessor">#define HID_SIMUL_ALIERON 0xB0 </span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gad7d30080148d28e1e92932510659f53a"> 40</a></span> <span class="preprocessor">#define HID_SIMUL_ALIERIN_TRIM 0xB1 </span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gacfbee2e3b4eea845117344818c3c6fba"> 41</a></span> <span class="preprocessor">#define HID_SIMUL_ANTI_TORQUE 0xB2 </span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga1bfffb1af8c31db3551fadb1c3be1939"> 42</a></span> <span class="preprocessor">#define HID_SIMUL_AUTOPILOT_ENABLE 0xB3 </span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga3761f4558238d0325f1d15b751bc5039"> 43</a></span> <span class="preprocessor">#define HID_SIMUL_CHAFF_RELEASE 0xB4 </span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga9c68ceb68f7e1e56c1f20f3ea7feacd2"> 44</a></span> <span class="preprocessor">#define HID_SIMUL_COLLECTIVE_CONTROL 0xB5 </span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga9066627f3d9975a7467dd42b13f164bd"> 45</a></span> <span class="preprocessor">#define HID_SIMUL_CYCLIC_CONTROL 0x22 </span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gadbda6811bab59b8cd5c6e0e21cdb2787"> 46</a></span> <span class="preprocessor">#define HID_SIMUL_CYCLIC_TRIM 0x23 </span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga68f1bf4f863a4f855fedd69ebf4c029d"> 47</a></span> <span class="preprocessor">#define HID_SIMUL_DRIVE_BRAKE 0xB6 </span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga10c1e5c17e316b817d281545517421b3"> 48</a></span> <span class="preprocessor">#define HID_SIMUL_ELECTR_COUNTERMEAS 0xB7 </span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gabb5ba93fc8f63ddcfa8a72c2168631ec"> 49</a></span> <span class="preprocessor">#define HID_SIMUL_ELEVATOR 0xB8 </span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gab6e41685656ac6e4fc731dde7d8a1a83"> 50</a></span> <span class="preprocessor">#define HID_SIMUL_ELEVATOR_TRIM 0xB9 </span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gabdc4a1a6ce9881637ef1721215d5a352"> 51</a></span> <span class="preprocessor">#define HID_SIMUL_FLIGHT_COMM 0xBC </span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga3b7edc25b3b66318d7666cd59e6299a0"> 52</a></span> <span class="preprocessor">#define HID_SIMUL_FLARE_RELEASE 0xBD </span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gae5244d7a06c49de6a824d8400be1eb5b"> 53</a></span> <span class="preprocessor">#define HID_SIMUL_FLIGHT_CONTROL_STICK 0x20 </span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga24d631a431238b0d80db3955581a29c5"> 54</a></span> <span class="preprocessor">#define HID_SIMUL_FLIGHT_STICK 0x21 </span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gaf2a7d9a69566cfe40b4635c014cfc974"> 55</a></span> <span class="preprocessor">#define HID_SIMUL_LANDING_GEAR 0xBE </span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga568bcbe7a5678db8e054ed6f0e091b04"> 56</a></span> <span class="preprocessor">#define HID_SIMUL_RUDDER 0xBA </span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga3f5d0c3558ec57dfe932d1ebdb8a13d0"> 57</a></span> <span class="preprocessor">#define HID_SIMUL_TOE_BRAKE 0xBF </span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga85434a9cf683a657354a7663564cea88"> 58</a></span> <span class="preprocessor">#define HID_SIMUL_THROTTLE 0xBB </span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga3de9c38d326697149a206f49e0022b6c"> 59</a></span> <span class="preprocessor">#define HID_SIMUL_TRIGGER 0xC0 </span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga2bbb45524cb80f92834858a03ed3354b"> 60</a></span> <span class="preprocessor">#define HID_SIMUL_WEAPONS_ARM 0xC1 </span></div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gaa6249c1d7635a4ee294d29637c1bc98e"> 61</a></span> <span class="preprocessor">#define HID_SIMUL_WEAPONS_SELECT 0xC2 </span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga439b807ec6e01ac9c7c042dd9ecd19a4"> 62</a></span> <span class="preprocessor">#define HID_SIMUL_WING_FLAPS 0xC3 </span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga48b85d1ee3a1cb4088d8607288db9f02"> 63</a></span> <span class="preprocessor">#define HID_SIMUL_FLIGHT_YOKE 0x24 </span></div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gadf320d09df7f64953c367fedd4068cda"> 68</a></span> <span class="preprocessor">#define HID_SIMUL_AUTOMOBILE 0x02 </span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gae960d9fff75a79231b68a693b6819b88"> 69</a></span> <span class="preprocessor">#define HID_SIMUL_ACCELERATOR 0xC4 </span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga904f1091e8ba68481a611824b1a23ecc"> 70</a></span> <span class="preprocessor">#define HID_SIMUL_BRAKE 0xC5 </span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gabf17c1b17a9faabdca9d599fcb0e42a1"> 71</a></span> <span class="preprocessor">#define HID_SIMUL_CLUTCH 0xC6 </span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gac56dda4dcf5100d71e00a5f8dc91f5b2"> 72</a></span> <span class="preprocessor">#define HID_SIMUL_SHIFTER 0xC7 </span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga29fff1b175e1bf31fe99052bf17f1507"> 73</a></span> <span class="preprocessor">#define HID_SIMUL_STEERING 0xC8 </span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gab4edc0274d660c89a443015d4e2a4f88"> 78</a></span> <span class="preprocessor">#define HID_SIMUL_TANK 0x03 </span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gaaf6df711b64228fe23efa3a6bb7b5efd"> 79</a></span> <span class="preprocessor">#define HID_SIMUL_TRACK_CONTROL 0x25 </span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga330473cd5a721b2604dff2700a9d62e2"> 80</a></span> <span class="preprocessor">#define HID_SIMUL_TURRET_DIRECTION 0xC9 </span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gaa5258fa617a239976860605520404f81"> 81</a></span> <span class="preprocessor">#define HID_SIMUL_BARREL_ELEVATION 0xCA </span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga8f8254ce5ec76bd4d76e8ede1accd2bb"> 86</a></span> <span class="preprocessor">#define HID_SIMUL_SUBMARINE 0x05 </span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga3b15856413adb49ab87d418b0b2b8ee0"> 87</a></span> <span class="preprocessor">#define HID_SIMUL_SAILING 0x06 </span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga10c897f21b2a40e8b5b53afd23a85117"> 88</a></span> <span class="preprocessor">#define HID_SIMUL_DIVE_PLANE 0xCB </span></div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gad5610c137cd78186fd4f10ab33ea281f"> 89</a></span> <span class="preprocessor">#define HID_SIMUL_BALLAST 0xCC </span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gafd2d3b415a0ad09800586c0669299cfb"> 94</a></span> <span class="preprocessor">#define HID_SIMUL_MOTOCYCLE 0x07 </span></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga3102bea7d2111d23b3d0e3a08873c26c"> 95</a></span> <span class="preprocessor">#define HID_SIMUL_BICYCLE 0x0C </span></div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#gac2d33848088fbed21609c2e7fccb63f8"> 96</a></span> <span class="preprocessor">#define HID_SIMUL_BICYCLE_CRANK 0xCD </span></div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga679286a24ef2fc57cf81b0ca5c206823"> 97</a></span> <span class="preprocessor">#define HID_SIMUL_HANDLE_BARS 0xCE </span></div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga501c4907432025053d05ed78340e1c30"> 98</a></span> <span class="preprocessor">#define HID_SIMUL_FRONT_BRAKE 0xCF </span></div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga5a5f3fbc8a9a819c02054fc7ec437107"> 99</a></span> <span class="preprocessor">#define HID_SIMUL_REAR_BRAKE 0xD0 </span></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="../../d1/d1e/a00087.html#ga7278a12e5d0034fe4a1376e04abbe411"> 104</a></span> <span class="preprocessor">#define HID_SIMUL_MAGIC_CARPET 0x0B </span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  }</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div></div><!-- fragment --></div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="../../dir_bfccd401955b95cf8c75461437045ac0.html">inc</a></li><li class="navelem"><b>hid_usage_simulation.h</b></li>
- <li class="footer">Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
- </ul>
- </div>
- </body>
- </html>
|