mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
252 lines
37 KiB
HTML
252 lines
37 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.4"/>
|
|
<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.4 -->
|
|
<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_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> <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(__CDCPROLIFIC_H__)</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span><span class="preprocessor">#define __CDCPROLIFIC_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> <span class="preprocessor">#include "<a class="code" href="cdcacm_8h.html">cdcacm.h</a>"</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ac33a32ea1e6c88a3041b8fd579bb439b"> 41</a></span> <span class="preprocessor">#define PL_VID 0x067B</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a07de3d09679a16223690f65ada967a24"> 42</a></span> <span class="preprocessor"></span><span class="preprocessor">#define PL_PID ( 0x2303 || 0x0609 )</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">//#define PL_PID 0x0609</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a961cb737481f7f216ba32049bbdb8d28"> 46</a></span> <span class="preprocessor">#define PROLIFIC_REV_H 0x0202</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#acf39e8d7280a59ca15242695443c9c08"> 47</a></span> <span class="preprocessor"></span><span class="preprocessor">#define PROLIFIC_REV_X 0x0300</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a95aad329b927ced24fc54a2c1c604c4f"> 48</a></span> <span class="preprocessor"></span><span class="preprocessor">#define PROLIFIC_REV_HX_CHIP_D 0x0400</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a9c2ce56792e2f2641b822909d38c4820"> 49</a></span> <span class="preprocessor"></span><span class="preprocessor">#define PROLIFIC_REV_1 0x0001</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a825d6b262c88a98f58597060b6f3b822"> 51</a></span> <span class="preprocessor">#define kXOnChar '\x11'</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a360660ec5b280900c26b5d8b96277c3c"> 52</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kXOffChar '\x13'</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a81ae660feed6809dadd118b7b68bd2b6"> 54</a></span> <span class="preprocessor">#define SPECIAL_SHIFT (5)</span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#af1a33db53b892c714bd96fb67e446014"> 55</a></span> <span class="preprocessor"></span><span class="preprocessor">#define SPECIAL_MASK ((1<<SPECIAL_SHIFT) - 1)</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ac41d29368b62bc84d0d63d2b79b4d260"> 56</a></span> <span class="preprocessor"></span><span class="preprocessor">#define STATE_ALL ( PD_RS232_S_MASK | PD_S_MASK )</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#aa9df6c27f8bf720206bc88285994c54b"> 57</a></span> <span class="preprocessor"></span><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="l00058"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ac43d59739a4945979e600bb15df8347c"> 58</a></span> <span class="preprocessor"></span><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="l00059"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a30dcf1962e23ca3176695f4eaa5d5c28"> 59</a></span> <span class="preprocessor"></span><span class="preprocessor">#define CAN_BE_AUTO ( FLOW_RX_AUTO | FLOW_TX_AUTO )</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a197aa848c18becf5360bd06d2b9b8757"> 60</a></span> <span class="preprocessor"></span><span class="preprocessor">#define CAN_NOTIFY ( PD_RS232_N_MASK )</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a18bdc379296992f91a263a8aa869cf24"> 61</a></span> <span class="preprocessor"></span><span class="preprocessor">#define EXTERNAL_MASK ( PD_S_MASK | (PD_RS232_S_MASK & ~PD_RS232_S_LOOP) )</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ad77e166d8f5931c693952f5e89c2b732"> 62</a></span> <span class="preprocessor"></span><span class="preprocessor">#define INTERNAL_DELAY ( PD_RS232_S_LOOP )</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#acc570c15816dfccb107fa119c255dc26"> 63</a></span> <span class="preprocessor"></span><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="l00064"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a858860d62527650b80da4ef4aaac1317"> 64</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DEFAULT_NOTIFY 0x00</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#af93d7c80faa6ebd086460cde2d5dd27e"> 65</a></span> <span class="preprocessor"></span><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="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ab31d90a1365ace8148b4ffb5b09c3204"> 67</a></span> <span class="preprocessor">#define CONTINUE_SEND 1</span></div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#aa6d1fd101c19f5199c26480d3284c30a"> 68</a></span> <span class="preprocessor"></span><span class="preprocessor">#define PAUSE_SEND 2</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"><a class="code" href="cdcprolific_8h.html#a38efb3430a780bf3f5df85fea0dd2b78"> 70</a></span> <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="l00071"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a3e17e71021c4f1610edaf9ac0b004773"> 71</a></span> <span class="preprocessor"></span><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="l00072"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6e04ec5299b97050655485fb091c1d47"> 72</a></span> <span class="preprocessor"></span><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="l00073"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6d7bb5515cc4b6020dea9b12874114d7"> 73</a></span> <span class="preprocessor"></span><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="l00074"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a1f5d458d623cc15052a3e184ab811707"> 74</a></span> <span class="preprocessor"></span><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="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#afd88d628823395976fc1f615226f9c94"> 76</a></span> <span class="preprocessor">#define kCONTROL_DTR 0x01</span></div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a329541dad3c626b963b0ece5a478247f"> 77</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kCONTROL_RTS 0x02</span></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fb"> 79</a></span> <span class="keyword">enum</span> <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fb">tXO_State</a> {</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba85a29accfd1f300da85475fe594131ef"> 80</a></span>  <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba85a29accfd1f300da85475fe594131ef">kXOnSent</a> = -2,</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbacd69a72b64873b169216781514aab2d8"> 81</a></span>  <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbacd69a72b64873b169216781514aab2d8">kXOffSent</a> = -1,</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbafa4e17811895e3cfdc0fd24f1ebc80fb"> 82</a></span>  <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fbafa4e17811895e3cfdc0fd24f1ebc80fb">kXO_Idle</a> = 0,</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba3a3441d7b96b577a695864955081644d"> 83</a></span>  <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba3a3441d7b96b577a695864955081644d">kXOffNeeded</a> = 1,</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba692a434f5e6e0dc6487eb855a2d45ff0"> 84</a></span>  <a class="code" href="cdcprolific_8h.html#add931a54ea58b7022eab1911dfd744fba692a434f5e6e0dc6487eb855a2d45ff0">kXOnNeeded</a> = 2</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> };</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a65ac8ac3d08ee7862ed09a2ac1f64cf4"> 87</a></span> <span class="preprocessor">#define kStateTransientMask 0x74</span></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a7f802be6da599613666caca90940a118"> 88</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kBreakError 0x04</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a25ba69ccbb225bf2c900f87ca5c51fb1"> 89</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kFrameError 0x10</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ad976aee3d980aedb2aa6dd6fc6ac805f"> 90</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kParityError 0x20</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ad1f4fc023b3b7effa71d68bd1665fcff"> 91</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kOverrunError 0x40</span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a9ee874fc96875d7eb2e505324cd4e22e"> 93</a></span> <span class="preprocessor">#define kCTS 0x80</span></div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#af9973cf2cb19393174ae738d2e3eadc6"> 94</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kDSR 0x02</span></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a4d0d61b5b66d1518198ca9d1150b1d7d"> 95</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kRI 0x08</span></div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ac76313fb4cf0164772450e8e205d77dc"> 96</a></span> <span class="preprocessor"></span><span class="preprocessor">#define kDCD 0x01</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ae9976c97335cf1b46c32caaa054438a9"> 97</a></span> <span class="preprocessor"></span><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="l00098"></a><span class="lineno"> 98</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a242bbbe616270b5c01d3614dbe57fe45"> 99</a></span> <span class="preprocessor">#define VENDOR_WRITE_REQUEST_TYPE 0x40</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#aa0dae52300cd2ca352f5d3cd2194824b"> 100</a></span> <span class="preprocessor"></span><span class="preprocessor">#define VENDOR_WRITE_REQUEST 0x01</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"><a class="code" href="cdcprolific_8h.html#a21c64a6ccc471ac907896f8590dcf7b2"> 102</a></span> <span class="preprocessor">#define VENDOR_READ_REQUEST_TYPE 0xc0</span></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a230385b0735fad9d7b33e4f80d7deb4d"> 103</a></span> <span class="preprocessor"></span><span class="preprocessor">#define VENDOR_READ_REQUEST 0x01</span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">// Device Configuration Registers (DCR0, DCR1, DCR2)</span></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a0301d2726a35e10b2e05965cca3a4d3d"> 106</a></span> <span class="preprocessor">#define SET_DCR0 0x00</span></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a27f1e77863200d1f798db253340e05e0"> 107</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GET_DCR0 0x80</span></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ad74aa175219ba20da29bd49595fb424a"> 108</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DCR0_INIT 0x01</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6521e0d1199772f08f29722ae9e61f8d"> 109</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DCR0_INIT_H 0x41</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ad00143b247ef00ec41be356bd0e17229"> 110</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DCR0_INIT_X 0x61</span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a409b94ba55c55a98d939e7bf4b347758"> 112</a></span> <span class="preprocessor">#define SET_DCR1 0x01</span></div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a62ab8c44b9b3111fe0ba193e30d2612d"> 113</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GET_DCR1 0x81</span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#af83aa2f107968838d73809c4f9a05e75"> 114</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DCR1_INIT_H 0x80</span></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ae539702b1c81f50770d282c4ab425709"> 115</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DCR1_INIT_X 0x00</span></div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#ac4f863f56f6198308d98983b157e25cf"> 117</a></span> <span class="preprocessor">#define SET_DCR2 0x02</span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#aedd5c473d7ee45d806c4d7c13856089f"> 118</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GET_DCR2 0x82</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#af9f58d0a0dbcd375b60f17beba78cbca"> 119</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DCR2_INIT_H 0x24</span></div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a195b68bbe6b9e565f2dc133c010f617f"> 120</a></span> <span class="preprocessor"></span><span class="preprocessor">#define DCR2_INIT_X 0x44</span></div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">// On-chip Data Buffers:</span></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a810fdf3da740b4c9e309cefb29f4eb3a"> 123</a></span> <span class="preprocessor">#define RESET_DOWNSTREAM_DATA_PIPE 0x08</span></div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#aea64b328d877a5eead187856dd28f847"> 124</a></span> <span class="preprocessor"></span><span class="preprocessor">#define RESET_UPSTREAM_DATA_PIPE 0x09</span></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627"> 126</a></span> <span class="keyword">enum</span> <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627">pl2303_type</a> {</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a5b9f6d065e6e98483b3d3ed01f4f6cbe"> 127</a></span>  <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a5b9f6d065e6e98483b3d3ed01f4f6cbe">unknown</a>,</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627af55eb000231282fd0e3556a1c4e1dab8"> 128</a></span>  <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627af55eb000231282fd0e3556a1c4e1dab8">type_1</a>, <span class="comment">/* don't know the difference between type 0 and */</span></div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627ae3ab850ab73c2f8a25d1fcd8a3336ada"> 129</a></span>  <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="l00130"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a6035ccdf4905b89a274404ba50766fd7"> 130</a></span>  <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="l00131"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a470a1f7e2c7dc1770a57096718f625d4"> 131</a></span>  <a class="code" href="cdcprolific_8h.html#a6003f43ffe2391c0c31ea48f6b772627a470a1f7e2c7dc1770a57096718f625d4">rev_H</a></div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> };</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="cdcprolific_8h.html#a225d7c12a1320152c218824d7fccfb29"> 135</a></span> <span class="preprocessor">#define PL_MAX_ENDPOINTS 4</span></div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="class_p_l2303.html"> 137</a></span> <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="l00138"></a><span class="lineno"> 138</span>  uint16_t wPLType; <span class="comment">// Type of chip</span></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <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="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="comment">// USBDeviceConfig implementation</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <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="l00145"></a><span class="lineno"> 145</span>  <span class="comment">//virtual uint8_t Release();</span></div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="comment">//virtual uint8_t Poll();</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="comment">//virtual uint8_t GetAddress() { return bAddress; };</span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <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="l00151"></a><span class="lineno"> 151</span> };</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="preprocessor">#endif // __CDCPROLIFIC_H__</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.4
|
|
</small></address>
|
|
</body>
|
|
</html>
|