Changeset 12566
- Timestamp:
- Mar 22, 2007, 5:26:42 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppTest.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppTest.c
r11270 r12566 99 99 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 100 100 101 pmFPAPrint(stdout, fpa, false, true); 101 #if 0 102 pmFPAPrint(stdout, fpa, false, false); 102 103 exit(0); 103 104 #endif 104 105 105 106 #if 0 … … 118 119 #if 1 119 120 psArray *chips = fpa->chips; 120 pmFPAWrite(fpa, outFile, NULL, false, false);121 pmFPAWrite(fpa, outFile, NULL, true, false); 121 122 for (int i = 0; i < chips->n; i++) { 122 printf("Chip %d\n", i);123 123 pmChip *chip = chips->data[i]; 124 124 #if 1 125 125 //pmChipRead(chip, inFile, NULL); 126 pmChipWrite(chip, outFile, NULL, false, false);126 pmChipWrite(chip, outFile, NULL, true, false); 127 127 psArray *cells = chip->cells; 128 128 for (int j = 0; j < cells->n; j++) { 129 129 pmCell *cell = cells->data[j]; 130 pmCellWrite(cell, outFile, NULL, false);130 pmCellWrite(cell, outFile, NULL, true); 131 131 #if 0 // Read bit by bit 132 132 pmReadout *readout = pmReadoutAlloc(cell); … … 140 140 psFree(readout); 141 141 #else // Read the whole cell at once 142 pmCellRead(cell, inFile, NULL); 143 pmCellWrite(cell, outFile, NULL, true); 142 // pmCellRead(cell, inFile, NULL); 143 // pmCellWrite(cell, outFile, NULL, false); 144 // pmCellFreeData(cell); 144 145 #endif 145 146 } 147 pmChipWrite(chip, outFile, NULL, false, false); 146 148 #endif 147 149 … … 153 155 #endif 154 156 } 157 pmFPAWrite(fpa, outFile, NULL, false, false); 155 158 #endif 156 159 … … 166 169 167 170 #if 1 168 pmFPAPrint(stdout, fpa, true, true);171 pmFPAPrint(stdout, fpa, false, false); 169 172 #endif 170 173
Note:
See TracChangeset
for help on using the changeset viewer.
