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

eval_board_4702 Class Reference

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

#include <eval_board_4702.h>

Inheritance diagram for eval_board_4702:

microtune_4702 List of all members.

Public Member Functions

 eval_board_4702 (int which_pp=0)
 ~eval_board_4702 ()
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

eval_board_4702::eval_board_4702 int  which_pp = 0  ) 
 

eval_board_4702::~eval_board_4702  ) 
 


Member Function Documentation

bool eval_board_4702::board_present_p  ) 
 

is the eval board present?

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

number of bytes read or -1 if error

Implements microtune_4702.

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

true iff successful

Implements microtune_4702.

void eval_board_4702::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 eval_board_4702::set_IF_AGC_voltage float  volts  ) 
 

void eval_board_4702::set_RF_AGC_voltage float  volts  ) 
 

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

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

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


Member Data Documentation

i2c* eval_board_4702::m_i2c [private]
 

i2cio* eval_board_4702::m_i2cio [private]
 

ppio* eval_board_4702::m_ppio [private]
 


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