USB_Host_Shield_2.0/hidboot_8cpp_source.html

123 lines
48 KiB
HTML
Raw Normal View History

2013-02-05 20:02:12 +01:00
<!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.11"/>
<title>USB Host Shield 2.0: hidboot.cpp Source File</title>
2013-02-05 20:02:12 +01:00
<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>
2013-02-05 20:02:12 +01:00
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
2013-02-05 20:02:12 +01:00
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
2013-02-05 20:02:12 +01:00
</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">USB Host Shield 2.0
2013-02-05 20:02:12 +01:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
2013-02-05 20:02:12 +01:00
<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>
</div><!-- top -->
2013-02-05 20:02:12 +01:00
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
2013-02-05 20:02:12 +01:00
<!-- 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">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#aed02196a692f8b633fbbebc76eefd4a1"> 19</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_mouse_report_parser.html#aed02196a692f8b633fbbebc76eefd4a1">MouseReportParser::Parse</a>(<a class="code" href="class_u_s_b_h_i_d.html">USBHID</a> *hid __attribute__((unused)), <span class="keywordtype">bool</span> is_rpt_id __attribute__((unused)), uint8_t len __attribute__((unused)), 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">
2016-04-19 18:16:46 +02:00
<div class="ttc" id="class_u_s_b_h_i_d_html"><div class="ttname"><a href="class_u_s_b_h_i_d.html">USBHID</a></div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00143">usbhid.h:143</a></div></div>
2014-01-10 18:20:37 +01:00
<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_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_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="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>
2018-10-13 15:47:19 +02:00
<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#l00161">version_helper.h:161</a></div></div>
2014-01-10 18:20:37 +01:00
<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="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>
2016-04-19 18:16:46 +02:00
<div class="ttc" id="class_keyboard_report_parser_html_a122bfa9d4baa9f85010aea8245c2295c"><div class="ttname"><a href="class_keyboard_report_parser.html#a122bfa9d4baa9f85010aea8245c2295c">KeyboardReportParser::Parse</a></div><div class="ttdeci">void Parse(USBHID *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>
2014-01-10 18:20:37 +01:00
<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>
2018-10-13 15:47:19 +02:00
<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#l00035">macros.h:35</a></div></div>
2014-01-10 18:20:37 +01:00
<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="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_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="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>
2016-04-19 18:16:46 +02:00
<div class="ttc" id="class_mouse_report_parser_html_aed02196a692f8b633fbbebc76eefd4a1"><div class="ttname"><a href="class_mouse_report_parser.html#aed02196a692f8b633fbbebc76eefd4a1">MouseReportParser::Parse</a></div><div class="ttdeci">void Parse(USBHID *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>
2014-01-10 18:20:37 +01:00
<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>
2015-04-07 16:07:33 +02:00
<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>
2013-02-05 20:02:12 +01:00
</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">
2013-02-05 20:02:12 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
2013-02-05 20:02:12 +01:00
</small></address>
</body>
</html>