📄 ad6620_8h-source.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>Procyon ARMlib-LPC2100: ad6620.h Source File</title><link href="dox.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>ad6620.h</h1><a href="ad6620_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*! \file ad6620.h \brief Analog Devices AD6620 Digital Receiver Driver. */</span>00002 <span class="comment">//*****************************************************************************</span>00003 <span class="comment">//</span>00004 <span class="comment">// File Name : 'ad6620.h'</span>00005 <span class="comment">// Title : Analog Devices AD6620 Digital Receiver Driver</span>00006 <span class="comment">// Author : Pascal Stang - Copyright (C) 2004</span>00007 <span class="comment">// Created : 2004.07.08</span>00008 <span class="comment">// Revised : 2004.07.12</span>00009 <span class="comment">// Version : 0.1</span>00010 <span class="comment">// Target MCU : ARM processors</span>00011 <span class="comment">// Editor Tabs : 4</span>00012 <span class="comment">//</span>00013 <span class="comment">// NOTE: This code is currently below version 1.0, and therefore is considered</span>00014 <span class="comment">// to be lacking in some functionality or documentation, or may not be fully</span>00015 <span class="comment">// tested. Nonetheless, you can expect most functions to work.</span>00016 <span class="comment">//</span>00017 <span class="comment">// This code is distributed under the GNU Public License</span>00018 <span class="comment">// which can be found at http://www.gnu.org/licenses/gpl.txt</span>00019 <span class="comment">//</span>00020 <span class="comment">//*****************************************************************************</span>00021 00022 <span class="preprocessor">#ifndef AD6620_H</span>00023 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_H</span>00024 <span class="preprocessor"></span>00025 <span class="preprocessor">#include "<a class="code" href="global_8h.html">global.h</a>"</span>00026 00027 <span class="comment">// defines</span>00028 00029 <span class="comment">// hardware</span>00030 <span class="comment">/*</span>00031 <span class="comment">#define AD6620_REFCLK_FREQ 24000000l</span>00032 <span class="comment">#define AD6620_IO_UPDATE P04</span>00033 <span class="comment">#define AD6620_RESET P05</span>00034 <span class="comment">*/</span>00035 00036 <span class="comment">// base address</span>00037 <span class="preprocessor">#define AD6620_REG_BASE 0x8800</span>00038 <span class="preprocessor"></span>00039 <span class="comment">// external interface registers</span>00040 <span class="preprocessor">#define AD6620_REG_DR0 0x00</span>00041 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_DR1 0x01</span>00042 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_DR2 0x02</span>00043 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_DR3 0x03</span>00044 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_DR4 0x04</span>00045 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_LAR 0x06</span>00046 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_AMR 0x07</span>00047 <span class="preprocessor"></span>00048 <span class="comment">// internal registers and RAM</span>00049 <span class="preprocessor">#define AD6620_REG_RCF_COEFF 0x000</span>00050 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_RCF_DATA 0x100</span>00051 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_MODE_CTRL 0x300</span>00052 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_NCO_CTRL 0x301</span>00053 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_NCO_SYNC 0x302</span>00054 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_NCO_FREQ 0x303</span>00055 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_NCO_PHASE 0x304</span>00056 <span class="preprocessor"></span>00057 <span class="preprocessor">#define AD6620_REG_CIC2_SCALE 0x305</span>00058 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_CIC2_DECIM 0x306</span>00059 <span class="preprocessor"></span>00060 <span class="preprocessor">#define AD6620_REG_CIC5_SCALE 0x307</span>00061 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_CIC5_DECIM 0x306</span>00062 <span class="preprocessor"></span>00063 <span class="preprocessor">#define AD6620_REG_RCF_CTRL 0x309</span>00064 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_RCF_DECIM 0x30A</span>00065 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_RCFADDR_OFS 0x30B</span>00066 <span class="preprocessor"></span><span class="preprocessor">#define AD6620_REG_RCF_TAPS 0x30C</span>00067 <span class="preprocessor"></span>00068 <span class="preprocessor">#define AD6620_REG_RESERVED 0x30D</span>00069 <span class="preprocessor"></span>00070 <span class="comment">/*</span>00071 <span class="comment">// mode defines</span>00072 <span class="comment">#define AD9854_MODE_SINGLE 0x00</span>00073 <span class="comment">#define AD9854_MODE_FSK 0x01</span>00074 <span class="comment">#define AD9854_MODE_RAMPFSK 0x02</span>00075 <span class="comment">#define AD9854_MODE_CHIRP 0x03</span>00076 <span class="comment">#define AD9854_MODE_BPSK 0x04</span>00077 <span class="comment"></span>00078 <span class="comment">// control register</span>00079 <span class="comment">#define AD9854_INVSINC_BYPASS BIT(6)</span>00080 <span class="comment"></span>00081 <span class="comment">#define AD9854_INT_IO_UPDATE BIT(8)</span>00082 <span class="comment">#define AD9854_MODE_MASK 0x00000E00</span>00083 <span class="comment">#define AD9854_MODE0 BIT(9)</span>00084 <span class="comment">#define AD9854_MODE1 BIT(10)</span>00085 <span class="comment">#define AD9854_MODE2 BIT(11)</span>00086 <span class="comment"></span>00087 <span class="comment">#define AD9854_TRIANGLE BIT(13)</span>00088 <span class="comment">#define AD9854_CLR_ACC2 BIT(14)</span>00089 <span class="comment">#define AD9854_CLR_ACC1 BIT(15)</span>00090 <span class="comment"></span>00091 <span class="comment">#define AD9854_PLL_MULT_MASK 0x001F0000</span>00092 <span class="comment">#define AD9854_PLL_MULT0 BIT(16)</span>00093 <span class="comment">#define AD9854_PLL_MULT1 BIT(17)</span>00094 <span class="comment">#define AD9854_PLL_MULT2 BIT(18)</span>00095 <span class="comment">#define AD9854_PLL_MULT3 BIT(19)</span>00096 <span class="comment">#define AD9854_PLL_MULT4 BIT(20)</span>00097 <span class="comment">#define AD9854_PLL_BYPASS BIT(21)</span>00098 <span class="comment">#define AD9854_PLL_RANGE BIT(22)</span>00099 <span class="comment">#define AD9854_PD_DIG BIT(24)</span>00100 <span class="comment">#define AD9854_PD_DAC BIT(25)</span>00101 <span class="comment">#define AD9854_PD_QDAC BIT(26)</span>00102 <span class="comment">#define AD9854_PD_COMP BIT(28)</span>00103 <span class="comment">*/</span>00104 00105 <span class="keywordtype">void</span> ad6620Init(<span class="keywordtype">void</span>);00106 00107 u32 ad6620ReadReg(u16 reg);00108 <span class="keywordtype">void</span> ad6620WriteReg(u16 reg, u32 data);00109 00110 <span class="keywordtype">void</span> ad6620ShowRegisters(<span class="keywordtype">void</span>);00111 00112 00113 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jul 13 03:38:11 2004 for Procyon ARMlib-LPC2100 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.6 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -