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

microtune_eval_board Class Reference

concrete class for controlling microtune 4937 eval board attached to parallel port More...

#include <microtune_eval_board.h>

Inheritance diagram for microtune_eval_board:

microtune_4937 List of all members.

Public Member Functions

 microtune_eval_board (int which_pp=0)
 ~microtune_eval_board ()
bool board_present_p ()
 is the eval board present?
void set_RF_AGC_voltage (float volts)
 set RF and IF AGC control voltages ([0, 5] volts)
void set_IF_AGC_voltage (float volts)
void set_AGC (float value_0_1000)
 set RF and IF AGC levels together (scale [0, 1000])

Private Member Functions

virtual bool i2c_write (int addr, const unsigned char *buf, int nbytes)
 true iff successful
virtual int i2c_read (int addr, unsigned char *buf, int max_bytes)
 number of bytes read or -1 if error
void write_dac (int which, int value)
void write_both_dacs (int val0, int val1)

Private Attributes

ppiom_ppio
i2ciom_i2cio
i2cm_i2c

Detailed Description

concrete class for controlling microtune 4937 eval board attached to parallel port


Constructor & Destructor Documentation

microtune_eval_board::microtune_eval_board int  which_pp = 0  ) 
 

microtune_eval_board::~microtune_eval_board  ) 
 


Member Function Documentation

bool microtune_eval_board::board_present_p  ) 
 

is the eval board present?

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

number of bytes read or -1 if error

Implements microtune_4937.

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

true iff successful

Implements microtune_4937.

void microtune_eval_board::set_AGC float  value_0_1000  ) 
 

set RF and IF AGC levels together (scale [0, 1000])

This provides a simple linear interface for adjusting both the RF and IF gain in consort. This is the easy to use interface. 0 corresponds to minimum gain. 1000 corresponds to maximum gain.

void microtune_eval_board::set_IF_AGC_voltage float  volts  ) 
 

void microtune_eval_board::set_RF_AGC_voltage float  volts  ) 
 

set RF and IF AGC control voltages ([0, 5] volts)

void microtune_eval_board::write_both_dacs int  val0,
int  val1
[private]
 

void microtune_eval_board::write_dac int  which,
int  value
[private]
 


Member Data Documentation

i2c* microtune_eval_board::m_i2c [private]
 

i2cio* microtune_eval_board::m_i2cio [private]
 

ppio* microtune_eval_board::m_ppio [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Mar 15 23:47:10 2005 for GNU Radio by  doxygen 1.4.0