Changeset 2386

Show
Ignore:
Timestamp:
12/19/06 14:04:55 (6 years ago)
Author:
phelps
Message:

not tested yet, including dbsrx.h and dbsrx.cpp, more changes

Location:
platform/USRP/trunk/USRP
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • platform/USRP/trunk/USRP/dbsrx.cpp

    r2382 r2386  
    354354 
    355355//Gain Setting Helper Function 
    356 //NEED TO FIGURE THIS ONE OUT#################################################### 
    357356void dbsrx::set_gc1(int gc1_in); 
    358357{ 
    359  
     358        assert(gc1_in>=0&&gc1<4096); 
     359        gc1 = gc1_in; 
     360        u->write_aux_dac(which,0,(int) gc1_in); 
    360361} 
    361362 
    362363//Gain Setting Helper Function 
    363 //NEED TO FIGURE THIS ONE OUT#################################################### 
    364364void dbsrx::set_pga(int pga_gain_in); 
    365365{ 
    366366        assert(pga_gain>=0&&pga_gain<=20); 
    367367        if (which==0){ 
    368                  
     368                u->set_pga(0, pga_gain); 
     369                u->set_pga(1, pga_gain); 
     370        } 
     371        else { 
     372                u->set_pga(2, pga_gain); 
     373                u->set_pga(3, pga_gain); 
     374        }        
    369375} 
    370376 
  • platform/USRP/trunk/USRP/dbsrx.h

    r2382 r2386  
    4848  dbsrx(); 
    4949 
    50   int N = 950; 
    51   int DIV2 = 0; 
    52   int OSC = 5; 
    53   int CP = 3; 
    54   int R = 4; 
    55   int R_INT = 1; 
    56   int FDAC = 127; 
    57   int M = 2; 
    58   int DL = 0; 
    59   int ADE = 0; 
    60   int ADL = 0; 
    61   int GC2 = 31; 
    62   int DIAG = 0; 
    63   int REFCLK_DIVISOR = 16; 
     50  int n = 950; 
     51  int div2 = 0; 
     52  int osc = 5; 
     53  int cp = 3; 
     54  int r = 4; 
     55  int r_int = 1; 
     56  int fdac = 127; 
     57  int m = 2; 
     58  int dl = 0; 
     59  int ade = 0; 
     60  int adl = 0; 
     61  int gc2 = 31; 
     62  int diag = 0; 
     63  int refclk_divisor = 16; 
    6464 
    6565//Helper functions