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

eval_board_4702.h

Go to the documentation of this file.
00001 /* -*-C++-*-
00002 *******************************************************************************
00003 *
00004 * File:         eval_board_4702.h
00005 * Description:  
00006 *
00007 *******************************************************************************
00008 */
00009 
00010 /*
00011  * Copyright 2001 Free Software Foundation, Inc.
00012  * 
00013  * This file is part of GNU Radio
00014  * 
00015  * GNU Radio is free software; you can redistribute it and/or modify
00016  * it under the terms of the GNU General Public License as published by
00017  * the Free Software Foundation; either version 2, or (at your option)
00018  * any later version.
00019  * 
00020  * GNU Radio is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  * GNU General Public License for more details.
00024  * 
00025  * You should have received a copy of the GNU General Public License
00026  * along with GNU Radio; see the file COPYING.  If not, write to
00027  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00028  * Boston, MA 02111-1307, USA.
00029  */
00030 
00031 #ifndef _EVAL_BOARD_4702_H_
00032 #define _EVAL_BOARD_4702_H_
00033 
00034 #include "microtune_4702.h"
00035 
00036 class ppio;
00037 class i2cio;
00038 class i2c;
00039 
00043 class eval_board_4702 : public microtune_4702 {
00044 public:
00045   eval_board_4702 (int which_pp = 0);
00046   ~eval_board_4702 ();
00047 
00049   bool board_present_p ();
00050 
00054   void set_RF_AGC_voltage (float volts);
00055   void set_IF_AGC_voltage (float volts);
00056 
00064   void set_AGC (float value_0_1000);
00065 
00066 
00067 private:
00069   virtual bool i2c_write (int addr, const unsigned char *buf, int nbytes);
00070 
00072   virtual int i2c_read (int addr, unsigned char *buf, int max_bytes);
00073 
00074   void write_dac (int which, int value);
00075   void write_both_dacs (int val0, int val1);
00076   
00077   ppio  *m_ppio;
00078   i2cio *m_i2cio;
00079   i2c   *m_i2c;
00080 };
00081 
00082 
00083 #endif /* _EVAL_BOARD_4702_H_ */

Generated on Tue Mar 30 21:31:34 2004 for GNU Radio by doxygen 1.3.2