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

📄 pdc__example_8c.html

📁 avr32100.zip Embedded demo
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!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>AVR321000 Communication with the AVR32 USART: testsuite/bravo_validation/pdc/pdc_example.c File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.1 --><div class="tabs">  <ul>    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>    <li id="current"><a href="files.html"><span>Files</span></a></li>    <li><a href="dirs.html"><span>Directories</span></a></li>    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="files.html"><span>File&nbsp;List</span></a></li>    <li><a href="globals.html"><span>Globals</span></a></li>  </ul></div><div class="nav"><a class="el" href="dir_ed041fa8052270846d9a0dab17b0d151.html">testsuite</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_18e6971fa792d4606dff45a531675719.html">bravo_validation</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_8c4082e77fbbc3a6ea8174dc22e0d829.html">pdc</a></div><h1>pdc_example.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>PDC and interrupt control example application. <p>This file gives an example of using the PDC to burst data on the USART. With and without the use of interrupts.<p><ul><li>Compiler: IAR EWAAVR32 and GNU GCC for AVR32</li><li>Supported devices: All AVR32 devices with PDC and USART module.</li><li>AppNote: AVR32106 - Peripheral Direct Memory Access Driver</li></ul><p><dl class="author" compact><dt><b>Author:</b></dt><dd>Atmel Corporation: <a href="http://www.atmel.com">http://www.atmel.com</a> <br> Support email: <a href="mailto:avr32@atmel.com">avr32@atmel.com</a></dd></dl>$Name$ <dl class="rcs" compact><dt><b>Revision</b></dt><dd>42 </dd></dl>$RCSfile$ <dl class="rcs" compact><dt><b>Date</b></dt><dd>2006-03-22 09:08:08 +0100 (Wed, 22 Mar 2006) </dd></dl><p>Definition in file <a class="el" href="pdc__example_8c-source.html">pdc_example.c</a>.<p><code>#include &lt;avr32/io.h&gt;</code><br><code>#include &quot;<a class="el" href="settings_8h-source.html">settings.h</a>&quot;</code><br><code>#include &quot;<a class="el" href="testsuite_2bravo__validation_2pdc_2usart_8h-source.html">usart.h</a>&quot;</code><br><code>#include &quot;<a class="el" href="pdc_8h-source.html">pdc.h</a>&quot;</code><br><p>Include dependency graph for pdc_example.c:<p><a href="pdc__example_8c-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="pdc__example_8c.html#4ccf0adbf6c2731ae9d343d745cb6f50">MODE_INT</a>&nbsp;&nbsp;&nbsp;2</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#ef5acafeb3c35dae8cee512439195883">MODE_PDC</a>&nbsp;&nbsp;&nbsp;1</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#756985fd8314d5c019f685164d8c3c16">MODE_POLLED</a>&nbsp;&nbsp;&nbsp;0</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#0eff802f1ca228046476209dc01c76ad">RGB_BLUE</a>&nbsp;&nbsp;&nbsp;3</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#b6c97468034c02fe204fd37036d9be15">RGB_GREEN</a>&nbsp;&nbsp;&nbsp;2</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#143edb2a30dcec26a3ec0a41d1082010">RGB_OFF</a>&nbsp;&nbsp;&nbsp;0</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#0a85d8d0da8edc5cce98f48701f903f7">RGB_ORANGE</a>&nbsp;&nbsp;&nbsp;4</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#a039288455af8a3812a35aa1e7b903e4">RGB_RED</a>&nbsp;&nbsp;&nbsp;1</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#c1771f95d9887118764bd8a074e537e1">RGB_WHITE</a>&nbsp;&nbsp;&nbsp;5</td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#bb9ee10191569258e0f22bdd0a95ba62">delay</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#5c306d9eb1786a113d9cbbd151f48a98">rgb_setColor</a> (unsigned char color)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Function to set the color of the RGB LEDs.  <a href="#5c306d9eb1786a113d9cbbd151f48a98"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#63085d18a532246ac4f8f4daf0aa50e0">runningleds</a> ()</td></tr><tr><td colspan="2"><br><h2>Variables</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">volatile avr32_pio_t *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#a3c67cc5cb0b0223b92c9fb74b904255">pioa</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">volatile avr32_pio_t *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#305f96d612af5d9d17a8dd222dd01908">piob</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#369af489f96cc0f9014811f7f92f513d">runningleds_status</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#ed1cfb225a5fb77461e7972691e68a72">string</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#17f880c1a0b4092e2a2b6edc8f6f0296">stringPDC</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#f6d36bf80746a66dbc322f81675bfdd8">stringSize</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#d7000420ddb9c6aaf7a13c9b7c4e837a">stringSizePDC</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">volatile avr32_usart_t *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pdc__example_8c.html#815b2ce862a7fa7c51e4ffb658f410dd">usart0</a></td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="4ccf0adbf6c2731ae9d343d745cb6f50"></a><!-- doxytag: member="pdc_example.c::MODE_INT" ref="4ccf0adbf6c2731ae9d343d745cb6f50" args="" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">#define MODE_INT&nbsp;&nbsp;&nbsp;2          </td>        </tr>      </table></div><div class="memdoc"><p><p>Definition at line <a class="el" href="pdc__example_8c-source.html#l00042">42</a> of file <a class="el" href="pdc__example_8c-source.html">pdc_example.c</a>.</div></div><p><a class="anchor" name="ef5acafeb3c35dae8cee512439195883"></a><!-- doxytag: member="pdc_example.c::MODE_PDC" ref="ef5acafeb3c35dae8cee512439195883" args="" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">#define MODE_PDC&nbsp;&nbsp;&nbsp;1          </td>        </tr>      </table></div><div class="memdoc"><p><p>Definition at line <a class="el" href="pdc__example_8c-source.html#l00041">41</a> of file <a class="el" href="pdc__example_8c-source.html">pdc_example.c</a>.<p>Referenced by <a class="el" href="pdc__example_8c-source.html#l00110">main()</a>.</div></div><p><a class="anchor" name="756985fd8314d5c019f685164d8c3c16"></a><!-- doxytag: member="pdc_example.c::MODE_POLLED" ref="756985fd8314d5c019f685164d8c3c16" args="" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">#define MODE_POLLED&nbsp;&nbsp;&nbsp;0          </td>        </tr>      </table></div><div class="memdoc"><p><p>Definition at line <a class="el" href="pdc__example_8c-source.html#l00040">40</a> of file <a class="el" href="pdc__example_8c-source.html">pdc_example.c</a>.<p>Referenced by <a class="el" href="pdc__example_8c-source.html#l00110">main()</a>.</div></div><p><a class="anchor" name="0eff802f1ca228046476209dc01c76ad"></a><!-- doxytag: member="pdc_example.c::RGB_BLUE" ref="0eff802f1ca228046476209dc01c76ad" args="" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">#define RGB_BLUE&nbsp;&nbsp;&nbsp;3          </td>        </tr>      </table></div><div class="memdoc"><p><p>Definition at line <a class="el" href="pdc__example_8c-source.html#l00036">36</a> of file <a class="el" href="pdc__example_8c-source.html">pdc_example.c</a>.<p>Referenced by <a class="el" href="pdc__example_8c-source.html#l00082">rgb_setColor()</a>.</div></div><p><a class="anchor" name="b6c97468034c02fe204fd37036d9be15"></a><!-- doxytag: member="pdc_example.c::RGB_GREEN" ref="b6c97468034c02fe204fd37036d9be15" args="" --><div class="memitem"><div class="memproto">      <table class="memname">        <tr>          <td class="memname">#define RGB_GREEN&nbsp;&nbsp;&nbsp;2          </td>        </tr>      </table></div><div class="memdoc">

⌨️ 快捷键说明

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