USB_Host_Shield_2.0/cdcacm_8h_source.html

286 lines
46 KiB
HTML
Raw Normal View History

2013-01-30 22:00:18 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>USB Host Shield 2.0: cdcacm.h Source File</title>
2013-01-30 22:00:18 +01:00
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
2013-01-30 22:00:18 +01:00
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
2013-01-30 22:00:18 +01:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_e5fbe6d2783ccd4c93c7856d92d7be6e.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_397a095372f04465e811d0ee219bbf8f.html">USB_Host_Shield_2.0</a></li> </ul>
2013-01-30 22:00:18 +01:00
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">cdcacm.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="cdcacm_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">/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.</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">This software may be distributed and modified under the terms of the GNU</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">General Public License version 2 (GPL2) as published by the Free Software</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">Foundation and appearing in the file GPL2.TXT included in the packaging of</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">this file. Please note that GPL2 Section 2[b] requires that all works based</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">on this software must also be made publicly available under the terms of</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">the GPL2 (&quot;Copyleft&quot;).</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">Contact information</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"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">Circuits At Home, LTD</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">Web : http://www.circuitsathome.com</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">e-mail : support@circuitsathome.com</span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#if !defined(__CDCACM_H__)</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __CDCACM_H__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;inttypes.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;avr/pgmspace.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="avrpins_8h.html">avrpins.h</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="max3421e_8h.html">max3421e.h</a>&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="usbhost_8h.html">usbhost.h</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="usb__ch9_8h.html">usb_ch9.h</a>&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</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="l00027"></a><span class="lineno"> 27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#if defined(ARDUINO) &amp;&amp; ARDUINO &gt;=100</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;Arduino.h&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;WProgram.h&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="printhex_8h.html">printhex.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="hexdump_8h.html">hexdump.h</a>&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="message_8h.html">message.h</a>&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="confdescparser_8h.html">confdescparser.h</a>&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a5797aa38c730dde78bf3181282bd6bf9"> 40</a></span>&#160;<span class="preprocessor">#define bmREQ_CDCOUT USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE</span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#af2ac2e2644603a3d1013be940c43314d"> 41</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmREQ_CDCIN USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE</span></div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">// CDC Subclass Constants</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a9d555a2c20cdda9166df1f1a0deb2fe6"> 44</a></span>&#160;<span class="preprocessor">#define CDC_SUBCLASS_DLCM 0x01 // Direct Line Control Model</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#acce3aedc4473cc5526efc16448b89221"> 45</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_ACM 0x02 // Abstract Control Model</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a8e66107828e9b10a8b37823cb4436209"> 46</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_TCM 0x03 // Telephone Control Model</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a279c0e93e9cf1c328e9551e62ebdc342"> 47</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_MCCM 0x04 // Multi Channel Control Model</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ab35e4890d2a9820b89f17d86e63e6a30"> 48</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_CAPI 0x05 // CAPI Control Model</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#aad198585b3a333441d39c04c9a6f8dfc"> 49</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_ETHERNET 0x06 // Ethernet Network Control Model</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#af1a7d3d1e1dd78003500d6fccd205461"> 50</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_ATM 0x07 // ATM Network Control Model</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ad331bb2702e65696ca33c2d933ab2d73"> 51</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_WIRELESS_HANDSET 0x08 // Wireless Handset Control Model</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a27674e866e3a2422d8fc38b873f19723"> 52</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_DEVICE_MANAGEMENT 0x09 // Device Management</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a110580c0368ed8a8d657e6812fa5cffe"> 53</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_MOBILE_DIRECT_LINE 0x0A // Mobile Direct Line Model</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ab1094071380f381e0b8b88d240aedd03"> 54</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_OBEX 0x0B // OBEX</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a6ef074fafbca12dadc97de1511563629"> 55</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SUBCLASS_ETHERNET_EMU 0x0C // Ethernet Emulation Model</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="comment">// Communication Interface Class Control Protocol Codes</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a13977894f3398454f6573995afb89c5b"> 58</a></span>&#160;<span class="preprocessor">#define CDC_PROTOCOL_ITU_T_V_250 0x01 // AT Commands defined by ITU-T V.250</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ad5fce51c970f6a1c2bd70a304db8504f"> 59</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_PROTOCOL_PCCA_101 0x02 // AT Commands defined by PCCA-101</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a199157a779e1f1d70b7460157b874fbb"> 60</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_PROTOCOL_PCCA_101_O 0x03 // AT Commands defined by PCCA-101 &amp; Annex O</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a74f58c97749d65adfcf0d8fcd8739713"> 61</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_PROTOCOL_GSM_7_07 0x04 // AT Commands defined by GSM 7.07</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a0cdc3e66270e78dc62f6fdab6806e4ac"> 62</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_PROTOCOL_3GPP_27_07 0x05 // AT Commands defined by 3GPP 27.007</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a25dc8a5a03fa46bc6d18be73a318b725"> 63</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_PROTOCOL_C_S0017_0 0x06 // AT Commands defined by TIA for CDMA</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ae0e669ccb182282b45af577b84ea190f"> 64</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_PROTOCOL_USB_EEM 0x07 // Ethernet Emulation Model</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="comment">// CDC Commands defined by CDC 1.2</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a7aaa245703a0a2191c27697715f3727c"> 67</a></span>&#160;<span class="preprocessor">#define CDC_SEND_ENCAPSULATED_COMMAND 0x00</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a6170632c774a3163b5a9927cc4e960ec"> 68</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_GET_ENCAPSULATED_RESPONSE 0x01</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="comment">// CDC Commands defined by PSTN 1.2</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a893b79445f99070657e8d45f6495b174"> 71</a></span>&#160;<span class="preprocessor">#define CDC_SET_COMM_FEATURE 0x02</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ad0912dac888d01142b225b0c6f8a508f"> 72</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_GET_COMM_FEATURE 0x03</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a6c79b8666110840333ad3785bf7ce87c"> 73</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_CLEAR_COMM_FEATURE 0x04</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ac39a42b128864ba4fae224be0078adba"> 74</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_AUX_LINE_STATE 0x10</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a367e07b7ce50e3a17703da1dea7f05a1"> 75</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_HOOK_STATE 0x11</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#aab5439915442bd5b835d7c755ba5fec1"> 76</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_PULSE_SETUP 0x12</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#af83535db4560a2fa52c72571f914dfc1"> 77</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SEND_PULSE 0x13</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a83ededfa85fdc32e603f9d1cdccbad78"> 78</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_PULSE_TIME 0x14</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a763f022025ebdaa3e6fb3dd6b5bef118"> 79</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_RING_AUX_JACK 0x15</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ad07ce089c8757b8d2ff37ddd83dc9351"> 80</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_LINE_CODING 0x20</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a1068ab45668e413d964a01bc36fa2d43"> 81</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_GET_LINE_CODING 0x21</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a11c392243dec4d03970f1eaa1f8053ae"> 82</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_CONTROL_LINE_STATE 0x22</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a868c480caf0abda6b458c82281dda8ad"> 83</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SEND_BREAK 0x23</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#aacceff07ade4b94b3c924d4f4ad6b139"> 84</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_RINGER_PARMS 0x30</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a7a17ca0755e655bd1fe6ac97b68ec10f"> 85</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_GET_RINGER_PARMS 0x31</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a437557c6adb23d8cdde7842b62a03a21"> 86</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_OPERATION_PARMS 0x32</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a257e7150670c8cc0b1d90c8f19c36b38"> 87</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_GET_OPERATION_PARMS 0x33</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a74433e0421d2cfd59982db6417a8ea41"> 88</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_SET_LINE_PARMS 0x34</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a725da0e1d595c7aebacb9fa3df4d7231"> 89</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_GET_LINE_PARMS 0x35</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a4d1029757801882e8d6589c05a3c41db"> 90</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CDC_DIAL_DIGITS 0x36</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="preprocessor"></span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<span class="comment">// CDC Functional Descriptor Structures</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html"> 94</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#ae5ab7e23e6f5268f042b1cec3986867a"> 95</a></span>&#160; uint8_t <a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#ae5ab7e23e6f5268f042b1cec3986867a">bFunctionLength</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#ad36c57f51019212d773c8d1b70b12a77"> 96</a></span>&#160; uint8_t <a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#ad36c57f51019212d773c8d1b70b12a77">bDescriptorType</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#af97ef3ee2d908edaabfdde534fa15e7b"> 97</a></span>&#160; uint8_t <a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#af97ef3ee2d908edaabfdde534fa15e7b">bDescriptorSubtype</a>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#a76161d5fa6c12239aad097f5010825c2"> 98</a></span>&#160; uint8_t <a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#a76161d5fa6c12239aad097f5010825c2">bmCapabilities</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#a83213f501eef93701807736887fc587c"> 99</a></span>&#160; uint8_t <a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html#a83213f501eef93701807736887fc587c">bDataInterface</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;} <a class="code" href="struct_c_a_l_l___m_g_m_n_t___f_u_n_c___d_e_s_c_r.html">CALL_MGMNT_FUNC_DESCR</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html"> 102</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a46c41dcbc0f3fdc37c0cd411b6b3213e"> 103</a></span>&#160; uint8_t <a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a46c41dcbc0f3fdc37c0cd411b6b3213e">bFunctionLength</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a4562e71852b142b483b68deaaa360e6a"> 104</a></span>&#160; uint8_t <a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a4562e71852b142b483b68deaaa360e6a">bDescriptorType</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a139534f16b74c2a09879fbc44fc84199"> 105</a></span>&#160; uint8_t <a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a139534f16b74c2a09879fbc44fc84199">bDescriptorSubtype</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a6c54b317cabd68eebd318257ab02abe4"> 106</a></span>&#160; uint8_t <a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a6c54b317cabd68eebd318257ab02abe4">bmCapabilities</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;} <a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html">ACM_FUNC_DESCR</a>, <a class="code" href="cdcacm_8h.html#aee9cef95b49c643abc3269666b62aa1b">DLM_FUNC_DESCR</a>, <a class="code" href="cdcacm_8h.html#ad377d3305b15e93acb1e0799ee7c3972">TEL_OPER_MODES_FUNC_DESCR</a>,</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;<a class="code" href="cdcacm_8h.html#a01d7daaa4bdcff9f84f1a49206933cb2">TEL_CALL_STATE_REP_CPBL_FUNC_DESCR</a>;</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"><a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html"> 110</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#afac33a06771f8b063a8330849cb19386"> 111</a></span>&#160; uint8_t <a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#afac33a06771f8b063a8330849cb19386">bFunctionLength</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#ad20f29394df0ec88cd151fa9a5a22579"> 112</a></span>&#160; uint8_t <a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#ad20f29394df0ec88cd151fa9a5a22579">bDescriptorType</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#aeb3343737ca0bc3b869a6c7046b3d2c2"> 113</a></span>&#160; uint8_t <a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#aeb3343737ca0bc3b869a6c7046b3d2c2">bDescriptorSubtype</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#afdbb7ff1b60803569e26718685da9196"> 114</a></span>&#160; uint8_t <a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#afdbb7ff1b60803569e26718685da9196">bRingerVolSteps</a>;</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#aca65dc577a0dbc13972da9ab26e25918"> 115</a></span>&#160; uint8_t <a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html#aca65dc577a0dbc13972da9ab26e25918">bNumRingerPatterns</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;} <a class="code" href="struct_t_e_l___r_i_n_g_e_r___f_u_n_c___d_e_s_c_r.html">TEL_RINGER_FUNC_DESCR</a>;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html"> 118</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ae9fd7d7247b4c50df89a6dd5ed955073"> 119</a></span>&#160; uint32_t <a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ae9fd7d7247b4c50df89a6dd5ed955073">dwDTERate</a>; <span class="comment">// Data Terminal Rate in bits per second</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ae2c35eef8f7e35b5f2a3464225477d3c"> 120</a></span>&#160; uint8_t <a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ae2c35eef8f7e35b5f2a3464225477d3c">bCharFormat</a>; <span class="comment">// 0 - 1 stop bit, 1 - 1.5 stop bits, 2 - 2 stop bits</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ad14985344c9e31a210999dfa0b4ccc42"> 121</a></span>&#160; uint8_t <a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ad14985344c9e31a210999dfa0b4ccc42">bParityType</a>; <span class="comment">// 0 - None, 1 - Odd, 2 - Even, 3 - Mark, 4 - Space</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#a2c360b6f874f2cf45f95492f9e6c1812"> 122</a></span>&#160; uint8_t <a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#a2c360b6f874f2cf45f95492f9e6c1812">bDataBits</a>; <span class="comment">// Data bits (5, 6, 7, 8 or 16)</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;} <a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html">LINE_CODING</a>;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="keyword">class </span><a class="code" href="class_a_c_m.html">ACM</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="class_c_d_c_async_oper.html"> 127</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_c_d_c_async_oper.html">CDCAsyncOper</a> {</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_c_d_c_async_oper.html#a899353c3cbf83d7f874d11e5d9db4722">OnInit</a>(<a class="code" href="class_a_c_m.html">ACM</a> *pacm) = 0;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="comment">//virtual void OnDataRcvd(ACM *pacm, uint8_t nbytes, uint8_t *dataptr) = 0;</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="comment">//virtual void OnDisconnected(ACM *pacm) = 0;</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;};</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#aa11e629b02a0cd7d768f796732cb2694"> 135</a></span>&#160;<span class="preprocessor">#define ACM_MAX_ENDPOINTS 4</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="class_a_c_m.html"> 137</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_a_c_m.html">ACM</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_config_xtracter.html">UsbConfigXtracter</a> {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a5917b5098e529fafe67a53e03f1e7011"> 139</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_a_c_m.html#a5917b5098e529fafe67a53e03f1e7011">epDataInIndex</a>; <span class="comment">// DataIn endpoint index</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a0dc940bc4f1bed7525bb768e37e6cb61"> 140</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_a_c_m.html#a0dc940bc4f1bed7525bb768e37e6cb61">epDataOutIndex</a>; <span class="comment">// DataOUT endpoint index</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a9b32207fdf256e5f8553ba4048b64307"> 141</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_a_c_m.html#a9b32207fdf256e5f8553ba4048b64307">epInterruptInIndex</a>; <span class="comment">// InterruptIN endpoint index</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"><a class="code" href="class_a_c_m.html#ae403b0129d7beda921de9d9586b597f7"> 143</a></span>&#160; <a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_a_c_m.html#ae403b0129d7beda921de9d9586b597f7">pUsb</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a3f160c6c757994f0c30bd5c5f1fb9d95"> 144</a></span>&#160; <a class="code" href="class_c_d_c_async_oper.html">CDCAsyncOper</a> *<a class="code" href="class_a_c_m.html#a3f160c6c757994f0c30bd5c5f1fb9d95">pAsync</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="class_a_c_m.html#abaa06a619a519f4cb39cc8482af6f111"> 145</a></span>&#160; uint8_t <a class="code" href="class_a_c_m.html#abaa06a619a519f4cb39cc8482af6f111">bAddress</a>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="class_a_c_m.html#af1a17c2d77625599da12b26cb0c90d39"> 146</a></span>&#160; uint8_t <a class="code" href="class_a_c_m.html#af1a17c2d77625599da12b26cb0c90d39">bConfNum</a>; <span class="comment">// configuration number</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a5512d9e8c8c59371f16018fe8ce46b19"> 147</a></span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a5512d9e8c8c59371f16018fe8ce46b19">bControlIface</a>; <span class="comment">// Control interface value</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a720b72b524e03da8f17c045e0d689ba1"> 148</a></span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a720b72b524e03da8f17c045e0d689ba1">bDataIface</a>; <span class="comment">// Data interface value</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a058b4d4a088a002fcde4fb2b75e33f93"> 149</a></span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a058b4d4a088a002fcde4fb2b75e33f93">bNumEP</a>; <span class="comment">// total number of EP in the configuration</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a6701d70ae4734e8a81971d9fb8b085f2"> 150</a></span>&#160; uint32_t <a class="code" href="class_a_c_m.html#a6701d70ae4734e8a81971d9fb8b085f2">qNextPollTime</a>; <span class="comment">// next poll time</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="code" href="class_a_c_m.html#acd6716c4fc871942fca55e1501dc5b09"> 151</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_a_c_m.html#acd6716c4fc871942fca55e1501dc5b09">bPollEnable</a>; <span class="comment">// poll enable flag</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a60fb6a365b78fb80a4a9842e364cf1a3"> 153</a></span>&#160; <a class="code" href="struct_ep_info.html">EpInfo</a> <a class="code" href="class_a_c_m.html#a60fb6a365b78fb80a4a9842e364cf1a3">epInfo</a>[<a class="code" href="cdcacm_8h.html#aa11e629b02a0cd7d768f796732cb2694">ACM_MAX_ENDPOINTS</a>];</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_a_c_m.html#aa05a65487f5e02bab40ccba1018ee5b6">PrintEndpointDescriptor</a>(<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="l00156"></a><span class="lineno"> 156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <a class="code" href="class_a_c_m.html#aa5d83ef9d48dab404090e9136522707a">ACM</a>(<a class="code" href="class_u_s_b.html">USB</a> *pusb, <a class="code" href="class_c_d_c_async_oper.html">CDCAsyncOper</a> *pasync);</div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a62c91ac62e8e3bf66bc3940d5b934c10">SetCommFeature</a>(uint16_t fid, uint8_t nbytes, uint8_t *dataptr);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a18208672a707391863b8abdc6714c825">GetCommFeature</a>(uint16_t fid, uint8_t nbytes, uint8_t *dataptr);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a74a3484a0f524ddf0e228c17addcebdf">ClearCommFeature</a>(uint16_t fid);</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a79eb8706c7f1432593fb2f2eee0da504">SetLineCoding</a>(<span class="keyword">const</span> <a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html">LINE_CODING</a> *dataptr);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a9d922317b25a7ae086a6fe79984ab8d1">GetLineCoding</a>(<a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html">LINE_CODING</a> *dataptr);</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#af2e08e5f03f17ed039985147a7129bbd">SetControlLineState</a>(uint8_t state);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a2a618cbff52737740e76977db557ddff">SendBreak</a>(uint16_t duration);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="comment">// Methods for recieving and sending data</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#a7f455b7a649522c29f2e63d668b0ccca">RcvData</a>(uint16_t *nbytesptr, uint8_t *dataptr);</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; uint8_t <a class="code" href="class_a_c_m.html#ac96caeb8d657fa76219872ceb4379923">SndData</a>(uint16_t nbytes, uint8_t *dataptr);</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="comment">// USBDeviceConfig implementation</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_a_c_m.html#ad3210651d58c77d3ded4b4b83a9476b7">Init</a>(uint8_t parent, uint8_t port, <span class="keywordtype">bool</span> lowspeed);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_a_c_m.html#a768c0fd4ef7f5c52de9e5e7431685279">Release</a>();</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_a_c_m.html#a79e4da2cae9145d895a6a1211a96fe36">Poll</a>();</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a7e0bb108012af9a99bb98aefca036d84"> 177</a></span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_a_c_m.html#a7e0bb108012af9a99bb98aefca036d84">GetAddress</a>() {</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">return</span> <a class="code" href="class_a_c_m.html#abaa06a619a519f4cb39cc8482af6f111">bAddress</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; };</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="comment">// UsbConfigXtracter implementation</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_a_c_m.html#af5b411a7ccc82bd77a7c5cfba6cd9a86">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="l00183"></a><span class="lineno"> 183</span>&#160;};</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;<span class="preprocessor">#endif // __CDCACM_H__</span></div>
2013-01-30 22:00:18 +01:00
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
2013-01-30 22:00:18 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>