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

microtune_4702 Class Reference

abstract class for controlling microtune 4702 tuner module More...

#include <microtune_4702.h>

Inheritance diagram for microtune_4702:

eval_board_4702 List of all members.

Public Member Functions

 microtune_4702 ()
virtual ~microtune_4702 ()
bool set_RF_freq (double freq, double *actual_freq)
 select RF frequency to be tuned to output frequency. freq is the requested frequency in Hz, actual_freq is set to the actual frequency tuned. It takes about 100 ms for the PLL to settle.
bool read_info (unsigned char *buf)
bool pll_locked_p ()
double get_output_freq ()

Private Member Functions

virtual bool i2c_write (int addr, const unsigned char *buf, int nbytes)=0
 true iff successful
virtual int i2c_read (int addr, unsigned char *buf, int max_bytes)=0
 number of bytes read or -1 if error

Private Attributes

int d_reference_divider
bool prescaler

Detailed Description

abstract class for controlling microtune 4702 tuner module


Constructor & Destructor Documentation

microtune_4702::microtune_4702  ) 
 

microtune_4702::~microtune_4702  )  [virtual]
 


Member Function Documentation

double microtune_4702::get_output_freq  ) 
 

Returns:
the output frequency of the tuner in Hz.

virtual int microtune_4702::i2c_read int  addr,
unsigned char *  buf,
int  max_bytes
[private, pure virtual]
 

number of bytes read or -1 if error

Implemented in eval_board_4702.

virtual bool microtune_4702::i2c_write int  addr,
const unsigned char *  buf,
int  nbytes
[private, pure virtual]
 

true iff successful

Implemented in eval_board_4702.

bool microtune_4702::pll_locked_p  ) 
 

Returns:
true iff PLL is locked

bool microtune_4702::read_info unsigned char *  buf  ) 
 

bool microtune_4702::set_RF_freq double  freq,
double *  actual_freq
 

select RF frequency to be tuned to output frequency. freq is the requested frequency in Hz, actual_freq is set to the actual frequency tuned. It takes about 100 ms for the PLL to settle.

Returns:
true iff sucessful.


Member Data Documentation

int microtune_4702::d_reference_divider [private]
 

bool microtune_4702::prescaler [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Aug 4 02:22:14 2004 for GNU Radio by doxygen 1.3.8