| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!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_cdc.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('d5/df9/a00044_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_cdc.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="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#ifndef _USB_CDC_H_</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#define _USB_CDC_H_</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga664a5f3a3a2c5cfd8ac454122a0abbc5"> 31</a></span> <span class="preprocessor">#define USB_CLASS_CDC 0x02 </span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga7dae7df3ce2685f96775f2a0fb8658ae"> 32</a></span> <span class="preprocessor">#define USB_CLASS_CDC_DATA 0x0A </span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#gacde70f865ca1c09bdfc2bf1095d71ad0"> 37</a></span> <span class="preprocessor">#define USB_CDC_SUBCLASS_ACM 0x02 </span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga3b9c97caac9796071afafc75e1bfee44"> 42</a></span> <span class="preprocessor">#define USB_CDC_PROTO_NONE 0x00 </span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga6d6570a0081a87c1898ffd02809805ef"> 43</a></span> <span class="preprocessor">#define USB_CDC_PROTO_V25TER 0x01 </span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga67861211c932e3d1ba7210c6c8c36ae2"> 49</a></span> <span class="preprocessor">#define USB_CDC_PROTO_NTB 0x01 </span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga7be7802d434838d429b4c4328fe19c75"> 50</a></span> <span class="preprocessor">#define USB_CDC_PROTO_HOST 0xFD </span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor">#define USB_CDC_PROTO_CDCSPEC 0xFE </span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor">#define USB_DTYPE_CDC_HEADER 0x00 </span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#define USB_DTYPE_CDC_CALL_MANAGEMENT 0x01 </span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#define USB_DTYPE_CDC_ACM 0x02 </span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#define USB_DTYPE_CDC_UNION 0x06 </span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#define USB_DTYPE_CDC_COUNTRY 0x07 </span></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga29ff5e9ac2090b22b5a7585466d2fa3e"> 74</a></span> <span class="preprocessor">#define USB_CDC_SEND_ENCAPSULATED_CMD 0x00 </span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#define USB_CDC_GET_ENCAPSULATED_RESP 0x01 </span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#define USB_CDC_SET_COMM_FEATURE 0x02 </span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor">#define USB_CDC_GET_COMM_FEATURE 0x03 </span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor">#define USB_CDC_CLEAR_COMM_FEATURE 0x04 </span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor">#define USB_CDC_SET_LINE_CODING 0x20 </span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="preprocessor">#define USB_CDC_GET_LINE_CODING 0x21 </span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga73f45df44ec8c2acb143bc446ecd8850"> 91</a></span> <span class="preprocessor">#define USB_CDC_SET_CONTROL_LINE_STATE 0x22 </span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor">#define USB_CDC_SEND_BREAK 0x23 </span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor">#define USB_CDC_NTF_NETWORK_CONNECTION 0x00 </span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="preprocessor">#define USB_CDC_NTF_RESPONSE_AVAILABLE 0x01 </span></div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga57654feeb9af064a5cd5cd80f08b321b"> 102</a></span> <span class="preprocessor">#define USB_CDC_NTF_SERIAL_STATE 0x20 </span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="preprocessor">#define USB_CDC_NTF_SPEED_CHANGE 0x2A </span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#define USB_CDC_COMM_FEATURE 0x01 </span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor">#define USB_CDC_CAP_LINE 0x02 </span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">#define USB_CDC_CAP_BRK 0x04 </span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="preprocessor">#define USB_CDC_CAP_NOTIFY 0x08 </span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#define USB_CDC_CALL_MGMT_CAP_CALL_MGMT 0x01 </span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="preprocessor">#define USB_CDC_CALL_MGMT_CAP_DATA_INTF 0x02 </span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="preprocessor">#define USB_CDC_1_STOP_BITS 0x00 </span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="preprocessor">#define USB_CDC_1_5_STOP_BITS 0x01 </span></div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#gaf700b8fe774088c27ba4cd4dd71fe205"> 134</a></span> <span class="preprocessor">#define USB_CDC_2_STOP_BITS 0x02 </span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="preprocessor">#define USB_CDC_NO_PARITY 0x00 </span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor">#define USB_CDC_ODD_PARITY 0x01 </span></div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga7b4bd36ec0aea617484af607023475be"> 137</a></span> <span class="preprocessor">#define USB_CDC_EVEN_PARITY 0x02 </span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor">#define USB_CDC_MARK_PARITY 0x03 </span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="preprocessor">#define USB_CDC_SPACE_PARITY 0x04 </span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="preprocessor">#define USB_CDC_STATE_RX_CARRIER 0x0001 </span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="preprocessor">#define USB_CDC_STATE_TX_CARRIER 0x0002 </span></div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga4a239566adf0c2f0b916b28c5c4954ba"> 150</a></span> <span class="preprocessor">#define USB_CDC_STATE_BREAK 0x0004 </span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="preprocessor">#define USB_CDC_STATE_RING 0x0008 </span></div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="preprocessor">#define USB_CDC_STATE_FRAMING 0x0010 </span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor">#define USB_CDC_STATE_PARITY 0x0020 </span></div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="preprocessor">#define USB_CDC_STATE_OVERRUN 0x0040 </span></div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga5205a22a21f4424b5df18471020d8a31"> 161</a></span> <span class="preprocessor">struct usb_cdc_header_desc {</span></div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#gac495c395930db0686d7810abb937c825"> 162</a></span>  uint8_t bFunctionLength; </div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga45fbf41e01650b59fdbcf4051f2a8f22"> 163</a></span>  uint8_t bDescriptorType; </div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga4ddcb15a213db62320c7cbc7b0897c46"> 164</a></span>  uint8_t bDescriptorSubType; </div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#gade4b46364228b0ce16692bc1c3f15225"> 165</a></span>  uint16_t bcdCDC; </div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> } __attribute__ ((packed));</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="keyword">struct </span><a class="code" href="../../db/d57/a00112.html">usb_cdc_union_desc</a> {</div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga457ec3ec5a393cf2b417392958cd33e3"> 175</a></span>  uint8_t <a class="code" href="../../db/d57/a00112.html#ac3314cfd2a15e4b92abe41531306f1e4">bFunctionLength</a>; </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#ae1173e2e000d0efd10a14bdeb5fb7219">bDescriptorType</a>; </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#a9a52d8da6e0f646133c7ef158a0e2f37">bDescriptorSubType</a>; </div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#a493ccfb7d79406334fb45d3fd4338726">bMasterInterface0</a>; </div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga47113570f646ab0370264d1897156696"> 180</a></span>  uint8_t <a class="code" href="../../db/d57/a00112.html#a924c70bb7709dd8dd5a2196b2d97fc95">bSlaveInterface0</a>; </div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga0f82d0129daaaed7c2011cf9044566be"> 182</a></span>  <span class="comment">/* ... and there could be other slave interfaces */</span></div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga75d7e878b3f688a27e912baa1b6d20c9"> 183</a></span> } __attribute__ ((packed));</div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="../../da/d82/a00091.html#ga7415fe0d64eadbc3d8788e1f1b4a75a9"> 184</a></span> </div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="../../d1/dd6/a00108.html#aa24fcbb7c195cfb4596602452c40a6cc"> 195</a></span> <span class="keyword">struct </span><a class="code" href="../../d4/d3e/a00116.html">usb_cdc_country_desc</a> {</div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="../../d1/dd6/a00108.html#ad3e3da02cde9095520d2becdaee43606"> 196</a></span>  uint8_t <a class="code" href="../../db/d57/a00112.html#ac3314cfd2a15e4b92abe41531306f1e4">bFunctionLength</a>; </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#ae1173e2e000d0efd10a14bdeb5fb7219">bDescriptorType</a>; </div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#a9a52d8da6e0f646133c7ef158a0e2f37">bDescriptorSubType</a>; </div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  uint8_t iCountryCodeRelDate; </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  uint8_t wCountyCode0; </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="comment">/* ... and there can be a lot of country codes */</span></div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="../../db/d57/a00112.html"> 205</a></span> } __attribute__ ((packed));</div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="../../db/d57/a00112.html#ac3314cfd2a15e4b92abe41531306f1e4"> 206</a></span> </div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="../../db/d57/a00112.html#a924c70bb7709dd8dd5a2196b2d97fc95"> 211</a></span> <span class="keyword">struct </span><a class="code" href="../../d4/d98/a00120.html">usb_cdc_call_mgmt_desc</a> {</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#ac3314cfd2a15e4b92abe41531306f1e4">bFunctionLength</a>; </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#ae1173e2e000d0efd10a14bdeb5fb7219">bDescriptorType</a>; </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  uint8_t <a class="code" href="../../db/d57/a00112.html#a9a52d8da6e0f646133c7ef158a0e2f37">bDescriptorSubType</a>; </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  uint8_t bmCapabilities; </div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  uint8_t bDataInterface; </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> } __attribute__ ((packed));</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="../../d4/d3e/a00116.html"> 226</a></span> <span class="keyword">struct </span><a class="code" href="../../da/d72/a00124.html">usb_cdc_acm_desc</a> {</div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="../../d4/d3e/a00116.html#a4110cc01a23388a70cbc7a4ed42f7bf3"> 227</a></span>  uint8_t <a class="code" href="../../d4/d3e/a00116.html#a4110cc01a23388a70cbc7a4ed42f7bf3">bFunctionLength</a>; </div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="../../d4/d3e/a00116.html#a8690e2c7e4b41c2befb77d531ae076b1"> 228</a></span>  uint8_t <a class="code" href="../../d4/d3e/a00116.html#a8690e2c7e4b41c2befb77d531ae076b1">bDescriptorType</a>; </div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="../../d4/d3e/a00116.html#a05410e1cb1b77a9aa05b018236723a0c"> 229</a></span>  uint8_t <a class="code" href="../../d4/d3e/a00116.html#a05410e1cb1b77a9aa05b018236723a0c">bDescriptorSubType</a>; </div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="../../d4/d3e/a00116.html#ac8d6621513bcded293d2e905da0c7541"> 230</a></span>  uint8_t bmCapabilities; </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> } __attribute__ ((packed));</div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="../../d4/d3e/a00116.html#a87f5818c0cc1323ab0a9b5a0b6791aa6"> 232</a></span> </div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="keyword">struct </span><a class="code" href="../../d1/d88/a00128.html">usb_cdc_notification</a> {</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  uint8_t bmRequestType; </div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  uint8_t bNotificationType; </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  uint16_t wValue; </div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  uint16_t wIndex; </div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  uint16_t wLength; </div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  uint8_t Data[]; </div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="../../d4/d98/a00120.html"> 242</a></span> } __attribute__ ((packed));</div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="../../d4/d98/a00120.html#a90dcd3c7f9512e1817d8fddcbc9b5a9d"> 243</a></span> </div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="../../d4/d98/a00120.html#a0dbabe3862a1dae01ca291b3e515309d"> 245</a></span> <span class="keyword">struct </span><a class="code" href="../../d5/deb/a00132.html">usb_cdc_line_coding</a> {</div><div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="../../d4/d98/a00120.html#a8307506ebd43577ede63f2cdb6a471cd"> 246</a></span>  uint32_t dwDTERate; </div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  uint8_t bCharFormat; </div><div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="../../d4/d98/a00120.html#ab84bd02aeb894a991c154c99d56cf733"> 248</a></span>  uint8_t bParityType; </div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  uint8_t bDataBits; </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> } __attribute__ ((packed));</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  }</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="../../da/d72/a00124.html"> 257</a></span> </div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="../../da/d72/a00124.html#a035fc7ee5ee746794256d7fd8de0ab3a"> 258</a></span> <span class="preprocessor">#endif </span><span class="comment">/* _USB_CDC_H_ */</span><span class="preprocessor"></span></div><div class="ttc" id="a00124_html"><div class="ttname"><a href="../../da/d72/a00124.html">usb_cdc_acm_desc</a></div><div class="ttdoc">Abstract Control Management Functional Descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00257">usb_cdc.h:257</a></div></div>
- <div class="ttc" id="a00116_html_a8690e2c7e4b41c2befb77d531ae076b1"><div class="ttname"><a href="../../d4/d3e/a00116.html#a8690e2c7e4b41c2befb77d531ae076b1">usb_cdc_country_desc::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdoc">CS_INTERFACE descriptor type. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00228">usb_cdc.h:228</a></div></div>
- <div class="ttc" id="a00112_html_a9a52d8da6e0f646133c7ef158a0e2f37"><div class="ttname"><a href="../../db/d57/a00112.html#a9a52d8da6e0f646133c7ef158a0e2f37">usb_cdc_union_desc::bDescriptorSubType</a></div><div class="ttdeci">uint8_t bDescriptorSubType</div><div class="ttdoc">Union Functional Descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00208">usb_cdc.h:208</a></div></div>
- <div class="ttc" id="a00112_html"><div class="ttname"><a href="../../db/d57/a00112.html">usb_cdc_union_desc</a></div><div class="ttdoc">Union Functional Descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00205">usb_cdc.h:205</a></div></div>
- <div class="ttc" id="a00112_html_a924c70bb7709dd8dd5a2196b2d97fc95"><div class="ttname"><a href="../../db/d57/a00112.html#a924c70bb7709dd8dd5a2196b2d97fc95">usb_cdc_union_desc::bSlaveInterface0</a></div><div class="ttdeci">uint8_t bSlaveInterface0</div><div class="ttdoc">Interface number of first slave or associated interface in the union. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00211">usb_cdc.h:211</a></div></div>
- <div class="ttc" id="a00116_html_a05410e1cb1b77a9aa05b018236723a0c"><div class="ttname"><a href="../../d4/d3e/a00116.html#a05410e1cb1b77a9aa05b018236723a0c">usb_cdc_country_desc::bDescriptorSubType</a></div><div class="ttdeci">uint8_t bDescriptorSubType</div><div class="ttdoc">Country Selection Functional Descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00229">usb_cdc.h:229</a></div></div>
- <div class="ttc" id="a00132_html"><div class="ttname"><a href="../../d5/deb/a00132.html">usb_cdc_line_coding</a></div><div class="ttdoc">Line Coding Structure. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00276">usb_cdc.h:276</a></div></div>
- <div class="ttc" id="a00112_html_a493ccfb7d79406334fb45d3fd4338726"><div class="ttname"><a href="../../db/d57/a00112.html#a493ccfb7d79406334fb45d3fd4338726">usb_cdc_union_desc::bMasterInterface0</a></div><div class="ttdeci">uint8_t bMasterInterface0</div><div class="ttdoc">The interface number of the CDC interface designated as the master or controlling interface for the u...</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00209">usb_cdc.h:209</a></div></div>
- <div class="ttc" id="a00120_html"><div class="ttname"><a href="../../d4/d98/a00120.html">usb_cdc_call_mgmt_desc</a></div><div class="ttdoc">Call Management Functional Descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00242">usb_cdc.h:242</a></div></div>
- <div class="ttc" id="a00112_html_ae1173e2e000d0efd10a14bdeb5fb7219"><div class="ttname"><a href="../../db/d57/a00112.html#ae1173e2e000d0efd10a14bdeb5fb7219">usb_cdc_union_desc::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdoc">CS_INTERFACE descriptor type. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00207">usb_cdc.h:207</a></div></div>
- <div class="ttc" id="a00112_html_ac3314cfd2a15e4b92abe41531306f1e4"><div class="ttname"><a href="../../db/d57/a00112.html#ac3314cfd2a15e4b92abe41531306f1e4">usb_cdc_union_desc::bFunctionLength</a></div><div class="ttdeci">uint8_t bFunctionLength</div><div class="ttdoc">Size of this functional descriptor, in bytes. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00206">usb_cdc.h:206</a></div></div>
- <div class="ttc" id="a00128_html"><div class="ttname"><a href="../../d1/d88/a00128.html">usb_cdc_notification</a></div><div class="ttdoc">Notification structure from CDC. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00265">usb_cdc.h:265</a></div></div>
- <div class="ttc" id="a00116_html_a4110cc01a23388a70cbc7a4ed42f7bf3"><div class="ttname"><a href="../../d4/d3e/a00116.html#a4110cc01a23388a70cbc7a4ed42f7bf3">usb_cdc_country_desc::bFunctionLength</a></div><div class="ttdeci">uint8_t bFunctionLength</div><div class="ttdoc">Size of this functional descriptor, in bytes. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00227">usb_cdc.h:227</a></div></div>
- <div class="ttc" id="a00116_html"><div class="ttname"><a href="../../d4/d3e/a00116.html">usb_cdc_country_desc</a></div><div class="ttdoc">Country Selection Functional Descriptor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/df9/a00044_source.html#l00226">usb_cdc.h:226</a></div></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_cdc.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>
|