123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770 |
- <!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.10"/>
- <title>CoffeePi: 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/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { init_search(); });
- </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 id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">CoffeePi
- </div>
- <div id="projectbrief">Coffee machine control for Raspberry Pi</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.10 -->
- <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="annotated.html"><span>Data Structures</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>Globals</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)">
- </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><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#define-members">Macros</a> |
- <a href="#func-members">Functions</a> |
- <a href="#var-members">Variables</a> </div>
- <div class="headertitle">
- <div class="title">lcd.cpp File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="textblock"><code>#include <stdio.h></code><br />
- <code>#include <stdlib.h></code><br />
- <code>#include <stdarg.h></code><br />
- <code>#include <wiringPi.h></code><br />
- <code>#include "<a class="el" href="spi_8h_source.html">spi.h</a>"</code><br />
- <code>#include "<a class="el" href="lcd_8h_source.html">lcd.h</a>"</code><br />
- <code>#include "<a class="el" href="global_8h_source.html">global.h</a>"</code><br />
- </div><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
- Macros</h2></td></tr>
- <tr class="memitem:aa8cecfc5c5c054d2875c03e77b7be15d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>   (1==1)</td></tr>
- <tr class="separator:aa8cecfc5c5c054d2875c03e77b7be15d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa93f0eb578d23995850d61f7d61c55c1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>   (1==2)</td></tr>
- <tr class="separator:aa93f0eb578d23995850d61f7d61c55c1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6aa8aa2057294b7d06088e834299b369"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a6aa8aa2057294b7d06088e834299b369">LCD_CLEAR</a>   0x01</td></tr>
- <tr class="separator:a6aa8aa2057294b7d06088e834299b369"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae0e309ccad89222eb3457f2da9f2bb8d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#ae0e309ccad89222eb3457f2da9f2bb8d">LCD_HOME</a>   0x02</td></tr>
- <tr class="separator:ae0e309ccad89222eb3457f2da9f2bb8d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a28d2c8d621da114a0fe438db2e58507a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a28d2c8d621da114a0fe438db2e58507a">LCD_ENTRY</a>   0x04</td></tr>
- <tr class="separator:a28d2c8d621da114a0fe438db2e58507a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8e945df7ca614325cafa08258e82a63c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a8e945df7ca614325cafa08258e82a63c">LCD_CTRL</a>   0x08</td></tr>
- <tr class="separator:a8e945df7ca614325cafa08258e82a63c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a93e4bb4b824f5b8f5d572d9b4a943ad2"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a93e4bb4b824f5b8f5d572d9b4a943ad2">LCD_CDSHIFT</a>   0x10</td></tr>
- <tr class="separator:a93e4bb4b824f5b8f5d572d9b4a943ad2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a387bfe42ea7284ba0f154f00df579cad"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a387bfe42ea7284ba0f154f00df579cad">LCD_FUNC</a>   0x20</td></tr>
- <tr class="separator:a387bfe42ea7284ba0f154f00df579cad"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3b38de74c362be1781fef1136aa9684c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a3b38de74c362be1781fef1136aa9684c">LCD_CGRAM</a>   0x40</td></tr>
- <tr class="separator:a3b38de74c362be1781fef1136aa9684c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a9f40873eaf6a8f0a93971b3e0ab3fd12"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a9f40873eaf6a8f0a93971b3e0ab3fd12">LCD_DGRAM</a>   0x80</td></tr>
- <tr class="separator:a9f40873eaf6a8f0a93971b3e0ab3fd12"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aff5b4fcb87ea2eef9bb3af0234b14f53"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aff5b4fcb87ea2eef9bb3af0234b14f53">LCD_ENTRY_SH</a>   0x01</td></tr>
- <tr class="separator:aff5b4fcb87ea2eef9bb3af0234b14f53"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a58e84458e964afcac51877bd13e7703f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a58e84458e964afcac51877bd13e7703f">LCD_ENTRY_ID</a>   0x02</td></tr>
- <tr class="separator:a58e84458e964afcac51877bd13e7703f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa52bab70fab9c117f20d71442de77452"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#aa52bab70fab9c117f20d71442de77452">LCD_BLINK_CTRL</a>   0x01</td></tr>
- <tr class="separator:aa52bab70fab9c117f20d71442de77452"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3da48db16c1e7844567542273a5578c7"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a3da48db16c1e7844567542273a5578c7">LCD_CURSOR_CTRL</a>   0x02</td></tr>
- <tr class="separator:a3da48db16c1e7844567542273a5578c7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1a166a796cbaf4cdd6a3af584ec067d5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a1a166a796cbaf4cdd6a3af584ec067d5">LCD_DISPLAY_CTRL</a>   0x04</td></tr>
- <tr class="separator:a1a166a796cbaf4cdd6a3af584ec067d5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5ea7976aa137e8d043d3dfab474cf0b4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a5ea7976aa137e8d043d3dfab474cf0b4">LCD_FUNC_F</a>   0x04</td></tr>
- <tr class="separator:a5ea7976aa137e8d043d3dfab474cf0b4"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0741cad05d62ff28d92a05ea11aa6fdc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a0741cad05d62ff28d92a05ea11aa6fdc">LCD_FUNC_N</a>   0x08</td></tr>
- <tr class="separator:a0741cad05d62ff28d92a05ea11aa6fdc"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae4b9a3bcb0dc315afc03412237c5a3ea"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#ae4b9a3bcb0dc315afc03412237c5a3ea">LCD_FUNC_DL</a>   0x10</td></tr>
- <tr class="separator:ae4b9a3bcb0dc315afc03412237c5a3ea"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:afb0c5015365d7e200edec8967d32195c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#afb0c5015365d7e200edec8967d32195c">LCD_CDSHIFT_RL</a>   0x04</td></tr>
- <tr class="separator:afb0c5015365d7e200edec8967d32195c"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:a688913764edb3a241c26da5e51d70ac2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a688913764edb3a241c26da5e51d70ac2">lcdHome</a> (const int fd)</td></tr>
- <tr class="separator:a688913764edb3a241c26da5e51d70ac2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae1b4dfd9571742b5ca0aba92882b57a6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#ae1b4dfd9571742b5ca0aba92882b57a6">lcdClear</a> (const int fd)</td></tr>
- <tr class="separator:ae1b4dfd9571742b5ca0aba92882b57a6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af08385cd21eea125d63d6919ecfbea4a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#af08385cd21eea125d63d6919ecfbea4a">lcdDisplay</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
- <tr class="separator:af08385cd21eea125d63d6919ecfbea4a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8aa13c894973d52eeed51d10bf869df2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a8aa13c894973d52eeed51d10bf869df2">lcdCursor</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
- <tr class="separator:a8aa13c894973d52eeed51d10bf869df2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af39d67df7e36291184f69691bb97285b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#af39d67df7e36291184f69691bb97285b">lcdCursorBlink</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
- <tr class="separator:af39d67df7e36291184f69691bb97285b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:abb6341df42d0e652db66e51fbf0ba486"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#abb6341df42d0e652db66e51fbf0ba486">lcdSendCommand</a> (const int fd, unsigned char command)</td></tr>
- <tr class="separator:abb6341df42d0e652db66e51fbf0ba486"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5d09137f6373e95a692c4b3403729254"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a5d09137f6373e95a692c4b3403729254">lcdPosition</a> (const int fd, int x, int y)</td></tr>
- <tr class="separator:a5d09137f6373e95a692c4b3403729254"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a74d902393394e4d3cebdcf0d81bbaeeb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a74d902393394e4d3cebdcf0d81bbaeeb">lcdCharDef</a> (const int fd, int index, unsigned char data[8])</td></tr>
- <tr class="separator:a74d902393394e4d3cebdcf0d81bbaeeb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a21c60441ee22710add0c9bda1310ed66"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a21c60441ee22710add0c9bda1310ed66">lcdPutchar</a> (const int fd, unsigned char data)</td></tr>
- <tr class="separator:a21c60441ee22710add0c9bda1310ed66"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a805efc4a96cca29544672151a9594c20"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a805efc4a96cca29544672151a9594c20">lcdPuts</a> (const int fd, const char *string)</td></tr>
- <tr class="separator:a805efc4a96cca29544672151a9594c20"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a49c322ad29410ea292f8d976baf6deb9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a49c322ad29410ea292f8d976baf6deb9">lcdPrintf</a> (const int fd, const char *message,...)</td></tr>
- <tr class="separator:a49c322ad29410ea292f8d976baf6deb9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a88d70347308e92cb29eb45b505cad39e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a88d70347308e92cb29eb45b505cad39e">lcdInit</a> (void)</td></tr>
- <tr class="separator:a88d70347308e92cb29eb45b505cad39e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a47f05b4cef2cf066cf1cbb1beb7ceb31"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a47f05b4cef2cf066cf1cbb1beb7ceb31">lcdInitI</a> (const int rows, const int cols, const int bits, const int rs, const int strb)</td></tr>
- <tr class="separator:a47f05b4cef2cf066cf1cbb1beb7ceb31"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
- Variables</h2></td></tr>
- <tr class="memitem:a6e3994c5175d8609dee2cc8d3bcd66e9"><td class="memItemLeft" align="right" valign="top">struct lcdDataStruct * </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8cpp.html#a6e3994c5175d8609dee2cc8d3bcd66e9">lcds</a> [<a class="el" href="lcd_8h.html#a6bfe3f4a880b075a72d2a8318bd10f8e">MAX_LCDS</a>]</td></tr>
- <tr class="separator:a6e3994c5175d8609dee2cc8d3bcd66e9"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Macro Definition Documentation</h2>
- <a class="anchor" id="aa93f0eb578d23995850d61f7d61c55c1"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define FALSE   (1==2)</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="aa52bab70fab9c117f20d71442de77452"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_BLINK_CTRL   0x01</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a93e4bb4b824f5b8f5d572d9b4a943ad2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_CDSHIFT   0x10</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="afb0c5015365d7e200edec8967d32195c"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_CDSHIFT_RL   0x04</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a3b38de74c362be1781fef1136aa9684c"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_CGRAM   0x40</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a6aa8aa2057294b7d06088e834299b369"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_CLEAR   0x01</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a8e945df7ca614325cafa08258e82a63c"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_CTRL   0x08</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a3da48db16c1e7844567542273a5578c7"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_CURSOR_CTRL   0x02</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a9f40873eaf6a8f0a93971b3e0ab3fd12"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_DGRAM   0x80</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a1a166a796cbaf4cdd6a3af584ec067d5"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_DISPLAY_CTRL   0x04</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a28d2c8d621da114a0fe438db2e58507a"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_ENTRY   0x04</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a58e84458e964afcac51877bd13e7703f"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_ENTRY_ID   0x02</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="aff5b4fcb87ea2eef9bb3af0234b14f53"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_ENTRY_SH   0x01</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a387bfe42ea7284ba0f154f00df579cad"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_FUNC   0x20</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ae4b9a3bcb0dc315afc03412237c5a3ea"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_FUNC_DL   0x10</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a5ea7976aa137e8d043d3dfab474cf0b4"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_FUNC_F   0x04</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a0741cad05d62ff28d92a05ea11aa6fdc"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_FUNC_N   0x08</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ae0e309ccad89222eb3457f2da9f2bb8d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_HOME   0x02</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="aa8cecfc5c5c054d2875c03e77b7be15d"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define TRUE   (1==1)</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="a74d902393394e4d3cebdcf0d81bbaeeb"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdCharDef </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>index</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">unsigned char </td>
- <td class="paramname"><em>data</em>[8] </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ae1b4dfd9571742b5ca0aba92882b57a6"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdClear </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a8aa13c894973d52eeed51d10bf869df2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdCursor </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>state</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af39d67df7e36291184f69691bb97285b"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdCursorBlink </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>state</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af08385cd21eea125d63d6919ecfbea4a"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdDisplay </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>state</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a688913764edb3a241c26da5e51d70ac2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdHome </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a88d70347308e92cb29eb45b505cad39e"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int lcdInit </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a47f05b4cef2cf066cf1cbb1beb7ceb31"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int lcdInitI </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>rows</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>cols</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>bits</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>rs</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>strb</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a5d09137f6373e95a692c4b3403729254"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPosition </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>x</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>y</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a49c322ad29410ea292f8d976baf6deb9"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPrintf </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>message</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"> </td>
- <td class="paramname"><em>...</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a21c60441ee22710add0c9bda1310ed66"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPutchar </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">unsigned char </td>
- <td class="paramname"><em>data</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a805efc4a96cca29544672151a9594c20"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPuts </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>string</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="abb6341df42d0e652db66e51fbf0ba486"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdSendCommand </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">unsigned char </td>
- <td class="paramname"><em>command</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <h2 class="groupheader">Variable Documentation</h2>
- <a class="anchor" id="a6e3994c5175d8609dee2cc8d3bcd66e9"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">struct lcdDataStruct* lcds[<a class="el" href="lcd_8h.html#a6bfe3f4a880b075a72d2a8318bd10f8e">MAX_LCDS</a>]</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- </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.10
- </small></address>
- </body>
- </html>
|