⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 avrgsm__com_8h.html

📁 SMS傳送Sourcode,compiler with C,AT command
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!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: AVRGSM_com.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&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>AVRGSM_FILES/AVRGSM_com.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>Atmel Corporation<p><ul><li>File : AVR_com.h</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 ATmega128</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="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.<p><p>This graph shows which files directly or indirectly include this file:<p><center><img src="AVRGSM__com_8h__dep__incl.png" border="0" usemap="#AVRGSM_com.hdep_map" alt="Included by dependency graph"></center><map name="AVRGSM_com.hdep_map"><area href="AVRGSM__api_8c.html" shape="rect" coords="7,7,121,34" alt=""><area href="AVRGSM__com_8c.html" shape="rect" coords="145,7,268,34" alt=""><area href="AVRGSM__tools_8c.html" shape="rect" coords="292,7,417,34" alt=""><area href="main_8c.html" shape="rect" coords="441,7,503,34" alt=""><area href="STATE__functions_8c.html" shape="rect" coords="527,7,663,34" alt=""></map><p><a href="AVRGSM__com_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&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a4">CMTI_</a>&nbsp;&nbsp;&nbsp;1</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>.  <a href="#a4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a6">CRLF_</a>&nbsp;&nbsp;&nbsp;3</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>.  <a href="#a6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a3">OK_</a>&nbsp;&nbsp;&nbsp;0</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>.  <a href="#a3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a5">READY_</a>&nbsp;&nbsp;&nbsp;2</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>.  <a href="#a5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a1">RX_BUFFER_MASK</a>&nbsp;&nbsp;&nbsp;RX_BUFFER_SIZE - 2</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to set overflow flag.  <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a0">RX_BUFFER_SIZE</a>&nbsp;&nbsp;&nbsp;256</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">rx_buffer size  <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a2">RX_WAIT</a>&nbsp;&nbsp;&nbsp;65000</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Timeout value.  <a href="#a2"></a><br><br></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>unsigned char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a17">COM_gets</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return pointer to receive buffer.  <a href="#a17"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a7">COM_init</a> (unsigned int baudrate)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">USART0 initialization.  <a href="#a7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a13">COM_put_integer</a> (int i)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method will print an integer in the range +-(10^5 - 1 ).  <a href="#a13"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a12">COM_putchar</a> (unsigned char data)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adapted putchar method...no need for interrup driven tx-isr.  <a href="#a12"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a14">COM_puts</a> (unsigned char *str)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print unsigned char string.  <a href="#a14"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a15">COM_putsf</a> (const unsigned char __flash *fstr)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Print const unsigned char __flash string.  <a href="#a15"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a10">COM_rx_off</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">RX interrupt disable.  <a href="#a10"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a9">COM_rx_on</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">RX interrupt enable.  <a href="#a9"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a8">COM_rx_reset</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reset receive interrupt.  <a href="#a8"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString</a> (unsigned char Response)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set desired search string.  <a href="#a11"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="AVRGSM__com_8h.html#a16">COM_trim</a> (void)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove trailing O, K,  and <br>.  <a href="#a16"></a><br><br></td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="a4" doxytag="AVRGSM_com.h::CMTI_" ></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 CMTI_&nbsp;&nbsp;&nbsp;1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>. <p><p>Definition at line <a class="el" href="AVRGSM__com_8h-source.html#l00030">30</a> of file <a class="el" href="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.<p>Referenced by <a class="el" href="STATE__functions_8c-source.html#l00118">ST_delete_msg()</a>, <a class="el" href="STATE__functions_8c-source.html#l00051">ST_init_phone()</a>, and <a class="el" href="AVRGSM__com_8c-source.html#l00143">USART0_RX_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a6" doxytag="AVRGSM_com.h::CRLF_" ></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 CRLF_&nbsp;&nbsp;&nbsp;3          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>. <p><p>Definition at line <a class="el" href="AVRGSM__com_8h-source.html#l00032">32</a> of file <a class="el" href="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.<p>Referenced by <a class="el" href="AVRGSM__com_8c-source.html#l00143">USART0_RX_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a3" doxytag="AVRGSM_com.h::OK_" ></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 OK_&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>. <p><p>Definition at line <a class="el" href="AVRGSM__com_8h-source.html#l00029">29</a> of file <a class="el" href="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.<p>Referenced by <a class="el" href="AVRGSM__api_8c-source.html#l00125">API_deletemsg()</a>, <a class="el" href="AVRGSM__api_8c-source.html#l00073">API_modem_init()</a>, <a class="el" href="AVRGSM__api_8c-source.html#l00232">API_readmsg()</a>, and <a class="el" href="AVRGSM__api_8c-source.html#l00160">API_sendmsg()</a>.    </td>  </tr></table><a class="anchor" name="a5" doxytag="AVRGSM_com.h::READY_" ></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 READY_&nbsp;&nbsp;&nbsp;2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Used to look up in <a class="el" href="AVRGSM__com_8h.html#a11">COM_setSearchString( unsigned char Response )</a>. <p><p>Definition at line <a class="el" href="AVRGSM__com_8h-source.html#l00031">31</a> of file <a class="el" href="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.<p>Referenced by <a class="el" href="AVRGSM__api_8c-source.html#l00160">API_sendmsg()</a>.    </td>  </tr></table><a class="anchor" name="a1" doxytag="AVRGSM_com.h::RX_BUFFER_MASK" ></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 RX_BUFFER_MASK&nbsp;&nbsp;&nbsp;RX_BUFFER_SIZE - 2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Used to set overflow flag. <p><p>Definition at line <a class="el" href="AVRGSM__com_8h-source.html#l00027">27</a> of file <a class="el" href="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.<p>Referenced by <a class="el" href="AVRGSM__com_8c-source.html#l00143">USART0_RX_interrupt()</a>.    </td>  </tr></table><a class="anchor" name="a0" doxytag="AVRGSM_com.h::RX_BUFFER_SIZE" ></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 RX_BUFFER_SIZE&nbsp;&nbsp;&nbsp;256          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>rx_buffer size <p><p>Definition at line <a class="el" href="AVRGSM__com_8h-source.html#l00026">26</a> of file <a class="el" href="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.    </td>  </tr></table><a class="anchor" name="a2" doxytag="AVRGSM_com.h::RX_WAIT" ></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 RX_WAIT&nbsp;&nbsp;&nbsp;65000          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Timeout value. <p><p>Definition at line <a class="el" href="AVRGSM__com_8h-source.html#l00028">28</a> of file <a class="el" href="AVRGSM__com_8h-source.html">AVRGSM_com.h</a>.<p>Referenced by <a class="el" href="AVRGSM__com_8c-source.html#l00198">COM_putchar()</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="a17" doxytag="AVRGSM_com.h::COM_gets" ></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"> unsigned char* COM_gets           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -