mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
310 lines
52 KiB
HTML
310 lines
52 KiB
HTML
<!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: /Users/Lauszus/GitHub/USB_Host_Shield_2.0/cdcacm.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</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 style="padding-left: 0.5em;">
|
|
<div id="projectname">USB_Host_Shield_2.0
|
|
</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 Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related 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 List</span></a></li>
|
|
<li><a href="globals.html"><span>File 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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </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_c8a8870798f18a14afbce47230dc4059.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_8d22a5dfb299d0b3a2bdc551c5cdbd10.html">USB_Host_Shield_2.0</a></li> </ul>
|
|
</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> <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> <span class="comment"></span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <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> <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> <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> <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> <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> <span class="comment">the GPL2 ("Copyleft").</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">Contact information</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">-------------------</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"></span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">Circuits At Home, LTD</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">Web : http://www.circuitsathome.com</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">e-mail : support@circuitsathome.com</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#if !defined(__CDCACM_H__)</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span><span class="preprocessor">#define __CDCACM_H__</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <inttypes.h></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <avr/pgmspace.h></span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="avrpins_8h.html">avrpins.h</a>"</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="max3421e_8h.html">max3421e.h</a>"</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="usbhost_8h.html">usbhost.h</a>"</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="usb__ch9_8h.html">usb_ch9.h</a>"</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="_usb_8h.html">Usb.h</a>"</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#if defined(ARDUINO) && ARDUINO >=100</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor"></span><span class="preprocessor">#include "Arduino.h"</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#else</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor"></span><span class="preprocessor">#include <WProgram.h></span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="printhex_8h.html">printhex.h</a>"</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="hexdump_8h.html">hexdump.h</a>"</span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="message_8h.html">message.h</a>"</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "<a class="code" href="confdescparser_8h.html">confdescparser.h</a>"</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a5797aa38c730dde78bf3181282bd6bf9"> 40</a></span> <span class="preprocessor">#define bmREQ_CDCOUT USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#af2ac2e2644603a3d1013be940c43314d"> 41</a></span> <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>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <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> <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> <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> <span class="preprocessor"></span><span class="preprocessor">#define CDC_PROTOCOL_PCCA_101_O 0x03 // AT Commands defined by PCCA-101 & 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> <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> <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> <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> <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> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <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> <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> <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> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment">//Class-Specific Notification Codes</span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a9e48b736a3dbd35ebbe8507b29dec86a"> 93</a></span> <span class="preprocessor">#define NETWORK_CONNECTION 0x00</span></div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ac0ba0ade7f2d2a3b9c4cef90931e8237"> 94</a></span> <span class="preprocessor"></span><span class="preprocessor">#define RESPONSE_AVAILABLE 0x01</span></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#ac79c185e34b15634c1ba5d15eb8c831c"> 95</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AUX_JACK_HOOK_STATE 0x08</span></div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a83130a0c72dea5b783134e28665628ee"> 96</a></span> <span class="preprocessor"></span><span class="preprocessor">#define RING_DETECT 0x09</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a8e278dbd137d5d873d24e1647be9d4e6"> 97</a></span> <span class="preprocessor"></span><span class="preprocessor">#define SERIAL_STATE 0x20</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a16e45b21be9797a7190330fd10bc1b07"> 98</a></span> <span class="preprocessor"></span><span class="preprocessor">#define CALL_STATE_CHANGE 0x28</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a0a06858faca59d300fbadd0e37e312c9"> 99</a></span> <span class="preprocessor"></span><span class="preprocessor">#define LINE_STATE_CHANGE 0x29</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#a0bf4e444b84f8ab8bb1b3dfe16dc93de"> 100</a></span> <span class="preprocessor"></span><span class="preprocessor">#define CONNECTION_SPEED_CHANGE 0x2a</span></div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment">// CDC Functional Descriptor Structures</span></div>
|
|
<div class="line"><a name="l00104"></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"> 104</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> {</div>
|
|
<div class="line"><a name="l00106"></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"> 106</a></span>  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="l00107"></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"> 107</a></span>  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="l00108"></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"> 108</a></span>  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="l00109"></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"> 109</a></span>  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="l00110"></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"> 110</a></span>  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="l00111"></a><span class="lineno"> 111</span> } <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="l00112"></a><span class="lineno"> 112</span> </div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html"> 113</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> {</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a46c41dcbc0f3fdc37c0cd411b6b3213e"> 115</a></span>  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="l00116"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a4562e71852b142b483b68deaaa360e6a"> 116</a></span>  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="l00117"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a139534f16b74c2a09879fbc44fc84199"> 117</a></span>  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="l00118"></a><span class="lineno"><a class="code" href="struct_a_c_m___f_u_n_c___d_e_s_c_r.html#a6c54b317cabd68eebd318257ab02abe4"> 118</a></span>  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="l00119"></a><span class="lineno"> 119</span> } <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="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="cdcacm_8h.html#acc87178a3e9b6aa98c5bf6aa99c68ef7">TEL_CALL_STATE_REP_CPBL_FUNC_DESCR</a>;</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div>
|
|
<div class="line"><a name="l00122"></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"> 122</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> {</div>
|
|
<div class="line"><a name="l00124"></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"> 124</a></span>  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="l00125"></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"> 125</a></span>  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="l00126"></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"> 126</a></span>  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="l00127"></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"> 127</a></span>  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="l00128"></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"> 128</a></span>  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="l00129"></a><span class="lineno"> 129</span> } <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="l00130"></a><span class="lineno"> 130</span> </div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html"> 131</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> {</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ae9fd7d7247b4c50df89a6dd5ed955073"> 133</a></span>  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="l00134"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ae2c35eef8f7e35b5f2a3464225477d3c"> 134</a></span>  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="l00135"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#ad14985344c9e31a210999dfa0b4ccc42"> 135</a></span>  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="l00136"></a><span class="lineno"><a class="code" href="struct_l_i_n_e___c_o_d_i_n_g.html#a2c360b6f874f2cf45f95492f9e6c1812"> 136</a></span>  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="l00137"></a><span class="lineno"> 137</span> } <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="l00138"></a><span class="lineno"> 138</span> </div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html"> 139</a></span> <span class="keyword">typedef</span> <span class="keyword">struct</span></div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> {</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"><a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#ad268e291db5485ca0869aeb66bc77d3c"> 141</a></span>  uint8_t <a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#ad268e291db5485ca0869aeb66bc77d3c">bmRequestType</a>; <span class="comment">// 0xa1 for class-specific notifications</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#a158c134809e776056d50ffada8089e56"> 142</a></span>  uint8_t <a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#a158c134809e776056d50ffada8089e56">bNotification</a>;</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#ab55dc65ad3f5b47da89beeaf7c03b4bc"> 143</a></span>  uint16_t <a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#ab55dc65ad3f5b47da89beeaf7c03b4bc">wValue</a>;</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#aae0d299b4d6e5ee396ace3f1b4cc7352"> 144</a></span>  uint16_t <a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#aae0d299b4d6e5ee396ace3f1b4cc7352">wIndex</a>;</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#a7933669f6b6379d7ee0605f50422cbe2"> 145</a></span>  uint16_t <a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#a7933669f6b6379d7ee0605f50422cbe2">wLength</a>;</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#a32bd53e2663570c57f78a91e2ebfc59c"> 146</a></span>  uint16_t <a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html#a32bd53e2663570c57f78a91e2ebfc59c">bmState</a>; <span class="comment">//UART state bitmap for SERIAL_STATE, other notifications variable length</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> } <a class="code" href="struct_c_l_a_s_s___n_o_t_i_f_i_c_a_t_i_o_n.html">CLASS_NOTIFICATION</a>; </div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keyword">class </span><a class="code" href="class_a_c_m.html">ACM</a>;</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"><a class="code" href="class_c_d_c_async_oper.html"> 151</a></span> <span class="keyword">class </span><a class="code" href="class_c_d_c_async_oper.html">CDCAsyncOper</a></div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> {</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <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="l00155"></a><span class="lineno"> 155</span>  <span class="comment">//virtual void OnDataRcvd(ACM *pacm, uint8_t nbytes, uint8_t *dataptr) = 0;</span></div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">//virtual void OnDisconnected(ACM *pacm) = 0;</span></div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> };</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="cdcacm_8h.html#aa11e629b02a0cd7d768f796732cb2694"> 160</a></span> <span class="preprocessor">#define ACM_MAX_ENDPOINTS 4</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="class_a_c_m.html"> 162</a></span> <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="l00163"></a><span class="lineno"> 163</span> {</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="keyword">protected</span>:</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a5917b5098e529fafe67a53e03f1e7011"> 165</a></span>  <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="l00166"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a0dc940bc4f1bed7525bb768e37e6cb61"> 166</a></span>  <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="l00167"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a9b32207fdf256e5f8553ba4048b64307"> 167</a></span>  <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="l00168"></a><span class="lineno"> 168</span> </div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"><a class="code" href="class_a_c_m.html#ae403b0129d7beda921de9d9586b597f7"> 169</a></span>  <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="l00170"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a3f160c6c757994f0c30bd5c5f1fb9d95"> 170</a></span>  <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="l00171"></a><span class="lineno"><a class="code" href="class_a_c_m.html#abaa06a619a519f4cb39cc8482af6f111"> 171</a></span>  uint8_t <a class="code" href="class_a_c_m.html#abaa06a619a519f4cb39cc8482af6f111">bAddress</a>;</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="class_a_c_m.html#af1a17c2d77625599da12b26cb0c90d39"> 172</a></span>  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="l00173"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a5512d9e8c8c59371f16018fe8ce46b19"> 173</a></span>  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="l00174"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a720b72b524e03da8f17c045e0d689ba1"> 174</a></span>  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="l00175"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a058b4d4a088a002fcde4fb2b75e33f93"> 175</a></span>  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="l00176"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a6701d70ae4734e8a81971d9fb8b085f2"> 176</a></span>  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="l00177"></a><span class="lineno"><a class="code" href="class_a_c_m.html#acd6716c4fc871942fca55e1501dc5b09"> 177</a></span>  <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="l00178"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a8ebf4b872b0ed66e93b4ed39f46290fd"> 178</a></span>  <span class="keywordtype">bool</span> <a class="code" href="class_a_c_m.html#a8ebf4b872b0ed66e93b4ed39f46290fd">ready</a>; <span class="comment">//device ready indicator </span></div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a60fb6a365b78fb80a4a9842e364cf1a3"> 180</a></span>  <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="l00181"></a><span class="lineno"> 181</span> </div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <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="l00183"></a><span class="lineno"> 183</span> </div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <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>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  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="l00188"></a><span class="lineno"> 188</span>  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="l00189"></a><span class="lineno"> 189</span>  uint8_t <a class="code" href="class_a_c_m.html#a74a3484a0f524ddf0e228c17addcebdf">ClearCommFeature</a>(uint16_t fid);</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  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="l00191"></a><span class="lineno"> 191</span>  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="l00192"></a><span class="lineno"> 192</span>  uint8_t <a class="code" href="class_a_c_m.html#af2e08e5f03f17ed039985147a7129bbd">SetControlLineState</a>(uint8_t state);</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  uint8_t <a class="code" href="class_a_c_m.html#a2a618cbff52737740e76977db557ddff">SendBreak</a>(uint16_t duration);</div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  uint8_t <a class="code" href="class_a_c_m.html#a4deddfbfb1d9010b71096cbfd46b2dfb">GetNotif</a>( uint16_t *bytes_rcvd, uint8_t *dataptr );</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> </div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="comment">// Methods for recieving and sending data</span></div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  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="l00198"></a><span class="lineno"> 198</span>  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="l00199"></a><span class="lineno"> 199</span> </div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="comment">// USBDeviceConfig implementation</span></div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <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="l00202"></a><span class="lineno"> 202</span>  <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="l00203"></a><span class="lineno"> 203</span>  <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="l00204"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a7e0bb108012af9a99bb98aefca036d84"> 204</a></span>  <span class="keyword">virtual</span> uint8_t <a class="code" href="class_a_c_m.html#a7e0bb108012af9a99bb98aefca036d84">GetAddress</a>() { <span class="keywordflow">return</span> <a class="code" href="class_a_c_m.html#abaa06a619a519f4cb39cc8482af6f111">bAddress</a>; };</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"><a class="code" href="class_a_c_m.html#a7161082e88359738596dd12a706ee286"> 205</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_a_c_m.html#a7161082e88359738596dd12a706ee286">isReady</a>() { <span class="keywordflow">return</span> <a class="code" href="class_a_c_m.html#a8ebf4b872b0ed66e93b4ed39f46290fd">ready</a>; };</div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="comment">// UsbConfigXtracter implementation</span></div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <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="l00209"></a><span class="lineno"> 209</span> };</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="preprocessor">#endif // __CDCACM_H__</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Tue Feb 5 2013 20:57:21 for USB_Host_Shield_2.0 by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.3.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|