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

📄 prism2_8h-source.html

📁 avr应用测试程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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>Procyon AVRlib: net/prism2.h Source File</title><link href="dox.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</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> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><div class="nav"><a class="el" href="dir_000001.html">net</a></div><h1>prism2.h</h1><a href="prism2_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*! \file prism2.h \brief Prism2 802.11b Wireless-LAN Interface Driver. */</span>00002 <span class="comment">//*****************************************************************************</span>00003 <span class="comment">//</span>00004 <span class="comment">// File Name    : 'prism2.h'</span>00005 <span class="comment">// Title        : Prism2 802.11b Wireless-LAN Interface Driver</span>00006 <span class="comment">// Author       : Pascal Stang</span>00007 <span class="comment">// Created      : 12/27/2004</span>00008 <span class="comment">// Revised      : 1/7/2005</span>00009 <span class="comment">// Version      : 0.1</span>00010 <span class="comment">// Target MCU   : Atmel AVR series</span>00011 <span class="comment">// Editor Tabs  : 4</span>00012 <span class="comment">//</span><span class="comment"></span>00013 <span class="comment">/// \ingroup network</span>00014 <span class="comment">/// \defgroup prism2 PrismII 802.11b WLAN Interface Driver (prism2.c)</span>00015 <span class="comment">/// \code #include "net/prism2.h" \endcode</span>00016 <span class="comment">/// \par Overview</span>00017 <span class="comment">///     This driver provides initialization and transmit/receive</span>00018 <span class="comment">/// functions for the Prism2 802.11b Wireless-LAN Controller.</span>00019 <span class="comment">///</span>00020 <span class="comment">/// \note This driver works but is still in development.</span>00021 <span class="comment"></span><span class="comment">//</span>00022 <span class="comment">//*****************************************************************************</span><span class="comment"></span>00023 <span class="comment">//@{</span>00024 <span class="comment"></span>00025 <span class="preprocessor">#ifndef PRISM2_H</span>00026 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_H</span>00027 <span class="preprocessor"></span>00028 <span class="preprocessor">#include "<a class="code" href="global_8h.html">global.h</a>"</span>00029 00030 <span class="preprocessor">#define nop()   asm volatile ("nop")</span>00031 <span class="preprocessor"></span>00032 <span class="comment">// PRISM2 I/O register defines</span>00033 <span class="preprocessor">#define PRISM2_REG_CMD          0x00</span>00034 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_PARAM0       0x02</span>00035 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_PARAM1       0x04</span>00036 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_PARAM2       0x06</span>00037 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_STATUS       0x08</span>00038 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_RESP0        0x0A</span>00039 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_RESP1        0x0C</span>00040 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_RESP2        0x0E</span>00041 <span class="preprocessor"></span>00042 <span class="preprocessor">#define PRISM2_REG_INFOFID      0x10</span>00043 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_RXFID        0x20</span>00044 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_ALLOCFID     0x22</span>00045 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_TXFID        0x24</span>00046 <span class="preprocessor"></span>00047 <span class="preprocessor">#define PRISM2_REG_BAP0SEL      0x18</span>00048 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_BAP0OFFSET   0x1C</span>00049 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_BAP0DATA     0x36</span>00050 <span class="preprocessor"></span>00051 <span class="preprocessor">#define PRISM2_REG_BAP1SEL      0x1A</span>00052 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_BAP1OFFSET   0x1E</span>00053 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_BAP1DATA     0x38</span>00054 <span class="preprocessor"></span>00055 <span class="preprocessor">#define PRISM2_REG_EVSTAT       0x30</span>00056 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_INTEN        0x32</span>00057 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_EVACK        0x34</span>00058 <span class="preprocessor"></span>00059 <span class="preprocessor">#define PRISM2_REG_SWSUP0       0x28</span>00060 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_SWSUP1       0x2A</span>00061 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_SWSUP2       0x2C</span>00062 <span class="preprocessor"></span>00063 <span class="preprocessor">#define PRISM2_REG_AUXPAGE      0x3A</span>00064 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_AUXOFFSET    0x3C</span>00065 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_REG_AUXDATA      0x3E</span>00066 <span class="preprocessor"></span>00067 00068 <span class="comment">// PRISM2 commands defines</span>00069 <span class="preprocessor">#define PRISM2_CMD_INIT         0x0000</span>00070 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_ENABLE_MAC0  0x0001</span>00071 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_DISABLE_MAC0 0x0002</span>00072 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_DIAG         0x0003</span>00073 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_ALLOC        0x000A</span>00074 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_TX           0x000B</span>00075 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_TX_RECL      0x010B</span>00076 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_NOTIFY       0x0010</span>00077 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_INQUIRE      0x0011</span>00078 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_ACCESS_RD    0x0021</span>00079 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_ACCESS_WR    0x0121</span>00080 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_BUSY         0x8000</span>00081 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_CMD_NORESP       0xFFFF</span>00082 <span class="preprocessor"></span>00083 <span class="comment">// PRISM2 command result codes</span>00084 <span class="preprocessor">#define PRISM2_RESULT_SUCCESS   0x00</span>00085 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RESULT_CARDFAIL  0x01</span>00086 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RESULT_NOBUFFER  0x05</span>00087 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RESULT_CMDERROR  0x7F</span>00088 <span class="preprocessor"></span>00089 <span class="comment">// PRISM2 BAP Offset defines</span>00090 <span class="preprocessor">#define PRISM2_BAPOFFSET_ERROR  0x4000</span>00091 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_BAPOFFSET_BUSY   0x8000</span>00092 <span class="preprocessor"></span>00093 <span class="comment">// PRISM2 event bit defines</span>00094 <span class="preprocessor">#define PRISM2_EVENT_RX         0x0001</span>00095 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_TX         0x0002</span>00096 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_TXEXEC     0x0004</span>00097 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_ALLOC      0x0008</span>00098 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_CMD        0x0010</span>00099 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_DTIM       0x0020</span>00100 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_INFO       0x0080</span>00101 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_INFDROP    0x2000</span>00102 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_WTERR      0x4000</span>00103 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_TICK       0x8000</span>00104 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_EVENT_ALL        0xFFFF</span>00105 <span class="preprocessor"></span>00106 <span class="comment">// PRISM2 Record ID defines (RIDs)</span>00107 <span class="preprocessor">#define PRISM2_RID_CNFPORTTYPE              0xFC00</span>00108 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RID_CNFOWNMACADDR            0xFC01</span>00109 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RID_CNFDESIREDSSID           0xFC02</span>00110 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RID_CNFOWNCHANNEL            0xFC03</span>00111 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RID_CNFOWNSSID               0xFC04</span>00112 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RID_CNFOWNATIMWIN            0xFC05</span>00113 <span class="preprocessor"></span><span class="preprocessor">#define PRISM2_RID_CNFSYSSCALE              0xFC06</span>

⌨️ 快捷键说明

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