| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!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.13"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Lightweight USB stack: usb_cdca.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="../../navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="../../resize.js"></script>
- <script type="text/javascript" src="../../navtreedata.js"></script>
- <script type="text/javascript" src="../../navtree.js"></script>
- <script type="text/javascript">
- $(document).ready(initResizable);
- </script>
- <link href="../../search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="../../search/searchdata.js"></script>
- <script type="text/javascript" src="../../search/search.js"></script>
- <link href="../../doxygen.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;">
- <div id="projectname">Lightweight USB stack
-  <span id="projectnumber">1.0</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.13 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
- </script>
- <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>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function(){initNavTree('d6/d2d/a00047_source.html','../../');});
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="headertitle">
- <div class="title">usb_cdca.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <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> <span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]com></span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <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> <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> <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> <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> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <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> <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> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> */</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef _USB_CDC_ATM_H_</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define _USB_CDC_ATM_H_</span></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="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#ga34be4f23cd40469b1e13e2b8a1b3cec4"> 33</a></span> <span class="preprocessor">#define USB_CDC_SUBCLASS_ATM 0x07 </span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <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> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="../../d1/dc1/a00092.html#ga2c6773ee281345251e2f1e68e7c3847d"> 39</a></span> <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> <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> <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> <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> <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> <span class="preprocessor">#define ATM_STAT_US_CELLS_SENT 0x01 </span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#define ATM_STAT_DS_CELLS_RECEIVED 0x02 </span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <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> <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> <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> <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> <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>  uint8_t bFunctionLength; </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  uint8_t bDescriptorType; </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  uint8_t bDescriptorSubType; </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  uint8_t iEndSystemIdentifier; </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  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>  uint8_t bmATMDeviceStatistics; </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  uint16_t wType2MaxSegmentSize; </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  uint16_t wType3MaxSegmentSize; </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  uint16_t wMaxVC; </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> } __attribute__((packed));</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a71283d9276263a546c354bed41e1eebc"> 95</a></span> <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>  }</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a6f52199c963a35fb27af5a08df8b0646"> 97</a></span> <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> </div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../d0/d5e/a00136.html#a0100f2aac34d49b2ef25f13b4c19dd4d"> 99</a></span> <span class="preprocessor">#endif </span><span class="comment">/* _USB_CDC_ATM_H_ */</span><span class="preprocessor"></span></div></div><!-- fragment --></div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="../../dir_bfccd401955b95cf8c75461437045ac0.html">inc</a></li><li class="navelem"><b>usb_cdca.h</b></li>
- <li class="footer">Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
- </ul>
- </div>
- </body>
- </html>
|