USB_Host_Shield_2.0/cdcprolific_8h_source.html
2014-06-09 17:02:31 +02:00

252 lines
38 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.7"/>
<title>USB Host Shield 2.0: cdcprolific.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" />
<link href="imageStyle.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.7 -->
<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>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">cdcprolific.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="cdcprolific_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>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#if !defined(__CDCPROLIFIC_H__)</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define __CDCPROLIFIC_H__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cdcacm_8h.html">cdcacm.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ac33a32ea1e6c88a3041b8fd579bb439b"> 22</a></span>&#160;<span class="preprocessor">#define PL_VID 0x067B</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a07de3d09679a16223690f65ada967a24"> 23</a></span>&#160;<span class="preprocessor">#define PL_PID ( 0x2303 || 0x0609 )</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">//#define PL_PID 0x0609</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a961cb737481f7f216ba32049bbdb8d28"> 27</a></span>&#160;<span class="preprocessor">#define PROLIFIC_REV_H 0x0202</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#acf39e8d7280a59ca15242695443c9c08"> 28</a></span>&#160;<span class="preprocessor">#define PROLIFIC_REV_X 0x0300</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a95aad329b927ced24fc54a2c1c604c4f"> 29</a></span>&#160;<span class="preprocessor">#define PROLIFIC_REV_HX_CHIP_D 0x0400</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a9c2ce56792e2f2641b822909d38c4820"> 30</a></span>&#160;<span class="preprocessor">#define PROLIFIC_REV_1 0x0001</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a825d6b262c88a98f58597060b6f3b822"> 32</a></span>&#160;<span class="preprocessor">#define kXOnChar &#39;\x11&#39;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a360660ec5b280900c26b5d8b96277c3c"> 33</a></span>&#160;<span class="preprocessor">#define kXOffChar &#39;\x13&#39;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a81ae660feed6809dadd118b7b68bd2b6"> 35</a></span>&#160;<span class="preprocessor">#define SPECIAL_SHIFT (5)</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#af1a33db53b892c714bd96fb67e446014"> 36</a></span>&#160;<span class="preprocessor">#define SPECIAL_MASK ((1&lt;&lt;SPECIAL_SHIFT) - 1)</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ac41d29368b62bc84d0d63d2b79b4d260"> 37</a></span>&#160;<span class="preprocessor">#define STATE_ALL ( PD_RS232_S_MASK | PD_S_MASK )</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#aa9df6c27f8bf720206bc88285994c54b"> 38</a></span>&#160;<span class="preprocessor">#define FLOW_RX_AUTO ( PD_RS232_A_RFR | PD_RS232_A_DTR | PD_RS232_A_RXO )</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ac43d59739a4945979e600bb15df8347c"> 39</a></span>&#160;<span class="preprocessor">#define FLOW_TX_AUTO ( PD_RS232_A_CTS | PD_RS232_A_DSR | PD_RS232_A_TXO | PD_RS232_A_DCD )</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a30dcf1962e23ca3176695f4eaa5d5c28"> 40</a></span>&#160;<span class="preprocessor">#define CAN_BE_AUTO ( FLOW_RX_AUTO | FLOW_TX_AUTO )</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a197aa848c18becf5360bd06d2b9b8757"> 41</a></span>&#160;<span class="preprocessor">#define CAN_NOTIFY ( PD_RS232_N_MASK )</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a18bdc379296992f91a263a8aa869cf24"> 42</a></span>&#160;<span class="preprocessor">#define EXTERNAL_MASK ( PD_S_MASK | (PD_RS232_S_MASK &amp; ~PD_RS232_S_LOOP) )</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ad77e166d8f5931c693952f5e89c2b732"> 43</a></span>&#160;<span class="preprocessor">#define INTERNAL_DELAY ( PD_RS232_S_LOOP )</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#acc570c15816dfccb107fa119c255dc26"> 44</a></span>&#160;<span class="preprocessor">#define DEFAULT_AUTO ( PD_RS232_A_DTR | PD_RS232_A_RFR | PD_RS232_A_CTS | PD_RS232_A_DSR )</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a858860d62527650b80da4ef4aaac1317"> 45</a></span>&#160;<span class="preprocessor">#define DEFAULT_NOTIFY 0x00</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#af93d7c80faa6ebd086460cde2d5dd27e"> 46</a></span>&#160;<span class="preprocessor">#define DEFAULT_STATE ( PD_S_TX_ENABLE | PD_S_RX_ENABLE | PD_RS232_A_TXO | PD_RS232_A_RXO )</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ab31d90a1365ace8148b4ffb5b09c3204"> 48</a></span>&#160;<span class="preprocessor">#define CONTINUE_SEND 1</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#aa6d1fd101c19f5199c26480d3284c30a"> 49</a></span>&#160;<span class="preprocessor">#define PAUSE_SEND 2</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a38efb3430a780bf3f5df85fea0dd2b78"> 51</a></span>&#160;<span class="preprocessor">#define kRxAutoFlow ((UInt32)( PD_RS232_A_RFR | PD_RS232_A_DTR | PD_RS232_A_RXO ))</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a3e17e71021c4f1610edaf9ac0b004773"> 52</a></span>&#160;<span class="preprocessor">#define kTxAutoFlow ((UInt32)( PD_RS232_A_CTS | PD_RS232_A_DSR | PD_RS232_A_TXO | PD_RS232_A_DCD ))</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6e04ec5299b97050655485fb091c1d47"> 53</a></span>&#160;<span class="preprocessor">#define kControl_StateMask ((UInt32)( PD_RS232_S_CTS | PD_RS232_S_DSR | PD_RS232_S_CAR | PD_RS232_S_RI ))</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6d7bb5515cc4b6020dea9b12874114d7"> 54</a></span>&#160;<span class="preprocessor">#define kRxQueueState ((UInt32)( PD_S_RXQ_EMPTY | PD_S_RXQ_LOW_WATER | PD_S_RXQ_HIGH_WATER | PD_S_RXQ_FULL ))</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a1f5d458d623cc15052a3e184ab811707"> 55</a></span>&#160;<span class="preprocessor">#define kTxQueueState ((UInt32)( PD_S_TXQ_EMPTY | PD_S_TXQ_LOW_WATER | PD_S_TXQ_HIGH_WATER | PD_S_TXQ_FULL ))</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#afd88d628823395976fc1f615226f9c94"> 57</a></span>&#160;<span class="preprocessor">#define kCONTROL_DTR 0x01</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a329541dad3c626b963b0ece5a478247f"> 58</a></span>&#160;<span class="preprocessor">#define kCONTROL_RTS 0x02</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fb"> 60</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fb">tXO_State</a> {</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba85a29accfd1f300da85475fe594131ef"> 61</a></span>&#160; <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba85a29accfd1f300da85475fe594131ef">kXOnSent</a> = -2,</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbacd69a72b64873b169216781514aab2d8"> 62</a></span>&#160; <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbacd69a72b64873b169216781514aab2d8">kXOffSent</a> = -1,</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbafa4e17811895e3cfdc0fd24f1ebc80fb"> 63</a></span>&#160; <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbafa4e17811895e3cfdc0fd24f1ebc80fb">kXO_Idle</a> = 0,</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba3a3441d7b96b577a695864955081644d"> 64</a></span>&#160; <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba3a3441d7b96b577a695864955081644d">kXOffNeeded</a> = 1,</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba692a434f5e6e0dc6487eb855a2d45ff0"> 65</a></span>&#160; <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba692a434f5e6e0dc6487eb855a2d45ff0">kXOnNeeded</a> = 2</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;};</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a65ac8ac3d08ee7862ed09a2ac1f64cf4"> 68</a></span>&#160;<span class="preprocessor">#define kStateTransientMask 0x74</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a7f802be6da599613666caca90940a118"> 69</a></span>&#160;<span class="preprocessor">#define kBreakError 0x04</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a25ba69ccbb225bf2c900f87ca5c51fb1"> 70</a></span>&#160;<span class="preprocessor">#define kFrameError 0x10</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ad976aee3d980aedb2aa6dd6fc6ac805f"> 71</a></span>&#160;<span class="preprocessor">#define kParityError 0x20</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ad1f4fc023b3b7effa71d68bd1665fcff"> 72</a></span>&#160;<span class="preprocessor">#define kOverrunError 0x40</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a9ee874fc96875d7eb2e505324cd4e22e"> 74</a></span>&#160;<span class="preprocessor">#define kCTS 0x80</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#af9973cf2cb19393174ae738d2e3eadc6"> 75</a></span>&#160;<span class="preprocessor">#define kDSR 0x02</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a4d0d61b5b66d1518198ca9d1150b1d7d"> 76</a></span>&#160;<span class="preprocessor">#define kRI 0x08</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ac76313fb4cf0164772450e8e205d77dc"> 77</a></span>&#160;<span class="preprocessor">#define kDCD 0x01</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ae9976c97335cf1b46c32caaa054438a9"> 78</a></span>&#160;<span class="preprocessor">#define kHandshakeInMask ((UInt32)( PD_RS232_S_CTS | PD_RS232_S_DSR | PD_RS232_S_CAR | PD_RS232_S_RI ))</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a242bbbe616270b5c01d3614dbe57fe45"> 80</a></span>&#160;<span class="preprocessor">#define VENDOR_WRITE_REQUEST_TYPE 0x40</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#aa0dae52300cd2ca352f5d3cd2194824b"> 81</a></span>&#160;<span class="preprocessor">#define VENDOR_WRITE_REQUEST 0x01</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a21c64a6ccc471ac907896f8590dcf7b2"> 83</a></span>&#160;<span class="preprocessor">#define VENDOR_READ_REQUEST_TYPE 0xc0</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a230385b0735fad9d7b33e4f80d7deb4d"> 84</a></span>&#160;<span class="preprocessor">#define VENDOR_READ_REQUEST 0x01</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="comment">// Device Configuration Registers (DCR0, DCR1, DCR2)</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a0301d2726a35e10b2e05965cca3a4d3d"> 87</a></span>&#160;<span class="preprocessor">#define SET_DCR0 0x00</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a27f1e77863200d1f798db253340e05e0"> 88</a></span>&#160;<span class="preprocessor">#define GET_DCR0 0x80</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ad74aa175219ba20da29bd49595fb424a"> 89</a></span>&#160;<span class="preprocessor">#define DCR0_INIT 0x01</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6521e0d1199772f08f29722ae9e61f8d"> 90</a></span>&#160;<span class="preprocessor">#define DCR0_INIT_H 0x41</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ad00143b247ef00ec41be356bd0e17229"> 91</a></span>&#160;<span class="preprocessor">#define DCR0_INIT_X 0x61</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a409b94ba55c55a98d939e7bf4b347758"> 93</a></span>&#160;<span class="preprocessor">#define SET_DCR1 0x01</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a62ab8c44b9b3111fe0ba193e30d2612d"> 94</a></span>&#160;<span class="preprocessor">#define GET_DCR1 0x81</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#af83aa2f107968838d73809c4f9a05e75"> 95</a></span>&#160;<span class="preprocessor">#define DCR1_INIT_H 0x80</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ae539702b1c81f50770d282c4ab425709"> 96</a></span>&#160;<span class="preprocessor">#define DCR1_INIT_X 0x00</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#ac4f863f56f6198308d98983b157e25cf"> 98</a></span>&#160;<span class="preprocessor">#define SET_DCR2 0x02</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#aedd5c473d7ee45d806c4d7c13856089f"> 99</a></span>&#160;<span class="preprocessor">#define GET_DCR2 0x82</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#af9f58d0a0dbcd375b60f17beba78cbca"> 100</a></span>&#160;<span class="preprocessor">#define DCR2_INIT_H 0x24</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a195b68bbe6b9e565f2dc133c010f617f"> 101</a></span>&#160;<span class="preprocessor">#define DCR2_INIT_X 0x44</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="comment">// On-chip Data Buffers:</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a810fdf3da740b4c9e309cefb29f4eb3a"> 104</a></span>&#160;<span class="preprocessor">#define RESET_DOWNSTREAM_DATA_PIPE 0x08</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#aea64b328d877a5eead187856dd28f847"> 105</a></span>&#160;<span class="preprocessor">#define RESET_UPSTREAM_DATA_PIPE 0x09</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627"> 107</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627">pl2303_type</a> {</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a5b9f6d065e6e98483b3d3ed01f4f6cbe"> 108</a></span>&#160; <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a5b9f6d065e6e98483b3d3ed01f4f6cbe">unknown</a>,</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627af55eb000231282fd0e3556a1c4e1dab8"> 109</a></span>&#160; <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627af55eb000231282fd0e3556a1c4e1dab8">type_1</a>, <span class="comment">/* don&#39;t know the difference between type 0 and */</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627ae3ab850ab73c2f8a25d1fcd8a3336ada"> 110</a></span>&#160; <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627ae3ab850ab73c2f8a25d1fcd8a3336ada">rev_X</a>, <span class="comment">/* type 1, until someone from prolific tells us... */</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a6035ccdf4905b89a274404ba50766fd7"> 111</a></span>&#160; <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a6035ccdf4905b89a274404ba50766fd7">rev_HX</a>, <span class="comment">/* HX version of the pl2303 chip */</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a470a1f7e2c7dc1770a57096718f625d4"> 112</a></span>&#160; <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a470a1f7e2c7dc1770a57096718f625d4">rev_H</a></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;};</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="cdcprolific_8h.html#a225d7c12a1320152c218824d7fccfb29"> 116</a></span>&#160;<span class="preprocessor">#define PL_MAX_ENDPOINTS 4</span></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="line" href="class_p_l2303.html"> 118</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_p_l2303.html">PL2303</a> : <span class="keyword">public</span> <a class="code" href="class_a_c_m.html">ACM</a> {</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; uint16_t wPLType; <span class="comment">// Type of chip</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="code" href="class_p_l2303.html#ab3dfad9e451152abbdab4856accbb80c">PL2303</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="l00123"></a><span class="lineno"> 123</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// USBDeviceConfig implementation</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">virtual</span> uint8_t <a class="code" href="class_p_l2303.html#a23c849fb504c1fe6f46c84d04c0a47cf">Init</a>(uint8_t parent, uint8_t port, <span class="keywordtype">bool</span> lowspeed);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="comment">//virtual uint8_t Release();</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="comment">//virtual uint8_t Poll();</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="comment">//virtual uint8_t GetAddress() { return bAddress; };</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="comment">//virtual void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep);</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;<span class="preprocessor">#endif // __CDCPROLIFIC_H__</span></div>
<div class="ttc" id="cdcprolific_8h_html_a6003f43ffe2391c0c31ea48f6b772627af55eb000231282fd0e3556a1c4e1dab8"><div class="ttname"><a href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627af55eb000231282fd0e3556a1c4e1dab8">type_1</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00109">cdcprolific.h:109</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_add931a54ea58b7022eab1911dfd744fba85a29accfd1f300da85475fe594131ef"><div class="ttname"><a href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba85a29accfd1f300da85475fe594131ef">kXOnSent</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00061">cdcprolific.h:61</a></div></div>
<div class="ttc" id="class_p_l2303_html_a23c849fb504c1fe6f46c84d04c0a47cf"><div class="ttname"><a href="class_p_l2303.html#a23c849fb504c1fe6f46c84d04c0a47cf">PL2303::Init</a></div><div class="ttdeci">virtual uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)</div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8cpp_source.html#l00024">cdcprolific.cpp:24</a></div></div>
<div class="ttc" id="class_p_l2303_html_ab3dfad9e451152abbdab4856accbb80c"><div class="ttname"><a href="class_p_l2303.html#ab3dfad9e451152abbdab4856accbb80c">PL2303::PL2303</a></div><div class="ttdeci">PL2303(USB *pusb, CDCAsyncOper *pasync)</div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8cpp_source.html#l00019">cdcprolific.cpp:19</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_a6003f43ffe2391c0c31ea48f6b772627ae3ab850ab73c2f8a25d1fcd8a3336ada"><div class="ttname"><a href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627ae3ab850ab73c2f8a25d1fcd8a3336ada">rev_X</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00110">cdcprolific.h:110</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_add931a54ea58b7022eab1911dfd744fb"><div class="ttname"><a href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fb">tXO_State</a></div><div class="ttdeci">tXO_State</div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00060">cdcprolific.h:60</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_add931a54ea58b7022eab1911dfd744fba3a3441d7b96b577a695864955081644d"><div class="ttname"><a href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba3a3441d7b96b577a695864955081644d">kXOffNeeded</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00064">cdcprolific.h:64</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_add931a54ea58b7022eab1911dfd744fbacd69a72b64873b169216781514aab2d8"><div class="ttname"><a href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbacd69a72b64873b169216781514aab2d8">kXOffSent</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00062">cdcprolific.h:62</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_a6003f43ffe2391c0c31ea48f6b772627a6035ccdf4905b89a274404ba50766fd7"><div class="ttname"><a href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a6035ccdf4905b89a274404ba50766fd7">rev_HX</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00111">cdcprolific.h:111</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_a6003f43ffe2391c0c31ea48f6b772627a5b9f6d065e6e98483b3d3ed01f4f6cbe"><div class="ttname"><a href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a5b9f6d065e6e98483b3d3ed01f4f6cbe">unknown</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00108">cdcprolific.h:108</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_a6003f43ffe2391c0c31ea48f6b772627a470a1f7e2c7dc1770a57096718f625d4"><div class="ttname"><a href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a470a1f7e2c7dc1770a57096718f625d4">rev_H</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00112">cdcprolific.h:112</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_add931a54ea58b7022eab1911dfd744fba692a434f5e6e0dc6487eb855a2d45ff0"><div class="ttname"><a href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba692a434f5e6e0dc6487eb855a2d45ff0">kXOnNeeded</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00065">cdcprolific.h:65</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_a6003f43ffe2391c0c31ea48f6b772627"><div class="ttname"><a href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627">pl2303_type</a></div><div class="ttdeci">pl2303_type</div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00107">cdcprolific.h:107</a></div></div>
<div class="ttc" id="cdcacm_8h_html"><div class="ttname"><a href="cdcacm_8h.html">cdcacm.h</a></div></div>
<div class="ttc" id="class_c_d_c_async_oper_html"><div class="ttname"><a href="class_c_d_c_async_oper.html">CDCAsyncOper</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcacm_8h_source.html#l00128">cdcacm.h:128</a></div></div>
<div class="ttc" id="class_p_l2303_html"><div class="ttname"><a href="class_p_l2303.html">PL2303</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00118">cdcprolific.h:118</a></div></div>
<div class="ttc" id="cdcprolific_8h_html_add931a54ea58b7022eab1911dfd744fbafa4e17811895e3cfdc0fd24f1ebc80fb"><div class="ttname"><a href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbafa4e17811895e3cfdc0fd24f1ebc80fb">kXO_Idle</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcprolific_8h_source.html#l00063">cdcprolific.h:63</a></div></div>
<div class="ttc" id="class_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00190">UsbCore.h:190</a></div></div>
<div class="ttc" id="class_a_c_m_html"><div class="ttname"><a href="class_a_c_m.html">ACM</a></div><div class="ttdef"><b>Definition:</b> <a href="cdcacm_8h_source.html#l00138">cdcacm.h:138</a></div></div>
</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">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>