1
0

a00047_source.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Lightweight USB stack: usb_cdca.h Source File</title>
  9. <link href="../../tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="../../jquery.js"></script>
  11. <script type="text/javascript" src="../../dynsections.js"></script>
  12. <link href="../../navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="../../resize.js"></script>
  14. <script type="text/javascript" src="../../navtreedata.js"></script>
  15. <script type="text/javascript" src="../../navtree.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(initResizable);
  18. </script>
  19. <link href="../../search/search.css" rel="stylesheet" type="text/css"/>
  20. <script type="text/javascript" src="../../search/searchdata.js"></script>
  21. <script type="text/javascript" src="../../search/search.js"></script>
  22. <link href="../../doxygen.css" rel="stylesheet" type="text/css" />
  23. </head>
  24. <body>
  25. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  26. <div id="titlearea">
  27. <table cellspacing="0" cellpadding="0">
  28. <tbody>
  29. <tr style="height: 56px;">
  30. <td id="projectalign" style="padding-left: 0.5em;">
  31. <div id="projectname">Lightweight USB stack
  32. &#160;<span id="projectnumber">1.0</span>
  33. </div>
  34. </td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. <!-- end header part -->
  40. <!-- Generated by Doxygen 1.8.13 -->
  41. <script type="text/javascript">
  42. var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
  43. </script>
  44. <script type="text/javascript" src="../../menudata.js"></script>
  45. <script type="text/javascript" src="../../menu.js"></script>
  46. <script type="text/javascript">
  47. $(function() {
  48. initMenu('../../',true,false,'search.php','Search');
  49. $(document).ready(function() { init_search(); });
  50. });
  51. </script>
  52. <div id="main-nav"></div>
  53. </div><!-- top -->
  54. <div id="side-nav" class="ui-resizable side-nav-resizable">
  55. <div id="nav-tree">
  56. <div id="nav-tree-contents">
  57. <div id="nav-sync" class="sync"></div>
  58. </div>
  59. </div>
  60. <div id="splitbar" style="-moz-user-select:none;"
  61. class="ui-resizable-handle">
  62. </div>
  63. </div>
  64. <script type="text/javascript">
  65. $(document).ready(function(){initNavTree('d6/d2d/a00047_source.html','../../');});
  66. </script>
  67. <div id="doc-content">
  68. <!-- window showing the filter options -->
  69. <div id="MSearchSelectWindow"
  70. onmouseover="return searchBox.OnSearchSelectShow()"
  71. onmouseout="return searchBox.OnSearchSelectHide()"
  72. onkeydown="return searchBox.OnSearchSelectKey(event)">
  73. </div>
  74. <!-- iframe showing the search results (closed by default) -->
  75. <div id="MSearchResultsWindow">
  76. <iframe src="javascript:void(0)" frameborder="0"
  77. name="MSearchResults" id="MSearchResults">
  78. </iframe>
  79. </div>
  80. <div class="header">
  81. <div class="headertitle">
  82. <div class="title">usb_cdca.h</div> </div>
  83. </div><!--header-->
  84. <div class="contents">
  85. <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* This file is the part of the Lightweight USB device Stack for STM32 microcontrollers</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright ©2016 Dmitry Filimonchuk &lt;dmitrystu[at]gmail[dot]com&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#ifndef _USB_CDC_ATM_H_</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#define _USB_CDC_ATM_H_</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#ga34be4f23cd40469b1e13e2b8a1b3cec4"> 33</a></span>&#160;<span class="preprocessor">#define USB_CDC_SUBCLASS_ATM 0x07 </span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor"> </span><span class="comment">/* @} */</span><span class="preprocessor"></span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#ga2c6773ee281345251e2f1e68e7c3847d"> 39</a></span>&#160;<span class="preprocessor">#define USB_DTYPE_CDC_ATM 0x10 </span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#ga47d6fe077ce700d4b4d5ae834c797013"> 44</a></span>&#160;<span class="preprocessor">#define USB_CDC_SET_ATM_DATA_FORMAT 0x50 </span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#define USB_CDC_GET_ATM_DEVICE_STATISTICS 0x51 </span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#ga61c7944bbfba81d3bdc7b6fc0ae8aba4"> 49</a></span>&#160;<span class="preprocessor">#define USB_CDC_SET_ATM_DEFAULT_VC 0x52 </span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#define USB_CDC_GET_ATM_VC_STATISTICS 0x53 </span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#define ATM_STAT_US_CELLS_SENT 0x01 </span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor">#define ATM_STAT_DS_CELLS_RECEIVED 0x02 </span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor">#define ATM_STAT_DS_CELLS_USB_CONGESTION 0x03 </span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="preprocessor">#define ATM_STAT_DS_CELLS_AAL5_CRC_ERROR 0x04 </span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">#define ATM_STAT_DS_CELLS_HEC_ERROR 0x05 </span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="preprocessor">#define ATM_STAT_DS_CELLS_HEC_ERROR_CORRT 0x06 </span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor">struct usb_cdc_atm_desc {</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#ga1f7df7795ac7fe47db348bb91dae3e46"> 78</a></span>&#160; uint8_t bFunctionLength; </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; uint8_t bDescriptorType; </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; uint8_t bDescriptorSubType; </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; uint8_t iEndSystemIdentifier; </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; uint8_t bmDataCapabilities; </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#gad57b29f60f953d86e644a579e6803341"> 83</a></span>&#160; uint8_t bmATMDeviceStatistics; </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; uint16_t wType2MaxSegmentSize; </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; uint16_t wType3MaxSegmentSize; </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; uint16_t wMaxVC; </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;} __attribute__((packed));</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a71283d9276263a546c354bed41e1eebc"> 95</a></span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a0e5d1e85d3e85492a635031a11de8b27"> 96</a></span>&#160; }</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a6f52199c963a35fb27af5a08df8b0646"> 97</a></span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a8e78c59318f438accb6a8f0e4fd2bdb9"> 98</a></span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a0100f2aac34d49b2ef25f13b4c19dd4d"> 99</a></span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _USB_CDC_ATM_H_ */</span><span class="preprocessor"></span></div></div><!-- fragment --></div><!-- contents -->
  86. </div><!-- doc-content -->
  87. <!-- start footer part -->
  88. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  89. <ul>
  90. <li class="navelem"><a class="el" href="../../dir_bfccd401955b95cf8c75461437045ac0.html">inc</a></li><li class="navelem"><b>usb_cdca.h</b></li>
  91. <li class="footer">Generated by
  92. <a href="http://www.doxygen.org/index.html">
  93. <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  94. </ul>
  95. </div>
  96. </body>
  97. </html>