USB_Host_Shield_2.0/max___l_c_d_8cpp.html

283 lines
17 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: /Users/Lauszus/GitHub/USB_Host_Shield_2.0/max_LCD.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">USB_Host_Shield_2.0
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#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_c8a8870798f18a14afbce47230dc4059.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_8d22a5dfb299d0b3a2bdc551c5cdbd10.html">USB_Host_Shield_2.0</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> </div>
<div class="headertitle">
<div class="title">max_LCD.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="max___l_c_d_8h_source.html">max_LCD.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="max3421e_8h_source.html">max3421e.h</a>&quot;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;inttypes.h&gt;</code><br/>
<code>#include &lt;WProgram.h&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for max_LCD.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="max___l_c_d_8cpp__incl.png" border="0" usemap="#_2_users_2_lauszus_2_git_hub_2_u_s_b___host___shield__2_80_2max___l_c_d_8cpp" alt=""/></div>
<map name="_2_users_2_lauszus_2_git_hub_2_u_s_b___host___shield__2_80_2max___l_c_d_8cpp" id="_2_users_2_lauszus_2_git_hub_2_u_s_b___host___shield__2_80_2max___l_c_d_8cpp">
<area shape="rect" id="node2" href="max___l_c_d_8h.html" title="max_LCD.h" alt="" coords="407,93,471,115"/><area shape="rect" id="node9" href="max3421e_8h.html" title="max3421e.h" alt="" coords="307,301,373,323"/><area shape="rect" id="node5" href="_usb_8h.html" title="Usb.h" alt="" coords="452,163,495,184"/><area shape="rect" id="node7" href="avrpins_8h.html" title="avrpins.h" alt="" coords="94,301,148,323"/><area shape="rect" id="node10" href="usbhost_8h.html" title="usbhost.h" alt="" coords="210,232,267,253"/><area shape="rect" id="node11" href="usb__ch9_8h.html" title="usb_ch9.h" alt="" coords="224,301,283,323"/><area shape="rect" id="node12" href="address_8h.html" title="address.h" alt="" coords="445,232,501,253"/><area shape="rect" id="node15" href="printhex_8h.html" title="printhex.h" alt="" coords="735,301,792,323"/><area shape="rect" id="node16" href="hexdump_8h.html" title="hexdump.h" alt="" coords="612,232,673,253"/><area shape="rect" id="node18" href="message_8h.html" title="message.h" alt="" coords="527,232,588,253"/></map>
</div>
2013-02-05 20:02:12 +01:00
</div>
<p><a href="max___l_c_d_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
2013-01-30 22:00:18 +01:00
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:af8903d8eea3868940c60af887473b152"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#af8903d8eea3868940c60af887473b152">RS</a>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:af8903d8eea3868940c60af887473b152"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07484107e6d9fdf38b53edf631d6511d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#a07484107e6d9fdf38b53edf631d6511d">E</a>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:a07484107e6d9fdf38b53edf631d6511d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09f62b20e3efd8eb9599770735149d5c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#a09f62b20e3efd8eb9599770735149d5c">SET_RS</a>&#160;&#160;&#160;lcdPins |= <a class="el" href="max___l_c_d_8cpp.html#af8903d8eea3868940c60af887473b152">RS</a></td></tr>
<tr class="separator:a09f62b20e3efd8eb9599770735149d5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af60058c58ef619d81e5779d74324041e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#af60058c58ef619d81e5779d74324041e">CLR_RS</a>&#160;&#160;&#160;lcdPins &amp;= ~<a class="el" href="max___l_c_d_8cpp.html#af8903d8eea3868940c60af887473b152">RS</a></td></tr>
<tr class="separator:af60058c58ef619d81e5779d74324041e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601271464f1be5c52185c85a1199e784"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#a601271464f1be5c52185c85a1199e784">SET_E</a>&#160;&#160;&#160;lcdPins |= <a class="el" href="max___l_c_d_8cpp.html#a07484107e6d9fdf38b53edf631d6511d">E</a></td></tr>
<tr class="separator:a601271464f1be5c52185c85a1199e784"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2382451f16ea0f18bf54dba5c7cfb471"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#a2382451f16ea0f18bf54dba5c7cfb471">CLR_E</a>&#160;&#160;&#160;lcdPins &amp;= ~<a class="el" href="max___l_c_d_8cpp.html#a07484107e6d9fdf38b53edf631d6511d">E</a></td></tr>
<tr class="separator:a2382451f16ea0f18bf54dba5c7cfb471"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9142420ababc8fe568edee4796183ba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#ab9142420ababc8fe568edee4796183ba">SENDlcdPins</a>()&#160;&#160;&#160;pUsb-&gt;gpioWr( lcdPins )</td></tr>
<tr class="separator:ab9142420ababc8fe568edee4796183ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3f990e58b6f25a5e0d2935f9d03eee9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#ac3f990e58b6f25a5e0d2935f9d03eee9">LCD_sendcmd</a>(a)</td></tr>
<tr class="separator:ac3f990e58b6f25a5e0d2935f9d03eee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad16e47e8718230d420aee7e9dd0360e4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="max___l_c_d_8cpp.html#ad16e47e8718230d420aee7e9dd0360e4">LCD_sendchar</a>(a)</td></tr>
<tr class="separator:ad16e47e8718230d420aee7e9dd0360e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a2382451f16ea0f18bf54dba5c7cfb471"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CLR_E&#160;&#160;&#160;lcdPins &amp;= ~<a class="el" href="max___l_c_d_8cpp.html#a07484107e6d9fdf38b53edf631d6511d">E</a></td>
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00038">38</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="af60058c58ef619d81e5779d74324041e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CLR_RS&#160;&#160;&#160;lcdPins &amp;= ~<a class="el" href="max___l_c_d_8cpp.html#af8903d8eea3868940c60af887473b152">RS</a></td>
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00036">36</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="a07484107e6d9fdf38b53edf631d6511d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define E&#160;&#160;&#160;0x08</td>
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00033">33</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="ad16e47e8718230d420aee7e9dd0360e4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define LCD_sendchar</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">a</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">{ <a class="code" href="max___l_c_d_8cpp.html#a09f62b20e3efd8eb9599770735149d5c">SET_RS</a>; \</div>
<div class="line"> sendbyte(a); \</div>
<div class="line"> }</div>
</div><!-- fragment -->
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00046">46</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="ac3f990e58b6f25a5e0d2935f9d03eee9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define LCD_sendcmd</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">a</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">{ <a class="code" href="max___l_c_d_8cpp.html#af60058c58ef619d81e5779d74324041e">CLR_RS</a>; \</div>
<div class="line"> sendbyte(a); \</div>
<div class="line"> }</div>
</div><!-- fragment -->
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00042">42</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="af8903d8eea3868940c60af887473b152"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RS&#160;&#160;&#160;0x04</td>
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00032">32</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="ab9142420ababc8fe568edee4796183ba"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define SENDlcdPins</td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td>&#160;&#160;&#160;pUsb-&gt;gpioWr( lcdPins )</td>
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00040">40</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="a601271464f1be5c52185c85a1199e784"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define SET_E&#160;&#160;&#160;lcdPins |= <a class="el" href="max___l_c_d_8cpp.html#a07484107e6d9fdf38b53edf631d6511d">E</a></td>
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00037">37</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
<a class="anchor" id="a09f62b20e3efd8eb9599770735149d5c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define SET_RS&#160;&#160;&#160;lcdPins |= <a class="el" href="max___l_c_d_8cpp.html#af8903d8eea3868940c60af887473b152">RS</a></td>
</tr>
</table>
</div><div class="memdoc">
2013-02-05 20:02:12 +01:00
<p>Definition at line <a class="el" href="max___l_c_d_8cpp_source.html#l00035">35</a> of file <a class="el" href="max___l_c_d_8cpp_source.html">max_LCD.cpp</a>.</p>
2013-01-30 22:00:18 +01:00
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
2013-02-05 20:02:12 +01:00
Generated on Tue Feb 5 2013 19:53:22 for USB_Host_Shield_2.0 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>