Changeset 7469 for trunk/psModules/src/camera/pmFPAHeader.c
- Timestamp:
- Jun 9, 2006, 3:55:20 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAHeader.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAHeader.c
r7314 r7469 6 6 #include "pmConcepts.h" 7 7 #include "pmFPAHeader.h" 8 9 //////////////////////////////////////////////////////////////////////////////////////////////////////////////10 // File-static (private) functions11 //////////////////////////////////////////////////////////////////////////////////////////////////////////////12 13 // Read concepts for all cells in a chip14 static bool chipConcepts(pmChip *chip // The chip for which to read the concepts15 )16 {17 assert(chip);18 19 bool status = true; // Status of concept reading20 status |= pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, false, NULL);21 psArray *cells = chip->cells; // The cells22 for (int i = 0; i < cells->n; i++) {23 pmCell *cell = cells->data[i]; // The cell of interest24 if (!cell) {25 continue;26 }27 status |= pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, false, NULL);28 }29 30 return status;31 }32 33 // Read concepts for all chips in an FPA34 static bool fpaConcepts(pmFPA *fpa // The FPA for which to read the concepts35 )36 {37 assert(fpa);38 39 bool status = true; // Status of concept reading40 status |= pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, NULL);41 psArray *chips = fpa->chips; // The chips42 for (int i = 0; i < chips->n; i++) {43 pmChip *chip = chips->data[i]; // The chip of interest44 if (!chip) {45 continue;46 }47 status |= chipConcepts(chip);48 }49 50 return status;51 }52 53 8 54 9 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 90 45 } 91 46 92 if (! chipConcepts(chip)) {47 if (!pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, true, true, NULL)) { 93 48 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts for chip.\n"); 94 49 return false; … … 114 69 } 115 70 116 if (! fpaConcepts(fpa)) {71 if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, true, NULL)) { 117 72 psError(PS_ERR_UNKNOWN, false, "Unable to read concepts for FPA.\n"); 118 73 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
