USB_Host_Shield_2.0/hidboot_8cpp_source.html
Kristian Sloth Lauszus 4f510c5316 Updated documentation
2015-04-07 16:07:33 +02:00

337 lines
54 KiB
HTML

<!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.9.1"/>
<title>USB Host Shield 2.0: hidboot.cpp 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="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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.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 style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_e5fbe6d2783ccd4c93c7856d92d7be6e.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_397a095372f04465e811d0ee219bbf8f.html">USB_Host_Shield_2.0</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">hidboot.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="hidboot_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">This software may be distributed and modified under the terms of the GNU</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">General Public License version 2 (GPL2) as published by the Free Software</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">Foundation and appearing in the file GPL2.TXT included in the packaging of</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">this file. Please note that GPL2 Section 2[b] requires that all works based</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">on this software must also be made publicly available under the terms of</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">the GPL2 (&quot;Copyleft&quot;).</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">Contact information</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">-------------------</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">Circuits At Home, LTD</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">Web : http://www.circuitsathome.com</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">e-mail : support@circuitsathome.com</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="hidboot_8h.html">hidboot.h</a>&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_mouse_report_parser.html#a2dd4e0add7c902300de5e7250c6d6110"> 19</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_mouse_report_parser.html#a2dd4e0add7c902300de5e7250c6d6110">MouseReportParser::Parse</a>(<a class="code" href="class_h_i_d.html">HID</a> *hid, <span class="keywordtype">bool</span> is_rpt_id, uint8_t len, uint8_t *buf) {</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <a class="code" href="struct_m_o_u_s_e_i_n_f_o.html">MOUSEINFO</a> *pmi = (<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html">MOUSEINFO</a>*)buf;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="comment">// Future:</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="comment">// bool event;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#if 0</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keywordflow">if</span> (prevState.mouseInfo.bmLeftButton == 0 &amp;&amp; pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff">bmLeftButton</a> == 1)</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <a class="code" href="class_mouse_report_parser.html#accfab93f9a2ba8fa0998437dcca44086">OnLeftButtonDown</a>(pmi);</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordflow">if</span> (prevState.mouseInfo.bmLeftButton == 1 &amp;&amp; pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff">bmLeftButton</a> == 0)</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <a class="code" href="class_mouse_report_parser.html#a6e640919bf67e70c66f1dcbee5798e45">OnLeftButtonUp</a>(pmi);</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordflow">if</span> (prevState.mouseInfo.bmRightButton == 0 &amp;&amp; pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe">bmRightButton</a> == 1)</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <a class="code" href="class_mouse_report_parser.html#a6884349e6b2de0cbfedf3e1a77c23870">OnRightButtonDown</a>(pmi);</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keywordflow">if</span> (prevState.mouseInfo.bmRightButton == 1 &amp;&amp; pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe">bmRightButton</a> == 0)</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="class_mouse_report_parser.html#a1bdfee565073cd8b77cbeb9e184c174f">OnRightButtonUp</a>(pmi);</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordflow">if</span> (prevState.mouseInfo.bmMiddleButton == 0 &amp;&amp; pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51">bmMiddleButton</a> == 1)</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="class_mouse_report_parser.html#ad1c06ea106608bd3dcb5c90ecc487ac9">OnMiddleButtonDown</a>(pmi);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">if</span> (prevState.mouseInfo.bmMiddleButton == 1 &amp;&amp; pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51">bmMiddleButton</a> == 0)</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="class_mouse_report_parser.html#a7512c9a85581aa4be52a780d7c91f655">OnMiddleButtonUp</a>(pmi);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordflow">if</span> (prevState.mouseInfo.dX != pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a8b67db1c54e5db9782a0b5b707dcf9db">dX</a> || prevState.mouseInfo.dY != pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#ae7192500776548f5c6868cc37eaaabb2">dY</a>)</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="class_mouse_report_parser.html#a3e231baff6196df63dbad9a44f4945a7">OnMouseMove</a>(pmi);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">if</span> (len &gt; <span class="keyword">sizeof</span> (<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html">MOUSEINFO</a>))</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">for</span> (uint8_t i = 0; i&lt;<span class="keyword">sizeof</span> (<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html">MOUSEINFO</a>); i++)</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; prevState.bInfo[i] = buf[i];</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;#<span class="keywordflow">else</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="comment">// Optimization idea:</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="comment">// 1: Don&#39;t pass the structure on every event. Buttons would not need it.</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="comment">// 2: Only pass x/y values in the movement routine.</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// These two changes (with the ones I have made) will save extra flash.</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="comment">// The only &quot;bad&quot; thing is that it could break old code.</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="comment">// Future thoughts:</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="comment">// The extra space gained can be used for a generic mouse event that can be called</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="comment">// when there are _ANY_ changes. This one you _MAY_ want to pass everything, however the</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="comment">// sketch could already have noted these facts to support drag/drop scroll wheel stuff, etc.</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="comment">// Why do we need to pass the structure for buttons?</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="comment">// The function call not enough of a hint for what is happening?</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">if</span>(prevState.mouseInfo.bmLeftButton != pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff">bmLeftButton</a> ) {</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordflow">if</span>(pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff">bmLeftButton</a>) {</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="class_mouse_report_parser.html#accfab93f9a2ba8fa0998437dcca44086">OnLeftButtonDown</a>(pmi);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="code" href="class_mouse_report_parser.html#a6e640919bf67e70c66f1dcbee5798e45">OnLeftButtonUp</a>(pmi);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; }</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="comment">// Future:</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="comment">// event = true;</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; }</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordflow">if</span>(prevState.mouseInfo.bmRightButton != pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe">bmRightButton</a>) {</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keywordflow">if</span>(pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe">bmRightButton</a>) {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="class_mouse_report_parser.html#a6884349e6b2de0cbfedf3e1a77c23870">OnRightButtonDown</a>(pmi);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="class_mouse_report_parser.html#a1bdfee565073cd8b77cbeb9e184c174f">OnRightButtonUp</a>(pmi);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Future:</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="comment">// event = true;</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; }</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span>(prevState.mouseInfo.bmMiddleButton != pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51">bmMiddleButton</a>) {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">if</span>(pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51">bmMiddleButton</a>) {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="class_mouse_report_parser.html#ad1c06ea106608bd3dcb5c90ecc487ac9">OnMiddleButtonDown</a>(pmi);</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="class_mouse_report_parser.html#a7512c9a85581aa4be52a780d7c91f655">OnMiddleButtonUp</a>(pmi);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="comment">// Future:</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="comment">// event = true;</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; }</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="comment">// Scroll wheel(s), are not part of the spec, but we could support it.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="comment">// Logitech wireless keyboard and mouse combo reports scroll wheel in byte 4</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="comment">// We wouldn&#39;t even need to save this information.</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="comment">//if(len &gt; 3) {</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="comment">//}</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="comment">// Mice only report motion when they actually move!</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="comment">// Why not just pass the x/y values to simplify things??</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">if</span>(pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#a8b67db1c54e5db9782a0b5b707dcf9db">dX</a> || pmi-&gt;<a class="code" href="struct_m_o_u_s_e_i_n_f_o.html#ae7192500776548f5c6868cc37eaaabb2">dY</a>) {</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="class_mouse_report_parser.html#a3e231baff6196df63dbad9a44f4945a7">OnMouseMove</a>(pmi);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="comment">// Future:</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="comment">// event = true;</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; }</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// Future:</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="comment">// Provide a callback that operates on the gathered events from above.</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="comment">// if(event) OnMouse();</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="comment">// Only the first byte matters (buttons). We do NOT need to save position info.</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; prevState.bInfo[0] = buf[0];</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;};</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="class_keyboard_report_parser.html#a60d8d4d4d187ce5c0e0d69aee7cc772f"> 127</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_keyboard_report_parser.html#a60d8d4d4d187ce5c0e0d69aee7cc772f">KeyboardReportParser::Parse</a>(<a class="code" href="class_h_i_d.html">HID</a> *hid, <span class="keywordtype">bool</span> is_rpt_id, uint8_t len, uint8_t *buf) {</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="comment">// On error - return</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">if</span> (buf[2] == 1)</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="comment">//KBDINFO *pki = (KBDINFO*)buf;</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="comment">// provide event for changed control key state</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[0x00] != buf[0x00]) {</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <a class="code" href="class_keyboard_report_parser.html#ae8ce494271e8536f4bdc089db51bc67e">OnControlKeysChanged</a>(<a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[0x00], buf[0x00]);</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keywordflow">for</span> (uint8_t i = 2; i &lt; 8; i++) {</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordtype">bool</span> down = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordtype">bool</span> up = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordflow">for</span> (uint8_t j = 2; j &lt; 8; j++) {</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keywordflow">if</span> (buf[i] == <a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[j] &amp;&amp; buf[i] != 1)</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; down = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keywordflow">if</span> (buf[j] == <a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[i] &amp;&amp; <a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[i] != 1)</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; up = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; }</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordflow">if</span> (!down) {</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="class_keyboard_report_parser.html#a392fae2fda91a7d820869e97b3ead444">HandleLockingKeys</a>(hid, buf[i]);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <a class="code" href="class_keyboard_report_parser.html#af855e596bbbb9755535f6e69f4ca2305">OnKeyDown</a>(*buf, buf[i]);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">if</span> (!up)</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <a class="code" href="class_keyboard_report_parser.html#a57710d31e5379db14779f960f5c714b2">OnKeyUp</a>(<a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[0], <a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[i]);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; }</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordflow">for</span> (uint8_t i = 0; i &lt; 8; i++)</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <a class="code" href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">prevState</a>.bInfo[i] = buf[i];</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;};</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="keyword">const</span> uint8_t KeyboardReportParser::numKeys[10] PROGMEM = {<span class="charliteral">&#39;!&#39;</span>, <span class="charliteral">&#39;@&#39;</span>, <span class="charliteral">&#39;#&#39;</span>, <span class="charliteral">&#39;$&#39;</span>, <span class="charliteral">&#39;%&#39;</span>, <span class="charliteral">&#39;^&#39;</span>, <span class="charliteral">&#39;&amp;&#39;</span>, <span class="charliteral">&#39;*&#39;</span>, <span class="charliteral">&#39;(&#39;</span>, <span class="charliteral">&#39;)&#39;</span>};</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;<span class="keyword">const</span> uint8_t KeyboardReportParser::symKeysUp[12] PROGMEM = {<span class="charliteral">&#39;_&#39;</span>, <span class="charliteral">&#39;+&#39;</span>, <span class="charliteral">&#39;{&#39;</span>, <span class="charliteral">&#39;}&#39;</span>, <span class="charliteral">&#39;|&#39;</span>, <span class="charliteral">&#39;~&#39;</span>, <span class="charliteral">&#39;:&#39;</span>, <span class="charliteral">&#39;&quot;&#39;</span>, <span class="charliteral">&#39;~&#39;</span>, <span class="charliteral">&#39;&lt;&#39;</span>, <span class="charliteral">&#39;&gt;&#39;</span>, <span class="charliteral">&#39;?&#39;</span>};</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="keyword">const</span> uint8_t KeyboardReportParser::symKeysLo[12] PROGMEM = {<span class="charliteral">&#39;-&#39;</span>, <span class="charliteral">&#39;=&#39;</span>, <span class="charliteral">&#39;[&#39;</span>, <span class="charliteral">&#39;]&#39;</span>, <span class="charliteral">&#39;\\&#39;</span>, <span class="charliteral">&#39; &#39;</span>, <span class="charliteral">&#39;;&#39;</span>, <span class="charliteral">&#39;\&#39;&#39;</span>, <span class="charliteral">&#39;`&#39;</span>, <span class="charliteral">&#39;,&#39;</span>, <span class="charliteral">&#39;.&#39;</span>, <span class="charliteral">&#39;/&#39;</span>};</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="keyword">const</span> uint8_t KeyboardReportParser::padKeys[5] PROGMEM = {<span class="charliteral">&#39;/&#39;</span>, <span class="charliteral">&#39;*&#39;</span>, <span class="charliteral">&#39;-&#39;</span>, <span class="charliteral">&#39;+&#39;</span>, 0x13};</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="class_keyboard_report_parser.html#aa21e9230ae4c2f068c404a9c2909a1f3"> 165</a></span>&#160;uint8_t <a class="code" href="class_keyboard_report_parser.html#aa21e9230ae4c2f068c404a9c2909a1f3">KeyboardReportParser::OemToAscii</a>(uint8_t mod, uint8_t key) {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; uint8_t shift = (mod &amp; 0x22);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="comment">// [a-z]</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0">VALUE_WITHIN</a>(key, 0x04, 0x1d)) {</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="comment">// Upper case letters</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordflow">if</span> ((<a class="code" href="class_keyboard_report_parser.html#aa052645936a61219fb9f17490dd26115">kbdLockingKeys</a>.kbdLeds.bmCapsLock == 0 &amp;&amp; shift) ||</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; (<a class="code" href="class_keyboard_report_parser.html#aa052645936a61219fb9f17490dd26115">kbdLockingKeys</a>.kbdLeds.bmCapsLock == 1 &amp;&amp; shift == 0))</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordflow">return</span> (key - 4 + <span class="charliteral">&#39;A&#39;</span>);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="comment">// Lower case letters</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keywordflow">return</span> (key - 4 + <span class="charliteral">&#39;a&#39;</span>);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; }<span class="comment">// Numbers</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0">VALUE_WITHIN</a>(key, 0x1e, 0x27)) {</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordflow">if</span> (shift)</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keywordflow">return</span> ((uint8_t)<a class="code" href="version__helper_8h.html#a48c60b057902adf805797f183286728d">pgm_read_byte</a>(&amp;<a class="code" href="class_keyboard_report_parser.html#a963cbe34cb4061dff6262ce4b39a43e2">getNumKeys</a>()[key - 0x1e]));</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordflow">else</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordflow">return</span> ((key == <a class="code" href="hidboot_8h.html#a2458c33386b5c5d5bd2fc0544c9ff70c">UHS_HID_BOOT_KEY_ZERO</a>) ? <span class="charliteral">&#39;0&#39;</span> : key - 0x1e + <span class="charliteral">&#39;1&#39;</span>);</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; }<span class="comment">// Keypad Numbers</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0">VALUE_WITHIN</a>(key, 0x59, 0x61)) {</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordflow">if</span>(<a class="code" href="class_keyboard_report_parser.html#aa052645936a61219fb9f17490dd26115">kbdLockingKeys</a>.kbdLeds.bmNumLock == 1)</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keywordflow">return</span> (key - 0x59 + <span class="charliteral">&#39;1&#39;</span>);</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0">VALUE_WITHIN</a>(key, 0x2d, 0x38))</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keywordflow">return</span> ((shift) ? (uint8_t)<a class="code" href="version__helper_8h.html#a48c60b057902adf805797f183286728d">pgm_read_byte</a>(&amp;<a class="code" href="class_keyboard_report_parser.html#a2df76a06fee8df45a3d0850459887427">getSymKeysUp</a>()[key - 0x2d]) : (uint8_t)<a class="code" href="version__helper_8h.html#a48c60b057902adf805797f183286728d">pgm_read_byte</a>(&amp;<a class="code" href="class_keyboard_report_parser.html#a14a44500a5c22cb7e5374e4e334e0255">getSymKeysLo</a>()[key - 0x2d]));</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0">VALUE_WITHIN</a>(key, 0x54, 0x58))</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keywordflow">return</span> (uint8_t)<a class="code" href="version__helper_8h.html#a48c60b057902adf805797f183286728d">pgm_read_byte</a>(&amp;<a class="code" href="class_keyboard_report_parser.html#afa488405e7ba3ce5249064f38bb8912c">getPadKeys</a>()[key - 0x54]);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keywordflow">switch</span>(key) {</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keywordflow">case</span> <a class="code" href="hidboot_8h.html#abedef4cc17add7fafbbcda43b442964b">UHS_HID_BOOT_KEY_SPACE</a>: <span class="keywordflow">return</span> (0x20);</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordflow">case</span> <a class="code" href="hidboot_8h.html#a42f71f6d2b7e4f543826af0234834237">UHS_HID_BOOT_KEY_ENTER</a>: <span class="keywordflow">return</span> (0x13);</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <span class="keywordflow">case</span> <a class="code" href="hidboot_8h.html#a69193f2a5138ebecc6819e21e6b31c45">UHS_HID_BOOT_KEY_ZERO2</a>: <span class="keywordflow">return</span> ((<a class="code" href="class_keyboard_report_parser.html#aa052645936a61219fb9f17490dd26115">kbdLockingKeys</a>.kbdLeds.bmNumLock == 1) ? <span class="charliteral">&#39;0&#39;</span>: 0);</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordflow">case</span> <a class="code" href="hidboot_8h.html#a70520f779398f17618bbf6848472eecd">UHS_HID_BOOT_KEY_PERIOD</a>: <span class="keywordflow">return</span> ((<a class="code" href="class_keyboard_report_parser.html#aa052645936a61219fb9f17490dd26115">kbdLockingKeys</a>.kbdLeds.bmNumLock == 1) ? <span class="charliteral">&#39;.&#39;</span>: 0);</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; }</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; }</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordflow">return</span> ( 0);</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;}</div>
<div class="ttc" id="hidboot_8h_html"><div class="ttname"><a href="hidboot_8h.html">hidboot.h</a></div></div>
<div class="ttc" id="hidboot_8h_html_a70520f779398f17618bbf6848472eecd"><div class="ttname"><a href="hidboot_8h.html#a70520f779398f17618bbf6848472eecd">UHS_HID_BOOT_KEY_PERIOD</a></div><div class="ttdeci">#define UHS_HID_BOOT_KEY_PERIOD</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00029">hidboot.h:29</a></div></div>
<div class="ttc" id="struct_m_o_u_s_e_i_n_f_o_html_a07f604e1dffc0a72fa28e94a5094ebbe"><div class="ttname"><a href="struct_m_o_u_s_e_i_n_f_o.html#a07f604e1dffc0a72fa28e94a5094ebbe">MOUSEINFO::bmRightButton</a></div><div class="ttdeci">uint8_t bmRightButton</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00043">hidboot.h:43</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_a14a44500a5c22cb7e5374e4e334e0255"><div class="ttname"><a href="class_keyboard_report_parser.html#a14a44500a5c22cb7e5374e4e334e0255">KeyboardReportParser::getSymKeysLo</a></div><div class="ttdeci">virtual const uint8_t * getSymKeysLo()</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00189">hidboot.h:189</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_a6884349e6b2de0cbfedf3e1a77c23870"><div class="ttname"><a href="class_mouse_report_parser.html#a6884349e6b2de0cbfedf3e1a77c23870">MouseReportParser::OnRightButtonDown</a></div><div class="ttdeci">virtual void OnRightButtonDown(MOUSEINFO *mi)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00075">hidboot.h:75</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_af855e596bbbb9755535f6e69f4ca2305"><div class="ttname"><a href="class_keyboard_report_parser.html#af855e596bbbb9755535f6e69f4ca2305">KeyboardReportParser::OnKeyDown</a></div><div class="ttdeci">virtual void OnKeyDown(uint8_t mod, uint8_t key)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00175">hidboot.h:175</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_a392fae2fda91a7d820869e97b3ead444"><div class="ttname"><a href="class_keyboard_report_parser.html#a392fae2fda91a7d820869e97b3ead444">KeyboardReportParser::HandleLockingKeys</a></div><div class="ttdeci">virtual uint8_t HandleLockingKeys(HID *hid, uint8_t key)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00151">hidboot.h:151</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_a7512c9a85581aa4be52a780d7c91f655"><div class="ttname"><a href="class_mouse_report_parser.html#a7512c9a85581aa4be52a780d7c91f655">MouseReportParser::OnMiddleButtonUp</a></div><div class="ttdeci">virtual void OnMiddleButtonUp(MOUSEINFO *mi)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00078">hidboot.h:78</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_a2dd4e0add7c902300de5e7250c6d6110"><div class="ttname"><a href="class_mouse_report_parser.html#a2dd4e0add7c902300de5e7250c6d6110">MouseReportParser::Parse</a></div><div class="ttdeci">void Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8cpp_source.html#l00019">hidboot.cpp:19</a></div></div>
<div class="ttc" id="hidboot_8h_html_a69193f2a5138ebecc6819e21e6b31c45"><div class="ttname"><a href="hidboot_8h.html#a69193f2a5138ebecc6819e21e6b31c45">UHS_HID_BOOT_KEY_ZERO2</a></div><div class="ttdeci">#define UHS_HID_BOOT_KEY_ZERO2</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00028">hidboot.h:28</a></div></div>
<div class="ttc" id="version__helper_8h_html_a48c60b057902adf805797f183286728d"><div class="ttname"><a href="version__helper_8h.html#a48c60b057902adf805797f183286728d">pgm_read_byte</a></div><div class="ttdeci">#define pgm_read_byte(addr)</div><div class="ttdef"><b>Definition:</b> <a href="version__helper_8h_source.html#l00182">version_helper.h:182</a></div></div>
<div class="ttc" id="hidboot_8h_html_a2458c33386b5c5d5bd2fc0544c9ff70c"><div class="ttname"><a href="hidboot_8h.html#a2458c33386b5c5d5bd2fc0544c9ff70c">UHS_HID_BOOT_KEY_ZERO</a></div><div class="ttdeci">#define UHS_HID_BOOT_KEY_ZERO</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00022">hidboot.h:22</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_a57710d31e5379db14779f960f5c714b2"><div class="ttname"><a href="class_keyboard_report_parser.html#a57710d31e5379db14779f960f5c714b2">KeyboardReportParser::OnKeyUp</a></div><div class="ttdeci">virtual void OnKeyUp(uint8_t mod, uint8_t key)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00178">hidboot.h:178</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_a60d8d4d4d187ce5c0e0d69aee7cc772f"><div class="ttname"><a href="class_keyboard_report_parser.html#a60d8d4d4d187ce5c0e0d69aee7cc772f">KeyboardReportParser::Parse</a></div><div class="ttdeci">void Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8cpp_source.html#l00127">hidboot.cpp:127</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_a2df76a06fee8df45a3d0850459887427"><div class="ttname"><a href="class_keyboard_report_parser.html#a2df76a06fee8df45a3d0850459887427">KeyboardReportParser::getSymKeysUp</a></div><div class="ttdeci">virtual const uint8_t * getSymKeysUp()</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00185">hidboot.h:185</a></div></div>
<div class="ttc" id="struct_m_o_u_s_e_i_n_f_o_html_a7fb48a7cb68cfc8db2bb8838694c0b51"><div class="ttname"><a href="struct_m_o_u_s_e_i_n_f_o.html#a7fb48a7cb68cfc8db2bb8838694c0b51">MOUSEINFO::bmMiddleButton</a></div><div class="ttdeci">uint8_t bmMiddleButton</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00044">hidboot.h:44</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_a6e640919bf67e70c66f1dcbee5798e45"><div class="ttname"><a href="class_mouse_report_parser.html#a6e640919bf67e70c66f1dcbee5798e45">MouseReportParser::OnLeftButtonUp</a></div><div class="ttdeci">virtual void OnLeftButtonUp(MOUSEINFO *mi)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00066">hidboot.h:66</a></div></div>
<div class="ttc" id="hidboot_8h_html_abedef4cc17add7fafbbcda43b442964b"><div class="ttname"><a href="hidboot_8h.html#abedef4cc17add7fafbbcda43b442964b">UHS_HID_BOOT_KEY_SPACE</a></div><div class="ttdeci">#define UHS_HID_BOOT_KEY_SPACE</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00024">hidboot.h:24</a></div></div>
<div class="ttc" id="struct_m_o_u_s_e_i_n_f_o_html"><div class="ttname"><a href="struct_m_o_u_s_e_i_n_f_o.html">MOUSEINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00039">hidboot.h:39</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_a3e231baff6196df63dbad9a44f4945a7"><div class="ttname"><a href="class_mouse_report_parser.html#a3e231baff6196df63dbad9a44f4945a7">MouseReportParser::OnMouseMove</a></div><div class="ttdeci">virtual void OnMouseMove(MOUSEINFO *mi)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00063">hidboot.h:63</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_a1bdfee565073cd8b77cbeb9e184c174f"><div class="ttname"><a href="class_mouse_report_parser.html#a1bdfee565073cd8b77cbeb9e184c174f">MouseReportParser::OnRightButtonUp</a></div><div class="ttdeci">virtual void OnRightButtonUp(MOUSEINFO *mi)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00072">hidboot.h:72</a></div></div>
<div class="ttc" id="class_h_i_d_html"><div class="ttname"><a href="class_h_i_d.html">HID</a></div><div class="ttdef"><b>Definition:</b> <a href="hid_8h_source.html#l00143">hid.h:143</a></div></div>
<div class="ttc" id="macros_8h_html_ad1bf62861b3f4199c42a93bf6b2181d0"><div class="ttname"><a href="macros_8h.html#ad1bf62861b3f4199c42a93bf6b2181d0">VALUE_WITHIN</a></div><div class="ttdeci">#define VALUE_WITHIN(v, l, h)</div><div class="ttdef"><b>Definition:</b> <a href="macros_8h_source.html#l00028">macros.h:28</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_ad1c06ea106608bd3dcb5c90ecc487ac9"><div class="ttname"><a href="class_mouse_report_parser.html#ad1c06ea106608bd3dcb5c90ecc487ac9">MouseReportParser::OnMiddleButtonDown</a></div><div class="ttdeci">virtual void OnMiddleButtonDown(MOUSEINFO *mi)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00081">hidboot.h:81</a></div></div>
<div class="ttc" id="hidboot_8h_html_a42f71f6d2b7e4f543826af0234834237"><div class="ttname"><a href="hidboot_8h.html#a42f71f6d2b7e4f543826af0234834237">UHS_HID_BOOT_KEY_ENTER</a></div><div class="ttdeci">#define UHS_HID_BOOT_KEY_ENTER</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00023">hidboot.h:23</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_a3591fcc056c59914f83e21601fa3d5c5"><div class="ttname"><a href="class_keyboard_report_parser.html#a3591fcc056c59914f83e21601fa3d5c5">KeyboardReportParser::prevState</a></div><div class="ttdeci">union KeyboardReportParser::@17 prevState</div></div>
<div class="ttc" id="struct_m_o_u_s_e_i_n_f_o_html_a8b67db1c54e5db9782a0b5b707dcf9db"><div class="ttname"><a href="struct_m_o_u_s_e_i_n_f_o.html#a8b67db1c54e5db9782a0b5b707dcf9db">MOUSEINFO::dX</a></div><div class="ttdeci">int8_t dX</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00047">hidboot.h:47</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_ae8ce494271e8536f4bdc089db51bc67e"><div class="ttname"><a href="class_keyboard_report_parser.html#ae8ce494271e8536f4bdc089db51bc67e">KeyboardReportParser::OnControlKeysChanged</a></div><div class="ttdeci">virtual void OnControlKeysChanged(uint8_t before, uint8_t after)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00172">hidboot.h:172</a></div></div>
<div class="ttc" id="class_mouse_report_parser_html_accfab93f9a2ba8fa0998437dcca44086"><div class="ttname"><a href="class_mouse_report_parser.html#accfab93f9a2ba8fa0998437dcca44086">MouseReportParser::OnLeftButtonDown</a></div><div class="ttdeci">virtual void OnLeftButtonDown(MOUSEINFO *mi)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00069">hidboot.h:69</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_a963cbe34cb4061dff6262ce4b39a43e2"><div class="ttname"><a href="class_keyboard_report_parser.html#a963cbe34cb4061dff6262ce4b39a43e2">KeyboardReportParser::getNumKeys</a></div><div class="ttdeci">virtual const uint8_t * getNumKeys()</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00181">hidboot.h:181</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_aa052645936a61219fb9f17490dd26115"><div class="ttname"><a href="class_keyboard_report_parser.html#aa052645936a61219fb9f17490dd26115">KeyboardReportParser::kbdLockingKeys</a></div><div class="ttdeci">union KeyboardReportParser::@18 kbdLockingKeys</div></div>
<div class="ttc" id="class_keyboard_report_parser_html_afa488405e7ba3ce5249064f38bb8912c"><div class="ttname"><a href="class_keyboard_report_parser.html#afa488405e7ba3ce5249064f38bb8912c">KeyboardReportParser::getPadKeys</a></div><div class="ttdeci">virtual const uint8_t * getPadKeys()</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00193">hidboot.h:193</a></div></div>
<div class="ttc" id="struct_m_o_u_s_e_i_n_f_o_html_ae7192500776548f5c6868cc37eaaabb2"><div class="ttname"><a href="struct_m_o_u_s_e_i_n_f_o.html#ae7192500776548f5c6868cc37eaaabb2">MOUSEINFO::dY</a></div><div class="ttdeci">int8_t dY</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00048">hidboot.h:48</a></div></div>
<div class="ttc" id="struct_m_o_u_s_e_i_n_f_o_html_a848ceb3b38f0dc9e09a83612c1fa89ff"><div class="ttname"><a href="struct_m_o_u_s_e_i_n_f_o.html#a848ceb3b38f0dc9e09a83612c1fa89ff">MOUSEINFO::bmLeftButton</a></div><div class="ttdeci">uint8_t bmLeftButton</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8h_source.html#l00042">hidboot.h:42</a></div></div>
<div class="ttc" id="class_keyboard_report_parser_html_aa21e9230ae4c2f068c404a9c2909a1f3"><div class="ttname"><a href="class_keyboard_report_parser.html#aa21e9230ae4c2f068c404a9c2909a1f3">KeyboardReportParser::OemToAscii</a></div><div class="ttdeci">uint8_t OemToAscii(uint8_t mod, uint8_t key)</div><div class="ttdef"><b>Definition:</b> <a href="hidboot_8cpp_source.html#l00165">hidboot.cpp:165</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>