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" / >
2020-11-18 20:17:17 +01:00
< meta name = "generator" content = "Doxygen 1.8.13" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2013-02-17 01:37:13 +01:00
< title > USB Host Shield 2.0: hiduniversal.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" / >
2019-08-31 18:18:58 +02:00
< 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 >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
2013-02-05 22:39:56 +01:00
< 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;" >
2019-08-31 18:18:58 +02:00
< td id = "projectalign" style = "padding-left: 0.5em;" >
2013-02-17 01:37:13 +01:00
< 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 -->
2020-11-18 20:17:17 +01:00
<!-- Generated by Doxygen 1.8.13 -->
2013-02-05 20:02:12 +01:00
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
2020-11-18 20:17:17 +01:00
< 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 >
2018-10-13 16:56:59 +02:00
< / 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)">
2019-08-31 18:18:58 +02:00
< / 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" > hiduniversal.cpp< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2021-01-17 17:48:26 +01:00
< a href = "hiduniversal_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 >   < 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 >   < span class = "comment" > < / span > < / div > < div class = "line" > < a name = "l00003" > < / a > < span class = "lineno" > 3< / span >   < 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 >   < 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 >   < 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 >   < 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 >   < 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 >   < span class = "comment" > the GPL2 (" Copyleft" ).< / span > < / div > < div class = "line" > < a name = "l00009" > < / a > < span class = "lineno" > 9< / span >   < span class = "comment" > < / span > < / div > < div class = "line" > < a name = "l00010" > < / a > < span class = "lineno" > 10< / span >   < span class = "comment" > Contact information< / span > < / div > < div class = "line" > < a name = "l00011" > < / a > < span class = "lineno" > 11< / span >   < span class = "comment" > -------------------< / span > < / div > < div class = "line" > < a name = "l00012" > < / a > < span class = "lineno" > 12< / span >   < span class = "comment" > < / span > < / div > < div class = "line" > < a name = "l00013" > < / a > < span class = "lineno" > 13< / span >   < span class = "comment" > Circuits At Home, LTD< / span > < / div > < div class = "line" > < a name = "l00014" > < / a > < span class = "lineno" > 14< / span >   < span class = "comment" > Web : http://www.circuitsathome.com< / span > < / div > < div class = "line" > < a name = "l00015" > < / a > < span class = "lineno" > 15< / span >   < span class = "comment" > e-mail : support@circuitsathome.com< / span > < / div > < div class = "line" > < a name = "l00016" > < / a > < span class = "lineno" > 16< / span >   < span class = "comment" > */< / span > < / div > < div class = "line" > < a name = "l00017" > < / a > < span class = "lineno" > 17< / span >   < / div > < div class = "line" > < a name = "l00018" > < / a > < span class = "lineno" > 18< / span >   < span class = "preprocessor" > #include " < a class = "code" href = "hiduniversal_8h.html" > hiduniversal.h< / a > " < / span > < / div > < div class = "line" > < a name = "l00019" > < / a > < span class = "lineno" > 19< / span >   < / div > < div class = "line" > < a name = "l00020" > < / a > < span class = "lineno" > < a class = "line" href = "class_h_i_d_universal.html#a71b7d8e31a4331071bbc0e3b678cdd3f" > 20< / a > < / span >   uint8_t < a class = "code" href = "class_h_i_d_universal.html#a71b7d8e31a4331071bbc0e3b678cdd3f" > HIDUniversal::Poll< / a > () {< / div > < div class = "line" > < a name = "l00021" > < / a > < span class = "lineno" > 21< / span >   uint8_t rcode = 0;< / div > < div class = "line" > < a name = "l00022" > < / a > < span class = "lineno" > 22< / span >   < / div > < div class = "line" > < a name = "l00023" > < / a > < span class = "lineno" > 23< / span >   < span class = "keywordflow" > if< / span > (!< a class = "code" href = "class_h_i_d_composite.html#a4e1f64150affa87b1b813a988e4f78c8" > bPollEnable< / a > )< / div > < div class = "line" > < a name = "l00024" > < / a > < span class = "lineno" > 24< / span >   < span class = "keywordflow" > return< / span > 0;< / div > < div class = "line" > < a name = "l00025" > < / a > < span class = "lineno" > 25< / span >   < / div > < div class = "line" > < a name = "l00026" > < / a > < span class = "lineno" > 26< / span >   < span class = "keywordflow" > if< / span > ((int32_t)((uint32_t)millis() - < a class = "code" href = "class_h_i_d_composite.html#a2321ef1ab62deccdc4c0294dad333b54" > qNextPollTime< / a > ) > = 0< a class = "code"
< div class = "ttc" id = "class_h_i_d_universal_html_a71b7d8e31a4331071bbc0e3b678cdd3f" > < div class = "ttname" > < a href = "class_h_i_d_universal.html#a71b7d8e31a4331071bbc0e3b678cdd3f" > HIDUniversal::Poll< / a > < / div > < div class = "ttdeci" > uint8_t Poll() override< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hiduniversal_8cpp_source.html#l00020" > hiduniversal.cpp:20< / a > < / div > < / div >
< div class = "ttc" id = "class_h_i_d_composite_html_a374a34b7f7f94aa1dfb73ca48a5231ce" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#a374a34b7f7f94aa1dfb73ca48a5231ce" > HIDComposite::hidInterfaces< / a > < / div > < div class = "ttdeci" > HIDInterface hidInterfaces[maxHidInterfaces]< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00064" > hidcomposite.h:64< / a > < / div > < / div >
< div class = "ttc" id = "class_h_i_d_composite_html_abd584015be45fe945f9062c2c5b2a867" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#abd584015be45fe945f9062c2c5b2a867" > HIDComposite::bHasReportId< / a > < / div > < div class = "ttdeci" > bool bHasReportId< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00069" > hidcomposite.h:69< / a > < / div > < / div >
< div class = "ttc" id = "struct_h_i_d_composite_1_1_h_i_d_interface_html_a7ce696fff257654bff4bed12ebd1a01b" > < div class = "ttname" > < a href = "struct_h_i_d_composite_1_1_h_i_d_interface.html#a7ce696fff257654bff4bed12ebd1a01b" > HIDComposite::HIDInterface::epIndex< / a > < / div > < div class = "ttdeci" > uint8_t epIndex[maxEpPerInterface+1]< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00045" > hidcomposite.h:45< / a > < / div > < / div >
< div class = "ttc" id = "class_h_i_d_composite_html_a4101c34c5079bd827953368450140a9a" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#a4101c34c5079bd827953368450140a9a" > HIDComposite::epInfo< / a > < / div > < div class = "ttdeci" > EpInfo epInfo[totalEndpoints]< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00063" > hidcomposite.h:63< / a > < / div > < / div >
2018-10-13 15:47:19 +02:00
< div class = "ttc" id = "message_8h_html_a27117e124c5d66d5512fe8d494fe6338" > < div class = "ttname" > < a href = "message_8h.html#a27117e124c5d66d5512fe8d494fe6338" > Notify< / a > < / div > < div class = "ttdeci" > #define Notify(...)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "message_8h_source.html#l00051" > message.h:51< / a > < / div > < / div >
2021-01-17 17:48:26 +01:00
< div class = "ttc" id = "class_h_i_d_composite_html_ac42fb3b1c0ad8019bebbde5e623cf0a1" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#ac42fb3b1c0ad8019bebbde5e623cf0a1" > HIDComposite::bNumIface< / a > < / div > < div class = "ttdeci" > uint8_t bNumIface< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00049" > hidcomposite.h:49< / a > < / div > < / div >
< div class = "ttc" id = "class_h_i_d_composite_html_a33882712ebd600a16e7e62c87853cea7" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#a33882712ebd600a16e7e62c87853cea7" > HIDComposite::constBuffLen< / a > < / div > < div class = "ttdeci" > static const uint16_t constBuffLen< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00055" > hidcomposite.h:55< / a > < / div > < / div >
2018-10-13 15:47:19 +02:00
< div class = "ttc" id = "max3421e_8h_html_ab44a7968d08016b58d98951059c37076" > < div class = "ttname" > < a href = "max3421e_8h.html#ab44a7968d08016b58d98951059c37076" > hrNAK< / a > < / div > < div class = "ttdeci" > #define hrNAK< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "max3421e_8h_source.html#l00218" > max3421e.h:218< / a > < / div > < / div >
2016-04-19 18:16:46 +02:00
< div class = "ttc" id = "class_u_s_b_h_i_d_html_a35fe591ddd550b290d1e88c321617ab6" > < div class = "ttname" > < a href = "class_u_s_b_h_i_d.html#a35fe591ddd550b290d1e88c321617ab6" > USBHID::bAddress< / a > < / div > < div class = "ttdeci" > uint8_t bAddress< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "usbhid_8h_source.html#l00146" > usbhid.h:146< / a > < / div > < / div >
2021-01-17 17:48:26 +01:00
< div class = "ttc" id = "class_h_i_d_composite_html_a968d81013f2fe7b3f44953fbe0d3a822" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#a968d81013f2fe7b3f44953fbe0d3a822" > HIDComposite::ZeroMemory< / a > < / div > < div class = "ttdeci" > void ZeroMemory(uint8_t len, uint8_t *buf)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8cpp_source.html#l00364" > hidcomposite.cpp:364< / a > < / div > < / div >
< div class = "ttc" id = "class_h_i_d_composite_html_a4e1f64150affa87b1b813a988e4f78c8" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#a4e1f64150affa87b1b813a988e4f78c8" > HIDComposite::bPollEnable< / a > < / div > < div class = "ttdeci" > bool bPollEnable< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00053" > hidcomposite.h:53< / a > < / div > < / div >
2018-10-13 15:47:19 +02:00
< div class = "ttc" id = "controller_enums_8h_html_a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f" > < div class = "ttname" > < a href = "controller_enums_8h.html#a94f7389d205c78830a5441370d7870fdaef31cc6fe9479955961311ee18ac205f" > L< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "controller_enums_8h_source.html#l00102" > controllerEnums.h:102< / a > < / div > < / div >
2016-04-19 18:16:46 +02:00
< div class = "ttc" id = "class_u_s_b_h_i_d_html_a722462978813b2154698516b729e834d" > < div class = "ttname" > < a href = "class_u_s_b_h_i_d.html#a722462978813b2154698516b729e834d" > USBHID::epInterruptInIndex< / a > < / div > < div class = "ttdeci" > static const uint8_t epInterruptInIndex< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "usbhid_8h_source.html#l00149" > usbhid.h:149< / a > < / div > < / div >
2018-10-13 15:47:19 +02:00
< div class = "ttc" id = "version__helper_8h_html_a73809107539df84eaf01f6a4dea4fbff" > < div class = "ttname" > < a href = "version__helper_8h.html#a73809107539df84eaf01f6a4dea4fbff" > PSTR< / a > < / div > < div class = "ttdeci" > #define PSTR(str)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "version__helper_8h_source.html#l00054" > version_helper.h:54< / a > < / div > < / div >
2013-10-21 21:15:43 +02:00
< div class = "ttc" id = "hiduniversal_8h_html" > < div class = "ttname" > < a href = "hiduniversal_8h.html" > hiduniversal.h< / a > < / div > < / div >
2018-11-18 10:53:17 +01:00
< div class = "ttc" id = "class_u_s_b_html_aead4d2040c641d55176854b236804088" > < div class = "ttname" > < a href = "class_u_s_b.html#aead4d2040c641d55176854b236804088" > USB::inTransfer< / a > < / div > < div class = "ttdeci" > uint8_t inTransfer(uint8_t addr, uint8_t ep, uint16_t *nbytesptr, uint8_t *data, uint8_t bInterval=0)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "_usb_8cpp_source.html#l00209" > Usb.cpp:209< / a > < / div > < / div >
2016-04-19 18:16:46 +02:00
< div class = "ttc" id = "class_h_i_d_report_parser_html" > < div class = "ttname" > < a href = "class_h_i_d_report_parser.html" > HIDReportParser< / a > < / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "usbhid_8h_source.html#l00138" > usbhid.h:138< / a > < / div > < / div >
2021-01-17 17:48:26 +01:00
< div class = "ttc" id = "class_h_i_d_composite_html_a2def47200c98f97f3a3171d50e38f2d0" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#a2def47200c98f97f3a3171d50e38f2d0" > HIDComposite::GetReportParser< / a > < / div > < div class = "ttdeci" > HIDReportParser * GetReportParser(uint8_t id)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8cpp_source.html#l00083" > hidcomposite.cpp:83< / a > < / div > < / div >
2018-10-13 15:47:19 +02:00
< div class = "ttc" id = "macros_8h_html_a3b6ba9344d4ae0847095896841587862" > < div class = "ttname" > < a href = "macros_8h.html#a3b6ba9344d4ae0847095896841587862" > USBTRACE3< / a > < / div > < div class = "ttdeci" > #define USBTRACE3(s, r, l)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "macros_8h_source.html#l00085" > macros.h:85< / a > < / div > < / div >
2016-04-19 18:16:46 +02:00
< div class = "ttc" id = "class_h_i_d_report_parser_html_af6c4b832fad296860bae406730e792da" > < div class = "ttname" > < a href = "class_h_i_d_report_parser.html#af6c4b832fad296860bae406730e792da" > HIDReportParser::Parse< / a > < / div > < div class = "ttdeci" > virtual void Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)=0< / div > < / div >
2021-01-17 17:48:26 +01:00
< div class = "ttc" id = "class_h_i_d_composite_html_ae1cd12f8f2dc3f6a585f6c90bde24f2b" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#ae1cd12f8f2dc3f6a585f6c90bde24f2b" > HIDComposite::pollInterval< / a > < / div > < div class = "ttdeci" > uint8_t pollInterval< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00052" > hidcomposite.h:52< / a > < / div > < / div >
< div class = "ttc" id = "class_h_i_d_composite_html_a2321ef1ab62deccdc4c0294dad333b54" > < div class = "ttname" > < a href = "class_h_i_d_composite.html#a2321ef1ab62deccdc4c0294dad333b54" > HIDComposite::qNextPollTime< / a > < / div > < div class = "ttdeci" > uint32_t qNextPollTime< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "hidcomposite_8h_source.html#l00051" > hidcomposite.h:51< / 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 >
2013-02-17 01:37:13 +01:00
Generated by   < a href = "http://www.doxygen.org/index.html" >
2013-02-05 20:02:12 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
2020-11-18 20:17:17 +01:00
< / a > 1.8.13
2013-02-05 20:02:12 +01:00
< / small > < / address >
< / body >
< / html >