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

microtune_4702.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_4702_H_
00024 #define _MICROTUNE_4702_H_
00025 
00029 class microtune_4702 {
00030 public:
00031   microtune_4702 ();
00032 
00033   virtual ~microtune_4702 ();
00034 
00043   bool set_RF_freq (double freq, double *actual_freq);
00044   bool read_info (unsigned char* buf);
00045 
00049   bool pll_locked_p ();
00050   
00054   double get_output_freq ();
00055 
00056  private:
00058   virtual bool i2c_write (int addr, const unsigned char *buf, int nbytes) = 0;
00059 
00061   virtual int i2c_read (int addr, unsigned char *buf, int max_bytes) = 0;
00062 
00063   int   d_reference_divider;
00064   bool  prescaler;      /* if set, higher charge pump current:
00065                                    faster tuning, worse phase noise
00066                                    for distance < 10kHz to the carrier */
00067 };
00068 
00069 #endif /* _MICROTUNE_4702_H_ */

Generated on Tue Mar 15 23:46:36 2005 for GNU Radio by  doxygen 1.4.0