Changeset 6859 for branches/rel10_ifa/psModules/src/astrom/pmFPA.c
- Timestamp:
- Apr 14, 2006, 11:43:59 AM (20 years ago)
- File:
-
- 1 edited
-
branches/rel10_ifa/psModules/src/astrom/pmFPA.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmFPA.c
r6854 r6859 12 12 * XXX: Should we implement non-linear cell->chip transforms? 13 13 * 14 * @version $Revision: 1.1.4. 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-04-14 03:09:32$14 * @version $Revision: 1.1.4.8 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-04-14 21:43:59 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 512 512 513 513 /***************************************************************************** 514 XXX EAM : I've added the 'exclusive' option. if true all other chips are de-selected 515 XXX EAM : a negative value is valid and, in combinations with exclusive, de-selects all chips 514 516 *****************************************************************************/ 515 bool pmFPASelectChip( 516 pmFPA *fpa, 517 int chipNum) 517 bool pmFPASelectChip(pmFPA *fpa, int chipNum, bool exclusive) 518 518 { 519 519 PS_ASSERT_PTR_NON_NULL(fpa, false); … … 533 533 setCellsProcess(tmpChip, true); 534 534 } else { 535 tmpChip->process = false; 536 setCellsProcess(tmpChip, false); 537 } 538 539 } 540 541 return true; 542 } 543 544 bool pmChipSelectCell(pmChip *chip, 545 int cellNum 546 ) 535 if (exclusive) { 536 tmpChip->process = false; 537 setCellsProcess(tmpChip, false); 538 } 539 } 540 541 } 542 543 return true; 544 } 545 546 /***************************************************************************** 547 XXX EAM : I've added the 'exclusive' option. if true all other chips are de-selected 548 XXX EAM : a negative value is valid and, in combinations with exclusive, de-selects all cells 549 XXX this function should probably be re-defined to merge with 'setCellsProcess' 550 *****************************************************************************/ 551 bool pmChipSelectCell(pmChip *chip, int cellNum, bool exclusive) 547 552 { 548 553 assert(chip); … … 558 563 continue; 559 564 } 560 cell->process = (i == cellNum); 561 } 562 565 if (i == cellNum) { 566 cell->process = true; 567 } else { 568 if (exclusive) { 569 cell->process = false; 570 } 571 } 572 } 563 573 return true; 564 574 }
Note:
See TracChangeset
for help on using the changeset viewer.
