Changeset 2386
- Timestamp:
- 12/19/06 14:04:55 (6 years ago)
- Location:
- platform/USRP/trunk/USRP
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
platform/USRP/trunk/USRP/dbsrx.cpp
r2382 r2386 354 354 355 355 //Gain Setting Helper Function 356 //NEED TO FIGURE THIS ONE OUT####################################################357 356 void dbsrx::set_gc1(int gc1_in); 358 357 { 359 358 assert(gc1_in>=0&&gc1<4096); 359 gc1 = gc1_in; 360 u->write_aux_dac(which,0,(int) gc1_in); 360 361 } 361 362 362 363 //Gain Setting Helper Function 363 //NEED TO FIGURE THIS ONE OUT####################################################364 364 void dbsrx::set_pga(int pga_gain_in); 365 365 { 366 366 assert(pga_gain>=0&&pga_gain<=20); 367 367 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 } 369 375 } 370 376 -
platform/USRP/trunk/USRP/dbsrx.h
r2382 r2386 48 48 dbsrx(); 49 49 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; 64 64 65 65 //Helper functions