📄 lcd__driver_8h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>AVR323 Interfacing GSM modems: LCD_driver.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.7 --><div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>ATAVRBFLY_FILES/LCD_driver.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>Atmel Corporation<p><ul><li>File : <a class="el" href="LCD__driver_8h.html">LCD_driver.h</a></li><li>Compiler : IAR EWAAVR 4.11a</li></ul><p><ul><li>Support mail : <a href="mailto:avr@atmel.com">avr@atmel.com</a></li></ul><p><ul><li>Supported devices : All devices with a UART/USART can be used. The example is written for ATmega169</li></ul><p><ul><li>AppNote : AVR323 - Interfacing GSM modems</li></ul><p><ul><li>Description : Example of how to use AT-Commands to control a GSM modem</li></ul><p><dl compact><dt><b>Revision</b></dt><dd>1.2 </dd></dl><dl compact><dt><b>Date</b></dt><dd>Wednesday, January 26, 2005 10:43:44 UTC </dd></dl><p>Definition in file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p><p>This graph shows which files directly or indirectly include this file:<p><center><img src="LCD__driver_8h__dep__incl.png" border="0" usemap="#LCD_driver.hdep_map" alt="Included by dependency graph"></center><map name="LCD_driver.hdep_map"><area href="LCD__driver_8c.html" shape="rect" coords="7,7,105,34" alt=""><area href="main_8c.html" shape="rect" coords="129,7,191,34" alt=""></map><p><a href="LCD__driver_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a10">LCD_CONTRAST_LEVEL</a>(level) LCDCCR=(0x0F & level)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a2">LCD_FLASH_SEED</a> 10</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a0">LCD_INITIAL_CONTRAST</a> 0x0F</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a3">LCD_REGISTER_COUNT</a> 20</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a8">LCD_SET_COLON</a>(active) <a class="el" href="LCD__driver_8h.html#a12">LCD_Data</a>[8] = active</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a1">LCD_TIMER_SEED</a> 3</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a9">pLCDREG</a> ((unsigned char *)(0xEC))</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a6">SCROLLMODE_LOOP</a> 0x02</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a5">SCROLLMODE_ONCE</a> 0x01</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a7">SCROLLMODE_WAVE</a> 0x03</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a4">TEXTBUFFER_SIZE</a> 25</td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a20">LCD_AllSegments</a> (char show)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a18">LCD_Init</a> (void)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a19">LCD_WriteDigit</a> (char <a class="el" href="main_8h.html#a27">input</a>, char digit)</td></tr><tr><td colspan=2><br><h2>Variables</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a16">gColon</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a15">gFlashTimer</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a11">gLCD_Update_Required</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>signed char </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a17">gScroll</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a14">gScrollMode</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a13">gTextBuffer</a> [TEXTBUFFER_SIZE]</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="LCD__driver_8h.html#a12">LCD_Data</a> [LCD_REGISTER_COUNT]</td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="a10" doxytag="LCD_driver.h::LCD_CONTRAST_LEVEL" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define LCD_CONTRAST_LEVEL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">level </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> LCDCCR=(0x0F & level)</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00046">46</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00134">LCD_Init()</a>, and <a class="el" href="LCD__functions_8c-source.html#l00230">SetContrast()</a>. </td> </tr></table><a class="anchor" name="a2" doxytag="LCD_driver.h::LCD_FLASH_SEED" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define LCD_FLASH_SEED 10 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00028">28</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>. </td> </tr></table><a class="anchor" name="a0" doxytag="LCD_driver.h::LCD_INITIAL_CONTRAST" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define LCD_INITIAL_CONTRAST 0x0F </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00026">26</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00134">LCD_Init()</a>. </td> </tr></table><a class="anchor" name="a3" doxytag="LCD_driver.h::LCD_REGISTER_COUNT" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define LCD_REGISTER_COUNT 20 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00029">29</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00230">LCD_AllSegments()</a>, and <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>. </td> </tr></table><a class="anchor" name="a8" doxytag="LCD_driver.h::LCD_SET_COLON" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define LCD_SET_COLON </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">active </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> <a class="el" href="LCD__driver_8h.html#a12">LCD_Data</a>[8] = active</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00040">40</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>. </td> </tr></table><a class="anchor" name="a1" doxytag="LCD_driver.h::LCD_TIMER_SEED" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define LCD_TIMER_SEED 3 </td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="LCD__driver_8h-source.html#l00027">27</a> of file <a class="el" href="LCD__driver_8h-source.html">LCD_driver.h</a>.<p>Referenced by <a class="el" href="LCD__driver_8c-source.html#l00255">LCD_SOF_interrupt()</a>. </td> </tr></table><a class="anchor" name="a9" doxytag="LCD_driver.h::pLCDREG" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -