Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

microtune_4937.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2001,2003 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 #ifndef _MICROTUNE_4937_H_
00024 #define _MICROTUNE_4937_H_
00025 
00029 class microtune_4937 {
00030 public:
00031   microtune_4937 ();
00032 
00033   virtual ~microtune_4937 ();
00034 
00043   bool set_RF_freq (double freq, double *actual_freq);
00044   
00045   // returns actual freq or 0 if error (easier interface for SWIG)
00046   double set_RF_freq (double freq);
00047 
00051   bool pll_locked_p ();
00052   
00056   double get_output_freq ();
00057 
00058  private:
00060   virtual bool i2c_write (int addr, const unsigned char *buf, int nbytes) = 0;
00061 
00063   virtual int i2c_read (int addr, unsigned char *buf, int max_bytes) = 0;
00064 
00065   int   d_reference_divider;
00066   bool  d_fast_tuning_p;        /* if set, higher charge pump current:
00067                                    faster tuning, worse phase noise
00068                                    for distance < 10kHz to the carrier */
00069 };
00070 
00071 #endif /* _MICROTUNE_4937_H_ */

Generated on Wed Mar 23 12:30:24 2005 for GNU Radio by  doxygen 1.4.0