USB_Host_Shield_2.0/max3421e_8h_source.html

334 lines
54 KiB
HTML
Raw Normal View History

2013-01-30 22:00:18 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>USB Host Shield 2.0: max3421e.h Source File</title>
2013-01-30 22:00:18 +01:00
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
2013-01-30 22:00:18 +01:00
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
2013-01-30 22:00:18 +01:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_e5fbe6d2783ccd4c93c7856d92d7be6e.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_397a095372f04465e811d0ee219bbf8f.html">USB_Host_Shield_2.0</a></li> </ul>
2013-01-30 22:00:18 +01:00
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">max3421e.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="max3421e_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">This software may be distributed and modified under the terms of the GNU</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">General Public License version 2 (GPL2) as published by the Free Software</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">Foundation and appearing in the file GPL2.TXT included in the packaging of</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">this file. Please note that GPL2 Section 2[b] requires that all works based</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">on this software must also be made publicly available under the terms of</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">the GPL2 (&quot;Copyleft&quot;).</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">Contact information</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">-------------------</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">Circuits At Home, LTD</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">Web : http://www.circuitsathome.com</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">e-mail : support@circuitsathome.com</span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> */</span></div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">/* MAX3421E register/bit names and bitmasks */</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef _max3421e_h_</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _max3421e_h_</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment">/* Arduino pin definitions */</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">/* pin numbers to port numbers */</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;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">//#define MAX_INT 9 // Duemielanove</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment">//#define MAX_GPX 8</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ad76d1750a6cdeebd506bfcd6752554d2"> 30</a></span>&#160;<span class="preprocessor">#define ON true</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a29e413f6725b2ba32d165ffaa35b01e5"> 31</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define OFF false</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a3cb02fdd2d36f8a755c4b1946a0b0063"> 33</a></span>&#160;<span class="preprocessor">#define SE0 0</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a5c3d7b0a5b0933cfc0183cd36ea91f16"> 34</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SE1 1</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a8ec45bdb8c5273e99c3ab89349cb43f9"> 35</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define FSHOST 2</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aa05ee2be883f4b96948e18b0d55ab5c2"> 36</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LSHOST 3</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="comment">/* MAX3421E command byte format: rrrrr0wa where &#39;r&#39; is register number */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment">//</span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="comment">// MAX3421E Registers in HOST mode.</span></div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a5ab905353668c35ea0d9f6989d24b849"> 42</a></span>&#160;<span class="preprocessor">#define rRCVFIFO 0x08 //1&lt;&lt;3</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aa5d5e67db32d736bab1ee8ef8764f6aa"> 43</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define rSNDFIFO 0x10 //2&lt;&lt;3</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="max3421e_8h.html#acddbcc3176885ece538a7e71665c27be"> 44</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define rSUDFIFO 0x20 //4&lt;&lt;3</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="max3421e_8h.html#afa79b794eadcddfca2f62828dd83134b"> 45</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define rRCVBC 0x30 //6&lt;&lt;3</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a1eb6ec372ed236f1db3fbca201bdc28f"> 46</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define rSNDBC 0x38 //7&lt;&lt;3</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a1082650791b2a5cffb39d3caab1f48c7"> 48</a></span>&#160;<span class="preprocessor">#define rUSBIRQ 0x68 //13&lt;&lt;3</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor"></span><span class="comment">/* USBIRQ Bits */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a77bf59c4ab9edcf83ec70105a1694f37"> 50</a></span>&#160;<span class="preprocessor">#define bmVBUSIRQ 0x40 //b6</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a2ea2f54936acc6f84ecaa59b7a36735f"> 51</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmNOVBUSIRQ 0x20 //b5</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="max3421e_8h.html#add73c33bb1cdb3b875f57cfa4ffdcad0"> 52</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmOSCOKIRQ 0x01 //b0</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a8f874c1537144956a08137d1cc944ea5"> 54</a></span>&#160;<span class="preprocessor">#define rUSBIEN 0x70 //14&lt;&lt;3</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor"></span><span class="comment">/* USBIEN Bits */</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a2b9fa14157e669491936b735673e0f12"> 56</a></span>&#160;<span class="preprocessor">#define bmVBUSIE 0x40 //b6</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="max3421e_8h.html#abddabc145e15cf9387f60cad9a8297cc"> 57</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmNOVBUSIE 0x20 //b5</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a6638e1cc9d1784003b63cbaca097fb4c"> 58</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmOSCOKIE 0x01 //b0</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a1bbe8e1e02d9c61c36a84ce452e49264"> 60</a></span>&#160;<span class="preprocessor">#define rUSBCTL 0x78 //15&lt;&lt;3</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor"></span><span class="comment">/* USBCTL Bits */</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab1962423aacdcc5807722237974ee0ba"> 62</a></span>&#160;<span class="preprocessor">#define bmCHIPRES 0x20 //b5</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ae86de1fffac4ed1219b031e42561ef0a"> 63</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmPWRDOWN 0x10 //b4</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a53da9de92c56d0cdac2a09ca10e94455"> 65</a></span>&#160;<span class="preprocessor">#define rCPUCTL 0x80 //16&lt;&lt;3</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor"></span><span class="comment">/* CPUCTL Bits */</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a989781f67e1404efcbf04715e4e376ac"> 67</a></span>&#160;<span class="preprocessor">#define bmPUSLEWID1 0x80 //b7</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a2812d762537287667e46571d97e0301f"> 68</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmPULSEWID0 0x40 //b6</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a3efc6c89f42f2499dc634cdfe6fa3b7a"> 69</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmIE 0x01 //b0</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a6b9f9d34ace73b82db1d41b870942fae"> 71</a></span>&#160;<span class="preprocessor">#define rPINCTL 0x88 //17&lt;&lt;3</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="preprocessor"></span><span class="comment">/* PINCTL Bits */</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a0bdabdb078bf1dcc89d654432bff40fa"> 73</a></span>&#160;<span class="preprocessor">#define bmFDUPSPI 0x10 //b4</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ac43fd01b46413767deb91becd3506de0"> 74</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmINTLEVEL 0x08 //b3</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a84d68a8bd11d2a44b60759efdaa36c77"> 75</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmPOSINT 0x04 //b2</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a152bafec6d4150dfb86794c2501bdc45"> 76</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPXB 0x02 //b1</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ad6629ab86eef86882e9ad15e56880b7d"> 77</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPXA 0x01 //b0</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="preprocessor"></span><span class="comment">// GPX pin selections</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a0f6b05e67d0f8bbd1a392e877a16edff"> 79</a></span>&#160;<span class="preprocessor">#define GPX_OPERATE 0x00</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aff368111e79950099861bc3698fbaf0e"> 80</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define GPX_VBDET 0x01</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aaab0be06b205a6e6f308ca709c762d32"> 81</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define GPX_BUSACT 0x02</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a87a3a026e71ce588f06d10101156c494"> 82</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define GPX_SOF 0x03</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a3e8f39e33c2ae67b48a682a8a45e3f18"> 84</a></span>&#160;<span class="preprocessor">#define rREVISION 0x90 //18&lt;&lt;3</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a1ba1328dff83f8441af904a3e45620ec"> 86</a></span>&#160;<span class="preprocessor">#define rIOPINS1 0xa0 //20&lt;&lt;3</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="comment">/* IOPINS1 Bits */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a88c7a6fe524e6e64a1587b0f0995b27f"> 89</a></span>&#160;<span class="preprocessor">#define bmGPOUT0 0x01</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ad95061afc529dd3f81da7c80ba65a211"> 90</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPOUT1 0x02</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="max3421e_8h.html#af4348d2c3dc69d554ccec659a72949fa"> 91</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPOUT2 0x04</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a93496204d886dd6d9b791a88e86d6652"> 92</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPOUT3 0x08</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ac96b0f7f67f8c5ef94d081c62e922500"> 93</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN0 0x10</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ae91c4683c1f2432fc5c9fdc56c5c2ce4"> 94</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN1 0x20</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="max3421e_8h.html#af88fe93db31eb572f8d403a841c36cd2"> 95</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN2 0x40</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aa6653ac9614daf283031b0bf32259791"> 96</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN3 0x80</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a0ef7bfe2ee160a40a48ff4fa093b91de"> 98</a></span>&#160;<span class="preprocessor">#define rIOPINS2 0xa8 //21&lt;&lt;3</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="preprocessor"></span><span class="comment">/* IOPINS2 Bits */</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab01c6b3199f0cb36243e1b3070bebea7"> 100</a></span>&#160;<span class="preprocessor">#define bmGPOUT4 0x01</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a56a80086e0c01e69aeec0c1c8df4f16b"> 101</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPOUT5 0x02</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a4a76e73f3f486b5f1584d53cc713b906"> 102</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPOUT6 0x04</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a3e589a1194e6340a1e6f1a8e36901c7c"> 103</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPOUT7 0x08</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab6863507bb4ffc16fda91f41bd6bc984"> 104</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN4 0x10</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aee90494cabaa07a99579bd06a8844654"> 105</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN5 0x20</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aeaad341aa55b89b119af8a8d4cb380f4"> 106</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN6 0x40</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ae900d6d2d971ff1aec4481a05cb88aee"> 107</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPIN7 0x80</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a442ca7b5baabb5501bce9e9443e49602"> 109</a></span>&#160;<span class="preprocessor">#define rGPINIRQ 0xb0 //22&lt;&lt;3</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<span class="preprocessor"></span><span class="comment">/* GPINIRQ Bits */</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a62388568b5f838f792d8ed313c484678"> 111</a></span>&#160;<span class="preprocessor">#define bmGPINIRQ0 0x01</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="max3421e_8h.html#afc1b3d0a72f4e0a2af16427ee2994ef8"> 112</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIRQ1 0x02</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="max3421e_8h.html#af24b4affced1deb61f402e2d06dc7004"> 113</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIRQ2 0x04</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a487a58c493d4f20c21fa8c2fccb18475"> 114</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIRQ3 0x08</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ac868bd91eddd50e11a6e7e2425fea8a1"> 115</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIRQ4 0x10</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a75ee5a358fb69c5f921f2d32c6d61a18"> 116</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIRQ5 0x20</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a715bdf90f075e5db50360a1df200063a"> 117</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIRQ6 0x40</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="max3421e_8h.html#adeeb98e5d056bb681d7b99df209c9c75"> 118</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIRQ7 0x80</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a49dc89e34bf52d0e74fb35904c227504"> 120</a></span>&#160;<span class="preprocessor">#define rGPINIEN 0xb8 //23&lt;&lt;3</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="preprocessor"></span><span class="comment">/* GPINIEN Bits */</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a48184b01b72caa495adfb0d5d126c79f"> 122</a></span>&#160;<span class="preprocessor">#define bmGPINIEN0 0x01</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab61a7226ec3774910f6fb2d34f400e9e"> 123</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIEN1 0x02</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aac9a79fe1262445a638ba9e8287be49e"> 124</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIEN2 0x04</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a8a24e71c5618417e74d993307444576a"> 125</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIEN3 0x08</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a28b8477a4dc243516bcc73a0c1c5b5a2"> 126</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIEN4 0x10</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a8b0db611815ee7d942b66b550005caa6"> 127</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIEN5 0x20</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a900b26d2e2b244a07281eefff23eb0f3"> 128</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIEN6 0x40</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a00640b2cfadad5828168c3370f512418"> 129</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINIEN7 0x80</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a685a612522c4569130e791537cab5ea6"> 131</a></span>&#160;<span class="preprocessor">#define rGPINPOL 0xc0 //24&lt;&lt;3</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="preprocessor"></span><span class="comment">/* GPINPOL Bits */</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a1edff0870b5883627c431c2ee69ed524"> 133</a></span>&#160;<span class="preprocessor">#define bmGPINPOL0 0x01</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a500369d89f553661f22ff87f1d190969"> 134</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINPOL1 0x02</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a88867d6ef15155c4e7ad29156bd2f1b1"> 135</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINPOL2 0x04</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a187ea227449ce1f58574b5efffaa52bd"> 136</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINPOL3 0x08</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ae3983697a6903a41edcea058ffba3bb7"> 137</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINPOL4 0x10</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aefc9c5314a7cc0067c5cf385980509e4"> 138</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINPOL5 0x20</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a4abd43f35e2109e0e28f2754a3b50ec4"> 139</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINPOL6 0x40</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a5a7764d5d026dfd7a45e0ecf52918682"> 140</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmGPINPOL7 0x80</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a9ab289252615caa2d19ceb4359d71a44"> 142</a></span>&#160;<span class="preprocessor">#define rHIRQ 0xc8 //25&lt;&lt;3</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="preprocessor"></span><span class="comment">/* HIRQ Bits */</span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aa18f9355be57aa36ef0aacdd9dc34dc1"> 144</a></span>&#160;<span class="preprocessor">#define bmBUSEVENTIRQ 0x01 // indicates BUS Reset Done or BUS Resume</span></div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a10f6faaba484d43298f54ac4c2e4ce32"> 145</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmRWUIRQ 0x02</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ad780c154c3761f68e0e397e4fd8f9a07"> 146</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmRCVDAVIRQ 0x04</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a480ad63da8007d8319735d115cd7817c"> 147</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSNDBAVIRQ 0x08</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a9e25c445f9f53e32949024f77681e881"> 148</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSUSDNIRQ 0x10</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ac915bfa0fd869c8c841c106fe468c3b5"> 149</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmCONDETIRQ 0x20</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a042cc701398502fb70b8793ed76394ce"> 150</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmFRAMEIRQ 0x40</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a82f316064dd5442d86e1536d3f1d9f7a"> 151</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmHXFRDNIRQ 0x80</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a9eb44efd473c493d40ad42bc52289de6"> 153</a></span>&#160;<span class="preprocessor">#define rHIEN 0xd0 //26&lt;&lt;3</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="comment">/* HIEN Bits */</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="max3421e_8h.html#af90567aced425c7c42ca61717f6848f8"> 156</a></span>&#160;<span class="preprocessor">#define bmBUSEVENTIE 0x01</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a2eb43ef2b234f57f7dd1e8999c217df5"> 157</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmRWUIE 0x02</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a4a6ee83ab6c77a1400752a9acb197910"> 158</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmRCVDAVIE 0x04</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="code" href="max3421e_8h.html#afe7e9920ad985b67e25c0b6d9dd63544"> 159</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSNDBAVIE 0x08</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a4ac014f43e1df89af10cb0846d1b9a49"> 160</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSUSDNIE 0x10</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a3b359995b8bc2c98d5987d90bc4d85eb"> 161</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmCONDETIE 0x20</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a16e643bd8f6523b174d586218f40dbc5"> 162</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmFRAMEIE 0x40</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a57068b212ace15fc521236869640ee3a"> 163</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmHXFRDNIE 0x80</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a330db4fc764b8ccae5214645c1ee5423"> 165</a></span>&#160;<span class="preprocessor">#define rMODE 0xd8 //27&lt;&lt;3</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;<span class="comment">/* MODE Bits */</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a59ab4e3dc0a4188b74ceb405833f5d3c"> 168</a></span>&#160;<span class="preprocessor">#define bmHOST 0x01</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a9744878036529e375f3b017b22b1eda2"> 169</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmLOWSPEED 0x02</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a8816c259368604d0de57f31bcb6c1674"> 170</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmHUBPRE 0x04</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a1cde86dfa0124c81ebffcde9fdf61cc3"> 171</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSOFKAENAB 0x08</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a562180c4d9e16433c011b5c0e9b5dc46"> 172</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSEPIRQ 0x10</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aa3e74577c76a919906086ba3250f2179"> 173</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmDELAYISO 0x20</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a8883bd99c93d3bf820ab3be677922e85"> 174</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmDMPULLDN 0x40</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="max3421e_8h.html#abf795283162c960c28a14cdebd1e1894"> 175</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmDPPULLDN 0x80</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ac6d86063950bdbf438d358c907aefbfa"> 177</a></span>&#160;<span class="preprocessor">#define rPERADDR 0xe0 //28&lt;&lt;3</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a7e82a85eb165f82afde45df5f98504ff"> 179</a></span>&#160;<span class="preprocessor">#define rHCTL 0xe8 //29&lt;&lt;3</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="preprocessor"></span><span class="comment">/* HCTL Bits */</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab59b41d6ecb3a04e5bfc38b0eee4aec0"> 181</a></span>&#160;<span class="preprocessor">#define bmBUSRST 0x01</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a0acccff914959b72549bfd4c9bd2788c"> 182</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmFRMRST 0x02</span></div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="max3421e_8h.html#af3d664335016e139354f2f6a99febff2"> 183</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSAMPLEBUS 0x04</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a5397ba64eccc96a9f9d11ccfe40ca109"> 184</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSIGRSM 0x08</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aca6a8aa4f0aebbe07c5e175572a92ef7"> 185</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmRCVTOG0 0x10</span></div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a6864ac74e4ed056f9eb37f1c78bd6c6f"> 186</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmRCVTOG1 0x20</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a4834ae7378471b63b9a1985c6294006f"> 187</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSNDTOG0 0x40</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aee283b6d075581cdff38a6054e6f63a2"> 188</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSNDTOG1 0x80</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aa541c456525254b21a0bc53aadaeee4d"> 190</a></span>&#160;<span class="preprocessor">#define rHXFR 0xf0 //30&lt;&lt;3</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;<span class="preprocessor"></span><span class="comment">/* Host transfer token values for writing the HXFR register (R30) */</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;<span class="comment">/* OR this bit field with the endpoint number in bits 3:0 */</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="code" href="max3421e_8h.html#acd574bdc815506033ec40fc96320520d"> 193</a></span>&#160;<span class="preprocessor">#define tokSETUP 0x10 // HS=0, ISO=0, OUTNIN=0, SETUP=1</span></div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a436aef9c3815daee76dc227dcf15d4e4"> 194</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define tokIN 0x00 // HS=0, ISO=0, OUTNIN=0, SETUP=0</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a6d59486bc96e76ebb429756a30ddb238"> 195</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define tokOUT 0x20 // HS=0, ISO=0, OUTNIN=1, SETUP=0</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a100ac012a99f7cb9305a2eb921741ce3"> 196</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define tokINHS 0x80 // HS=1, ISO=0, OUTNIN=0, SETUP=0</span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00197"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a9889c0ed9a43ff3fea670a96c3fbd165"> 197</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define tokOUTHS 0xA0 // HS=1, ISO=0, OUTNIN=1, SETUP=0</span></div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00198"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a79e05c31da19cdf6299d978b46989070"> 198</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define tokISOIN 0x40 // HS=0, ISO=1, OUTNIN=0, SETUP=0</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a1c75b65a0159fd3d1c87da6a4e950c4d"> 199</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define tokISOOUT 0x60 // HS=0, ISO=1, OUTNIN=1, SETUP=0</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a246dbd203f68062fab34f2869b76e479"> 201</a></span>&#160;<span class="preprocessor">#define rHRSL 0xf8 //31&lt;&lt;3</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;<span class="comment">/* HRSL Bits */</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="code" href="max3421e_8h.html#acdfff8cccb2ba5a3dfaa67241ffe86a4"> 204</a></span>&#160;<span class="preprocessor">#define bmRCVTOGRD 0x10</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a4a9dee0254d637bcd27ac53fd2a7cb7c"> 205</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSNDTOGRD 0x20</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="code" href="max3421e_8h.html#af85b57e6dc78e03bc68949822f66b6de"> 206</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmKSTATUS 0x40</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a8ea246f6fcbb926999a828b5fd4a2da8"> 207</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmJSTATUS 0x80</span></div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a601304fe868d2f4b84a504fc5599d703"> 208</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSE0 0x00 //SE0 - disconnect state</span></div>
2013-04-01 22:52:24 +02:00
<div class="line"><a name="l00209"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ad18cd77a4d34c4e0d4d9b5cfbaadc74f"> 209</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmSE1 0xc0 //SE1 - illegal state</span></div>
2013-01-30 22:00:18 +01:00
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;<span class="comment">/* Host error result codes, the 4 LSB&#39;s in the HRSL register */</span></div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aea69e77cdc2b4124122d0fbda7e37019"> 212</a></span>&#160;<span class="preprocessor">#define hrSUCCESS 0x00</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aee07a5ab9d40160fa57eeb9df922a27b"> 213</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrBUSY 0x01</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aedf56665d7109f53e5e4d47f8837ef4f"> 214</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrBADREQ 0x02</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aff73910ee4c5acc311fcb659a98a059b"> 215</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrUNDEF 0x03</span></div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab44a7968d08016b58d98951059c37076"> 216</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrNAK 0x04</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a774ac66066335e580da2b8cdab52df30"> 217</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrSTALL 0x05</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a651e9347e706d3cb16357c656a7e9c8f"> 218</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrTOGERR 0x06</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a197be277f96be0d443c9af73eb4e874c"> 219</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrWRONGPID 0x07</span></div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a35fb8059582460c2bea658feac1e4af1"> 220</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrBADBC 0x08</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ad29b7b56dca613a5b55b8d498104a7e7"> 221</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrPIDERR 0x09</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab7aac600703132339a21119aaedb563f"> 222</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrPKTERR 0x0A</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a9d4f89c908cabcf4368a4efb53a00b66"> 223</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrCRCERR 0x0B</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a38277f2ae9f312ee4f7a4d8bae3a4f6e"> 224</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrKERR 0x0C</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="code" href="max3421e_8h.html#aa128de549704094dadb93daa8875472b"> 225</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrJERR 0x0D</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab4e9ff11b75e71171814fdab1ff7ce45"> 226</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrTIMEOUT 0x0E</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a0a25f44501a1e77647df2810c5878949"> 227</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define hrBABBLE 0x0F</span></div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="code" href="max3421e_8h.html#a456c3175b4836ed1d2b276faeba55121"> 229</a></span>&#160;<span class="preprocessor">#define MODE_FS_HOST (bmDPPULLDN|bmDMPULLDN|bmHOST|bmSOFKAENAB)</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"><a class="code" href="max3421e_8h.html#ab3da1b5bd1f43ba9f9da604841ba8802"> 230</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define MODE_LS_HOST (bmDPPULLDN|bmDMPULLDN|bmHOST|bmLOWSPEED|bmSOFKAENAB)</span></div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;<span class="preprocessor">#endif //_max3421e_h_</span></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">
2013-01-30 22:00:18 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>