USB_Host_Shield_2.0/usbh__midi_8h_source.html

277 lines
53 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2016-04-19 18:16:46 +02:00
<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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2016-04-19 18:16:46 +02:00
<title>USB Host Shield 2.0: usbh_midi.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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
2016-04-19 18:16:46 +02:00
<script type="text/javascript" src="search/search.js"></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 id="projectalign" style="padding-left: 0.5em;">
2016-04-19 18:16:46 +02:00
<div id="projectname">USB Host Shield 2.0
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
2016-04-19 18:16:46 +02:00
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
2016-04-19 18:16:46 +02:00
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
2016-04-19 18:16:46 +02:00
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
2016-04-19 18:16:46 +02:00
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
2016-04-19 18:16:46 +02: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">usbh_midi.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="usbh__midi_8h.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">/*</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"> * USB-MIDI class driver for USB Host Shield 2.0 Library</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Copyright (c) 2012-2021 Yuuichi Akagawa</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Idea from LPK25 USB-MIDI to Serial MIDI converter</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * by Collin Cunningham - makezine.com, narbotic.com</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * for use with USB Host Shield 2.0 from Circuitsathome.com</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * https://github.com/felis/USB_Host_Shield_2.0</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"> * This program is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * (at your option) any later version.</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="comment"> * This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> * along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> *******************************************************************************</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#if !defined(_USBH_MIDI_H_)</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#define _USBH_MIDI_H_</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_usb_8h.html">Usb.h</a>&quot;</span></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"><a class="line" href="usbh__midi_8h.html#aedbb874461f06ee82661c00de153c126"> 31</a></span>&#160;<span class="preprocessor">#define USBH_MIDI_VERSION 600</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="usbh__midi_8h.html#a209d19007c615d3f300a5d3717776a45"> 32</a></span>&#160;<span class="preprocessor">#define MIDI_MAX_ENDPOINTS 3 //endpoint 0, bulk_IN(MIDI), bulk_OUT(MIDI)</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="usbh__midi_8h.html#a071b718fc63564ff2ae0b8b8d8e638fc"> 33</a></span>&#160;<span class="preprocessor">#define USB_SUBCLASS_MIDISTREAMING 3</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="usbh__midi_8h.html#a0cb5d0be715a42f36440b29eaa728c58"> 34</a></span>&#160;<span class="preprocessor">#define MIDI_EVENT_PACKET_SIZE 64</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="usbh__midi_8h.html#ac62d581ae088d3699a4f39672ac2ff51"> 35</a></span>&#160;<span class="preprocessor">#define MIDI_MAX_SYSEX_SIZE 256</span></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"><a class="line" href="namespace__ns___u_s_b_h___m_i_d_i.html"> 37</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace__ns___u_s_b_h___m_i_d_i.html">_ns_USBH_MIDI</a> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="namespace__ns___u_s_b_h___m_i_d_i.html#a6d9a790b55e130c829346de550e48171"> 38</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="namespace__ns___u_s_b_h___m_i_d_i.html#a6d9a790b55e130c829346de550e48171">cin2len</a>[] PROGMEM = {0, 0, 2, 3, 3, 1, 2, 3, 3, 3, 3, 3, 2, 2, 3, 1};</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespace__ns___u_s_b_h___m_i_d_i.html#a18fc7fd34f31ff27aef0c4dd080aa2f0"> 39</a></span>&#160;<span class="keyword">const</span> uint8_t <a class="code" href="namespace__ns___u_s_b_h___m_i_d_i.html#a18fc7fd34f31ff27aef0c4dd080aa2f0">sys2cin</a>[] PROGMEM = {0, 2, 3, 2, 0, 0, 5, 0, 0xf, 0, 0xf, 0xf, 0xf, 0, 0xf, 0xf};</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;}</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="comment">// Endpoint Descriptor extracter Class</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_usb_midi_config_xtracter.html"> 43</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_usb_midi_config_xtracter.html">UsbMidiConfigXtracter</a> {</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="comment">//virtual void ConfigXtract(const USB_CONFIGURATION_DESCRIPTOR *conf) = 0;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="comment">//virtual void InterfaceXtract(uint8_t conf, const USB_INTERFACE_DESCRIPTOR *iface) = 0;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_usb_midi_config_xtracter.html#aca20e9d1b079c1ecfe5bcec748322269"> 48</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_usb_midi_config_xtracter.html#aca20e9d1b079c1ecfe5bcec748322269">EndpointXtract</a>(uint8_t conf __attribute__((unused)), uint8_t iface __attribute__((unused)), uint8_t alt __attribute__((unused)), uint8_t proto __attribute__((unused)), <span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a> *ep __attribute__((unused))) {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; };</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;};</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="comment">// Configuration Descriptor Parser Class</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_midi_desc_parser.html"> 53</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_midi_desc_parser.html">MidiDescParser</a> : <span class="keyword">public</span> <a class="code" href="class_u_s_b_read_parser.html">USBReadParser</a> {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="class_usb_midi_config_xtracter.html">UsbMidiConfigXtracter</a> *theXtractor;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <a class="code" href="struct_multi_value_buffer.html">MultiValueBuffer</a> theBuffer;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="class_multi_byte_value_parser.html">MultiByteValueParser</a> valParser;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="class_byte_skipper.html">ByteSkipper</a> theSkipper;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; uint8_t varBuffer[16 <span class="comment">/*sizeof(USB_CONFIGURATION_DESCRIPTOR)*/</span>];</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; uint8_t stateParseDescr; <span class="comment">// ParseDescriptor state</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; uint8_t dscrLen; <span class="comment">// Descriptor length</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; uint8_t dscrType; <span class="comment">// Descriptor type</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; uint8_t nEPs; <span class="comment">// number of valid endpoint</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">bool</span> isMidiSearch; <span class="comment">//Configuration mode true: MIDI, false: Vendor specific</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordtype">bool</span> isGoodInterface; <span class="comment">// Apropriate interface flag</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; uint8_t confValue; <span class="comment">// Configuration value</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordtype">bool</span> ParseDescriptor(uint8_t **pp, uint16_t *pcntdn);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="class_midi_desc_parser.html#a73ad6ad9905a7ff130bf5c0f267eb77a">MidiDescParser</a>(<a class="code" href="class_usb_midi_config_xtracter.html">UsbMidiConfigXtracter</a> *xtractor, <span class="keywordtype">bool</span> modeMidi);</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_midi_desc_parser.html#a181d16588ff810dfb7a63c31ca68d7b1">Parse</a>(<span class="keyword">const</span> uint16_t len, <span class="keyword">const</span> uint8_t *pbuf, <span class="keyword">const</span> uint16_t &amp;offset);</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_midi_desc_parser.html#a6b3d13f2deafad928f3ec049d6fb800b"> 75</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_midi_desc_parser.html#a6b3d13f2deafad928f3ec049d6fb800b">getConfValue</a>() { <span class="keywordflow">return</span> confValue; };</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_midi_desc_parser.html#ab85a5d420aaf4ff4d5e30b54e0ce9309"> 76</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_midi_desc_parser.html#ab85a5d420aaf4ff4d5e30b54e0ce9309">getNumEPs</a>() { <span class="keywordflow">return</span> nEPs; };</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; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html"> 80</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_u_s_b_h___m_i_d_i.html">USBH_MIDI</a> : <span class="keyword">public</span> <a class="code" href="class_u_s_b_device_config.html">USBDeviceConfig</a>, <span class="keyword">public</span> <a class="code" href="class_usb_midi_config_xtracter.html">UsbMidiConfigXtracter</a></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;{</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#a08afe33201b6e679b1c2236da699126e"> 83</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a08afe33201b6e679b1c2236da699126e">epDataInIndex</a> = 1; <span class="comment">// DataIn endpoint index(MIDI)</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#a2a2e35a5ce5ffc8605837de2587db740"> 84</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a2a2e35a5ce5ffc8605837de2587db740">epDataOutIndex</a>= 2; <span class="comment">// DataOUT endpoint index(MIDI)</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="comment">/* mandatory members */</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#af0c14d1bc7f60e8191b07bcca0c20c84"> 87</a></span>&#160; <a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_u_s_b_h___m_i_d_i.html#af0c14d1bc7f60e8191b07bcca0c20c84">pUsb</a>;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#aef410de857fd657d467b0406d29f4aed"> 88</a></span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#aef410de857fd657d467b0406d29f4aed">bAddress</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#a345bc9669e1627eae5d2663560813797"> 89</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#a345bc9669e1627eae5d2663560813797">bPollEnable</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#aa578074365d77bb3e41063a18625dfe3"> 90</a></span>&#160; uint16_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#aaf7ec77f0d8cefff1316ae049747e2a7">pid</a>, <a class="code" href="class_u_s_b_h___m_i_d_i.html#aa578074365d77bb3e41063a18625dfe3">vid</a>; <span class="comment">// ProductID, VendorID</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#a16cc26804628e2ea32513b4cce1aa7c3"> 91</a></span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a16cc26804628e2ea32513b4cce1aa7c3">bTransferTypeMask</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="comment">/* Endpoint data structure */</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#ac947c1e0feea5cc9387c35bbd9bde961"> 93</a></span>&#160; <a class="code" href="struct_ep_info.html">EpInfo</a> <a class="code" href="class_u_s_b_h___m_i_d_i.html#ac947c1e0feea5cc9387c35bbd9bde961">epInfo</a>[<a class="code" href="usbh__midi_8h.html#a209d19007c615d3f300a5d3717776a45">MIDI_MAX_ENDPOINTS</a>];</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="comment">/* MIDI Event packet buffer */</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#aa84131af42cd34c3d62763a7b3f07d2f"> 95</a></span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#aa84131af42cd34c3d62763a7b3f07d2f">recvBuf</a>[<a class="code" href="usbh__midi_8h.html#a0cb5d0be715a42f36440b29eaa728c58">MIDI_EVENT_PACKET_SIZE</a>];</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#aad25eeebfe8741afa7a242ec398c846e"> 96</a></span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#aad25eeebfe8741afa7a242ec398c846e">readPtr</a>;</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; uint16_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#ab3b9ea78a331449802e4ce5a5a9c7f18">countSysExDataSize</a>(uint8_t *dataptr);</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#aa9f6790ed10bec5fc5a9ebfc43dacfeb">setupDeviceSpecific</a>();</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#a0e4e8ef78169b2fb76f47ef0ccf10668"> 100</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a0e4e8ef78169b2fb76f47ef0ccf10668">convertStatus2Cin</a>(uint8_t status) {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">return</span> ((status &lt; 0xf0) ? ((status &amp; 0xF0) &gt;&gt; 4) : <a class="code" href="version__helper_8h.html#ad2b71a6faa0583b51569b531a443cb0a">pgm_read_byte_near</a>(<a class="code" href="namespace__ns___u_s_b_h___m_i_d_i.html#a18fc7fd34f31ff27aef0c4dd080aa2f0">_ns_USBH_MIDI::sys2cin</a> + (status &amp; 0x0F)));</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; };</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#ae72b2c1cbd89e25b60833add4de15153"> 103</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#ae72b2c1cbd89e25b60833add4de15153">getMsgSizeFromCin</a>(uint8_t cin) {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordflow">return</span> <a class="code" href="version__helper_8h.html#ad2b71a6faa0583b51569b531a443cb0a">pgm_read_byte_near</a>(<a class="code" href="namespace__ns___u_s_b_h___m_i_d_i.html#a6d9a790b55e130c829346de550e48171">_ns_USBH_MIDI::cin2len</a> + cin);</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; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="comment">/* UsbConfigXtracter implementation */</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#a16baf299f128ee9528a54f36388254e9">EndpointXtract</a>(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, <span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a> *ep);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<span class="preprocessor">#ifdef DEBUG_USB_HOST</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordtype">void</span> PrintEndpointDescriptor( <span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a>* ep_ptr );</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="class_u_s_b_h___m_i_d_i.html#a7dbec24b0f8fe85c713f3de55fba9f83">USBH_MIDI</a>(<a class="code" href="class_u_s_b.html">USB</a> *p);</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="comment">// Misc functions</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#aeac79d834709ecc079551df2e16a7ffe"> 116</a></span>&#160; <span class="keyword">operator</span> bool() { <span class="keywordflow">return</span> (<a class="code" href="class_u_s_b_h___m_i_d_i.html#a345bc9669e1627eae5d2663560813797">bPollEnable</a>); }</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#aa7d217e3479a9116f8f2ce90c1177317"> 117</a></span>&#160; uint16_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#aa7d217e3479a9116f8f2ce90c1177317">idVendor</a>() { <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#aa578074365d77bb3e41063a18625dfe3">vid</a>; }</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#ac7b56c71f8424ec0175f390264776bdd"> 118</a></span>&#160; uint16_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#ac7b56c71f8424ec0175f390264776bdd">idProduct</a>() { <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#aaf7ec77f0d8cefff1316ae049747e2a7">pid</a>; }</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="comment">// Methods for recieving and sending data</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#adb10f3867c2171603faa37af3e9fd210">RecvData</a>(uint16_t *bytes_rcvd, uint8_t *dataptr);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#adb10f3867c2171603faa37af3e9fd210">RecvData</a>(uint8_t *outBuf, <span class="keywordtype">bool</span> isRaw=<span class="keyword">false</span>);</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#af9f74895deb356da3d1915d9eac24aca"> 122</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#af9f74895deb356da3d1915d9eac24aca">RecvRawData</a>(uint8_t *outBuf) { <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#adb10f3867c2171603faa37af3e9fd210">RecvData</a>(outBuf, <span class="keyword">true</span>); };</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a65fd836d11336cce737ec1bdb1d5d4f3">SendData</a>(uint8_t *dataptr, uint8_t nCable=0);</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#a3005d70999cbf2339c55bcdd6fc77bff"> 124</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a3005d70999cbf2339c55bcdd6fc77bff">SendRawData</a>(uint16_t bytes_send, uint8_t *dataptr) { <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#af0c14d1bc7f60e8191b07bcca0c20c84">pUsb</a>-&gt;<a class="code" href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">outTransfer</a>(<a class="code" href="class_u_s_b_h___m_i_d_i.html#aef410de857fd657d467b0406d29f4aed">bAddress</a>, <a class="code" href="class_u_s_b_h___m_i_d_i.html#ac947c1e0feea5cc9387c35bbd9bde961">epInfo</a>[<a class="code" href="class_u_s_b_h___m_i_d_i.html#a2a2e35a5ce5ffc8605837de2587db740">epDataOutIndex</a>].epAddr, bytes_send, dataptr); };</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a8218ae22033b7d2120df75cfe696070e">lookupMsgSize</a>(uint8_t midiMsg, uint8_t cin=0);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#aa5506d9556605493d25492ab1f2fe2a8">SendSysEx</a>(uint8_t *dataptr, uint16_t datasize, uint8_t nCable=0);</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#ab85f9e0da16ffe3ee9809aa27023c94c">extractSysExData</a>(uint8_t *p, uint8_t *buf);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="comment">// backward compatibility functions</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#a1f522c0aca86795e1bfb7575e1759338"> 129</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a1f522c0aca86795e1bfb7575e1759338">RcvData</a>(uint16_t *bytes_rcvd, uint8_t *dataptr) { <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#adb10f3867c2171603faa37af3e9fd210">RecvData</a>(bytes_rcvd, dataptr); };</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#afa51b7a718728cdc4f25f9abec25be52"> 130</a></span>&#160; <span class="keyword">inline</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#afa51b7a718728cdc4f25f9abec25be52">RcvData</a>(uint8_t *outBuf) { <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#adb10f3867c2171603faa37af3e9fd210">RecvData</a>(outBuf); };</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">// USBDeviceConfig implementation</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a9c8d149a823d2b8d1c3579f0f445cf19">Init</a>(uint8_t parent, uint8_t port, <span class="keywordtype">bool</span> lowspeed);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#a912c417424d6f21cf1afbf524c418eb5">Release</a>();</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#ae3cf983bd74a2ec29fe9dee0f5f040d3"> 135</a></span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_u_s_b_h___m_i_d_i.html#ae3cf983bd74a2ec29fe9dee0f5f040d3">GetAddress</a>() { <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#aef410de857fd657d467b0406d29f4aed">bAddress</a>; };</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="class_u_s_b_h___m_i_d_i.html#adeb15374e8f0160aec9607ed91a25af3"> 137</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_u_s_b_h___m_i_d_i.html#adeb15374e8f0160aec9607ed91a25af3">attachOnInit</a>(<span class="keywordtype">void</span> (*funcOnInit)(<span class="keywordtype">void</span>)) {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; pFuncOnInit = funcOnInit;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; };</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; void (*pFuncOnInit)(void) = <span class="keyword">nullptr</span>; <span class="comment">// Pointer to function called in onInit()</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; </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<span class="preprocessor">#endif //_USBH_MIDI_H_</span></div>
2016-04-19 18:16:46 +02:00
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_u_s_b_html_affbc018973a588995457d535b0ac7ee7"><div class="ttname"><a href="class_u_s_b.html#affbc018973a588995457d535b0ac7ee7">USB::outTransfer</a></div><div class="ttdeci">uint8_t outTransfer(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *data)</div><div class="ttdef"><b>Definition:</b> <a href="_usb_8cpp_source.html#l00303">Usb.cpp:303</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_adeb15374e8f0160aec9607ed91a25af3"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#adeb15374e8f0160aec9607ed91a25af3">USBH_MIDI::attachOnInit</a></div><div class="ttdeci">void attachOnInit(void(*funcOnInit)(void))</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00137">usbh_midi.h:137</a></div></div>
<div class="ttc" id="aclass_u_s_b_device_config_html"><div class="ttname"><a href="class_u_s_b_device_config.html">USBDeviceConfig</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00134">UsbCore.h:134</a></div></div>
<div class="ttc" id="anamespace__ns___u_s_b_h___m_i_d_i_html_a18fc7fd34f31ff27aef0c4dd080aa2f0"><div class="ttname"><a href="namespace__ns___u_s_b_h___m_i_d_i.html#a18fc7fd34f31ff27aef0c4dd080aa2f0">_ns_USBH_MIDI::sys2cin</a></div><div class="ttdeci">const uint8_t sys2cin[]</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00039">usbh_midi.h:39</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_ab3b9ea78a331449802e4ce5a5a9c7f18"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#ab3b9ea78a331449802e4ce5a5a9c7f18">USBH_MIDI::countSysExDataSize</a></div><div class="ttdeci">uint16_t countSysExDataSize(uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00437">usbh_midi.cpp:437</a></div></div>
<div class="ttc" id="anamespace__ns___u_s_b_h___m_i_d_i_html_a6d9a790b55e130c829346de550e48171"><div class="ttname"><a href="namespace__ns___u_s_b_h___m_i_d_i.html#a6d9a790b55e130c829346de550e48171">_ns_USBH_MIDI::cin2len</a></div><div class="ttdeci">const uint8_t cin2len[]</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00038">usbh_midi.h:38</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html">USBH_MIDI</a></div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00080">usbh_midi.h:80</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_af0c14d1bc7f60e8191b07bcca0c20c84"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#af0c14d1bc7f60e8191b07bcca0c20c84">USBH_MIDI::pUsb</a></div><div class="ttdeci">USB * pUsb</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00087">usbh_midi.h:87</a></div></div>
<div class="ttc" id="astruct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00148">usb_ch9.h:148</a></div></div>
<div class="ttc" id="aclass_usb_midi_config_xtracter_html_aca20e9d1b079c1ecfe5bcec748322269"><div class="ttname"><a href="class_usb_midi_config_xtracter.html#aca20e9d1b079c1ecfe5bcec748322269">UsbMidiConfigXtracter::EndpointXtract</a></div><div class="ttdeci">virtual bool EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00048">usbh_midi.h:48</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aef410de857fd657d467b0406d29f4aed"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aef410de857fd657d467b0406d29f4aed">USBH_MIDI::bAddress</a></div><div class="ttdeci">uint8_t bAddress</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00088">usbh_midi.h:88</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a1f522c0aca86795e1bfb7575e1759338"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a1f522c0aca86795e1bfb7575e1759338">USBH_MIDI::RcvData</a></div><div class="ttdeci">uint8_t RcvData(uint16_t *bytes_rcvd, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00129">usbh_midi.h:129</a></div></div>
<div class="ttc" id="aclass_midi_desc_parser_html_a181d16588ff810dfb7a63c31ca68d7b1"><div class="ttname"><a href="class_midi_desc_parser.html#a181d16588ff810dfb7a63c31ca68d7b1">MidiDescParser::Parse</a></div><div class="ttdeci">void Parse(const uint16_t len, const uint8_t *pbuf, const uint16_t &amp;offset)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00560">usbh_midi.cpp:560</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aa578074365d77bb3e41063a18625dfe3"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aa578074365d77bb3e41063a18625dfe3">USBH_MIDI::vid</a></div><div class="ttdeci">uint16_t vid</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00090">usbh_midi.h:90</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_ae3cf983bd74a2ec29fe9dee0f5f040d3"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#ae3cf983bd74a2ec29fe9dee0f5f040d3">USBH_MIDI::GetAddress</a></div><div class="ttdeci">virtual uint8_t GetAddress()</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00135">usbh_midi.h:135</a></div></div>
<div class="ttc" id="aclass_u_s_b_read_parser_html"><div class="ttname"><a href="class_u_s_b_read_parser.html">USBReadParser</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00205">UsbCore.h:205</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a7dbec24b0f8fe85c713f3de55fba9f83"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a7dbec24b0f8fe85c713f3de55fba9f83">USBH_MIDI::USBH_MIDI</a></div><div class="ttdeci">USBH_MIDI(USB *p)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00085">usbh_midi.cpp:85</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_ae72b2c1cbd89e25b60833add4de15153"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#ae72b2c1cbd89e25b60833add4de15153">USBH_MIDI::getMsgSizeFromCin</a></div><div class="ttdeci">uint8_t getMsgSizeFromCin(uint8_t cin)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00103">usbh_midi.h:103</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a9c8d149a823d2b8d1c3579f0f445cf19"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a9c8d149a823d2b8d1c3579f0f445cf19">USBH_MIDI::Init</a></div><div class="ttdeci">virtual uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00103">usbh_midi.cpp:103</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a08afe33201b6e679b1c2236da699126e"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a08afe33201b6e679b1c2236da699126e">USBH_MIDI::epDataInIndex</a></div><div class="ttdeci">static const uint8_t epDataInIndex</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00083">usbh_midi.h:83</a></div></div>
<div class="ttc" id="aclass_usb_midi_config_xtracter_html"><div class="ttname"><a href="class_usb_midi_config_xtracter.html">UsbMidiConfigXtracter</a></div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00043">usbh_midi.h:43</a></div></div>
<div class="ttc" id="aclass_midi_desc_parser_html_a6b3d13f2deafad928f3ec049d6fb800b"><div class="ttname"><a href="class_midi_desc_parser.html#a6b3d13f2deafad928f3ec049d6fb800b">MidiDescParser::getConfValue</a></div><div class="ttdeci">uint8_t getConfValue()</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00075">usbh_midi.h:75</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aa84131af42cd34c3d62763a7b3f07d2f"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aa84131af42cd34c3d62763a7b3f07d2f">USBH_MIDI::recvBuf</a></div><div class="ttdeci">uint8_t recvBuf[MIDI_EVENT_PACKET_SIZE]</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00095">usbh_midi.h:95</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_ac7b56c71f8424ec0175f390264776bdd"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#ac7b56c71f8424ec0175f390264776bdd">USBH_MIDI::idProduct</a></div><div class="ttdeci">uint16_t idProduct()</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00118">usbh_midi.h:118</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a0e4e8ef78169b2fb76f47ef0ccf10668"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a0e4e8ef78169b2fb76f47ef0ccf10668">USBH_MIDI::convertStatus2Cin</a></div><div class="ttdeci">uint8_t convertStatus2Cin(uint8_t status)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00100">usbh_midi.h:100</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aa9f6790ed10bec5fc5a9ebfc43dacfeb"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aa9f6790ed10bec5fc5a9ebfc43dacfeb">USBH_MIDI::setupDeviceSpecific</a></div><div class="ttdeci">void setupDeviceSpecific()</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00286">usbh_midi.cpp:286</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a8218ae22033b7d2120df75cfe696070e"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a8218ae22033b7d2120df75cfe696070e">USBH_MIDI::lookupMsgSize</a></div><div class="ttdeci">uint8_t lookupMsgSize(uint8_t midiMsg, uint8_t cin=0)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00428">usbh_midi.cpp:428</a></div></div>
<div class="ttc" id="astruct_ep_info_html"><div class="ttname"><a href="struct_ep_info.html">EpInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="address_8h_source.html#l00039">address.h:39</a></div></div>
<div class="ttc" id="aclass_byte_skipper_html"><div class="ttname"><a href="class_byte_skipper.html">ByteSkipper</a></div><div class="ttdef"><b>Definition:</b> <a href="parsetools_8h_source.html#l00062">parsetools.h:62</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a3005d70999cbf2339c55bcdd6fc77bff"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a3005d70999cbf2339c55bcdd6fc77bff">USBH_MIDI::SendRawData</a></div><div class="ttdeci">uint8_t SendRawData(uint16_t bytes_send, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00124">usbh_midi.h:124</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aa7d217e3479a9116f8f2ce90c1177317"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aa7d217e3479a9116f8f2ce90c1177317">USBH_MIDI::idVendor</a></div><div class="ttdeci">uint16_t idVendor()</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00117">usbh_midi.h:117</a></div></div>
<div class="ttc" id="ausbh__midi_8h_html_a209d19007c615d3f300a5d3717776a45"><div class="ttname"><a href="usbh__midi_8h.html#a209d19007c615d3f300a5d3717776a45">MIDI_MAX_ENDPOINTS</a></div><div class="ttdeci">#define MIDI_MAX_ENDPOINTS</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00032">usbh_midi.h:32</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_ab85f9e0da16ffe3ee9809aa27023c94c"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#ab85f9e0da16ffe3ee9809aa27023c94c">USBH_MIDI::extractSysExData</a></div><div class="ttdeci">uint8_t extractSysExData(uint8_t *p, uint8_t *buf)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00516">usbh_midi.cpp:516</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a65fd836d11336cce737ec1bdb1d5d4f3"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a65fd836d11336cce737ec1bdb1d5d4f3">USBH_MIDI::SendData</a></div><div class="ttdeci">uint8_t SendData(uint8_t *dataptr, uint8_t nCable=0)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00366">usbh_midi.cpp:366</a></div></div>
<div class="ttc" id="aclass_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00210">UsbCore.h:210</a></div></div>
<div class="ttc" id="anamespace__ns___u_s_b_h___m_i_d_i_html"><div class="ttname"><a href="namespace__ns___u_s_b_h___m_i_d_i.html">_ns_USBH_MIDI</a></div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00037">usbh_midi.h:37</a></div></div>
<div class="ttc" id="aclass_midi_desc_parser_html"><div class="ttname"><a href="class_midi_desc_parser.html">MidiDescParser</a></div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00053">usbh_midi.h:53</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aaf7ec77f0d8cefff1316ae049747e2a7"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aaf7ec77f0d8cefff1316ae049747e2a7">USBH_MIDI::pid</a></div><div class="ttdeci">uint16_t pid</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00090">usbh_midi.h:90</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a912c417424d6f21cf1afbf524c418eb5"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a912c417424d6f21cf1afbf524c418eb5">USBH_MIDI::Release</a></div><div class="ttdeci">virtual uint8_t Release()</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00276">usbh_midi.cpp:276</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_af9f74895deb356da3d1915d9eac24aca"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#af9f74895deb356da3d1915d9eac24aca">USBH_MIDI::RecvRawData</a></div><div class="ttdeci">uint8_t RecvRawData(uint8_t *outBuf)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00122">usbh_midi.h:122</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a345bc9669e1627eae5d2663560813797"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a345bc9669e1627eae5d2663560813797">USBH_MIDI::bPollEnable</a></div><div class="ttdeci">bool bPollEnable</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00089">usbh_midi.h:89</a></div></div>
<div class="ttc" id="a_usb_8h_html"><div class="ttname"><a href="_usb_8h.html">Usb.h</a></div></div>
<div class="ttc" id="aclass_midi_desc_parser_html_ab85a5d420aaf4ff4d5e30b54e0ce9309"><div class="ttname"><a href="class_midi_desc_parser.html#ab85a5d420aaf4ff4d5e30b54e0ce9309">MidiDescParser::getNumEPs</a></div><div class="ttdeci">uint8_t getNumEPs()</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00076">usbh_midi.h:76</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a16cc26804628e2ea32513b4cce1aa7c3"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a16cc26804628e2ea32513b4cce1aa7c3">USBH_MIDI::bTransferTypeMask</a></div><div class="ttdeci">uint8_t bTransferTypeMask</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00091">usbh_midi.h:91</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a16baf299f128ee9528a54f36388254e9"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a16baf299f128ee9528a54f36388254e9">USBH_MIDI::EndpointXtract</a></div><div class="ttdeci">bool EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00662">usbh_midi.cpp:662</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aad25eeebfe8741afa7a242ec398c846e"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aad25eeebfe8741afa7a242ec398c846e">USBH_MIDI::readPtr</a></div><div class="ttdeci">uint8_t readPtr</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00096">usbh_midi.h:96</a></div></div>
<div class="ttc" id="astruct_multi_value_buffer_html"><div class="ttname"><a href="struct_multi_value_buffer.html">MultiValueBuffer</a></div><div class="ttdef"><b>Definition:</b> <a href="parsetools_8h_source.html#l00030">parsetools.h:30</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_aa5506d9556605493d25492ab1f2fe2a8"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#aa5506d9556605493d25492ab1f2fe2a8">USBH_MIDI::SendSysEx</a></div><div class="ttdeci">uint8_t SendSysEx(uint8_t *dataptr, uint16_t datasize, uint8_t nCable=0)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00459">usbh_midi.cpp:459</a></div></div>
<div class="ttc" id="aclass_midi_desc_parser_html_a73ad6ad9905a7ff130bf5c0f267eb77a"><div class="ttname"><a href="class_midi_desc_parser.html#a73ad6ad9905a7ff130bf5c0f267eb77a">MidiDescParser::MidiDescParser</a></div><div class="ttdeci">MidiDescParser(UsbMidiConfigXtracter *xtractor, bool modeMidi)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00549">usbh_midi.cpp:549</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_afa51b7a718728cdc4f25f9abec25be52"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#afa51b7a718728cdc4f25f9abec25be52">USBH_MIDI::RcvData</a></div><div class="ttdeci">uint8_t RcvData(uint8_t *outBuf)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00130">usbh_midi.h:130</a></div></div>
<div class="ttc" id="aclass_multi_byte_value_parser_html"><div class="ttname"><a href="class_multi_byte_value_parser.html">MultiByteValueParser</a></div><div class="ttdef"><b>Definition:</b> <a href="parsetools_8h_source.html#l00040">parsetools.h:40</a></div></div>
<div class="ttc" id="aversion__helper_8h_html_ad2b71a6faa0583b51569b531a443cb0a"><div class="ttname"><a href="version__helper_8h.html#ad2b71a6faa0583b51569b531a443cb0a">pgm_read_byte_near</a></div><div class="ttdeci">#define pgm_read_byte_near(addr)</div><div class="ttdef"><b>Definition:</b> <a href="version__helper_8h_source.html#l00174">version_helper.h:174</a></div></div>
<div class="ttc" id="ausbh__midi_8h_html_a0cb5d0be715a42f36440b29eaa728c58"><div class="ttname"><a href="usbh__midi_8h.html#a0cb5d0be715a42f36440b29eaa728c58">MIDI_EVENT_PACKET_SIZE</a></div><div class="ttdeci">#define MIDI_EVENT_PACKET_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00034">usbh_midi.h:34</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_ac947c1e0feea5cc9387c35bbd9bde961"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#ac947c1e0feea5cc9387c35bbd9bde961">USBH_MIDI::epInfo</a></div><div class="ttdeci">EpInfo epInfo[MIDI_MAX_ENDPOINTS]</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00093">usbh_midi.h:93</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_a2a2e35a5ce5ffc8605837de2587db740"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#a2a2e35a5ce5ffc8605837de2587db740">USBH_MIDI::epDataOutIndex</a></div><div class="ttdeci">static const uint8_t epDataOutIndex</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8h_source.html#l00084">usbh_midi.h:84</a></div></div>
<div class="ttc" id="aclass_u_s_b_h___m_i_d_i_html_adb10f3867c2171603faa37af3e9fd210"><div class="ttname"><a href="class_u_s_b_h___m_i_d_i.html#adb10f3867c2171603faa37af3e9fd210">USBH_MIDI::RecvData</a></div><div class="ttdeci">uint8_t RecvData(uint16_t *bytes_rcvd, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbh__midi_8cpp_source.html#l00308">usbh_midi.cpp:308</a></div></div>
2016-04-19 18:16:46 +02:00
<!-- 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.17
2016-04-19 18:16:46 +02:00
</small></address>
</body>
</html>