db_wbx::wbx_base Class Reference

Abstract base class for all wbx boards. More...

Inheritance diagram for db_wbx::wbx_base:

Inheritance graph
[legend]
Collaboration diagram for db_wbx::wbx_base:

Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __del__
def set_freq
def gain_range
 Return range of gain that can be set by this d'board.
def set_gain
 Set the gain.
def is_quadrature
 Return True if this board requires both I & Q analog channels.

Public Attributes

 first
 spi_format
 spi_enable


Detailed Description

Abstract base class for all wbx boards.

Derive board specific subclasses from db_wbx_base_{tx,rx}


Member Function Documentation

def db_wbx::wbx_base::__del__ (   self  ) 

Reimplemented in db_wbx::wbx_base_tx, and db_wbx::wbx_base_rx.

def db_wbx::wbx_base::__init__ (   self,
  usrp,
  which 
)

Parameters:
usrp,: instance of usrp.source_c
which,: which side: 0 or 1 corresponding to side A or B respectively which: int

Reimplemented from db_base::db_base.

Reimplemented in db_wbx::wbx_base_tx, db_wbx::wbx_base_rx, db_wbx::db_wbx_lo_tx, and db_wbx::db_wbx_lo_rx.

def db_wbx::wbx_base::gain_range (   self  ) 

Return range of gain that can be set by this d'board.

Returns:
(min_gain, max_gain, step_size) Where gains are expressed in decibels (your mileage may vary)

Reimplemented from db_base::db_base.

Reimplemented in db_wbx::db_wbx_lo_tx, and db_wbx::db_wbx_lo_rx.

def db_wbx::wbx_base::is_quadrature (   self  ) 

Return True if this board requires both I & Q analog channels.

This bit of info is useful when setting up the USRP Rx mux register.

Reimplemented from db_base::db_base.

def db_wbx::wbx_base::set_freq (   self,
  freq 
)

Returns:
(ok, actual_baseband_freq) where: ok is True or False and indicates success or failure, actual_baseband_freq is the RF frequency that corresponds to DC in the IF.

Reimplemented from db_base::db_base.

def db_wbx::wbx_base::set_gain (   self,
  gain 
)

Set the gain.

Parameters:
gain,: gain in decibels
Returns:
True/False

Reimplemented from db_base::db_base.

Reimplemented in db_wbx::wbx_base_rx, and db_wbx::db_wbx_lo_tx.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Thu Mar 5 09:03:54 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8