IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9608


Ignore:
Timestamp:
Oct 16, 2006, 5:42:55 PM (20 years ago)
Author:
Paul Price
Message:

Documenting pmHDUUtils.[ch]

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmHDUUtils.c

    r8815 r9608  
    99
    1010
    11 pmHDU *pmHDUFromFPA(const pmFPA *fpa    // FPA for which to find HDU
    12                    )
     11pmHDU *pmHDUFromFPA(const pmFPA *fpa)
    1312{
    1413    PS_ASSERT_PTR_NON_NULL(fpa, NULL);
     
    1615}
    1716
    18 pmHDU *pmHDUFromChip(const pmChip *chip // Chip for which to find HDU
    19                     )
     17pmHDU *pmHDUFromChip(const pmChip *chip)
    2018{
    2119    PS_ASSERT_PTR_NON_NULL(chip, NULL);
     
    2927}
    3028
    31 pmHDU *pmHDUFromCell(const pmCell *cell // Cell for which to find HDU
    32                     )
     29pmHDU *pmHDUFromCell(const pmCell *cell)
    3330{
    3431    PS_ASSERT_PTR_NON_NULL(cell, NULL);
     
    4239}
    4340
    44 pmHDU *pmHDUFromReadout(const pmReadout *readout // Readout for which to find HDU
    45                        )
     41pmHDU *pmHDUFromReadout(const pmReadout *readout)
    4642{
    4743    PS_ASSERT_PTR_NON_NULL(readout, NULL);
     
    5349
    5450// Get the lowest HDU
    55 pmHDU *pmHDUGetLowest(const pmFPA *fpa, // The FPA
    56                       const pmChip *chip, // The chip, or NULL
    57                       const pmCell *cell // The cell, or NULL
    58                      )
     51pmHDU *pmHDUGetLowest(const pmFPA *fpa, const pmChip *chip, const pmCell *cell)
    5952{
    6053    pmHDU *hdu = NULL;          // The HDU that's at the lowest level
     
    7164
    7265// Get the highest HDU
    73 pmHDU *pmHDUGetHighest(const pmFPA *fpa, // The FPA
    74                        const pmChip *chip, // The chip, or NULL
    75                        const pmCell *cell // The cell, or NULL
    76                       )
     66pmHDU *pmHDUGetHighest(const pmFPA *fpa, const pmChip *chip, const pmCell *cell)
    7767{
    7868    pmHDU *hdu = NULL;          // The HDU that's at the highest level
     
    9080}
    9181
    92 void pmHDUPrint(FILE *fd,               // File descriptor to which to print
    93                 const pmHDU *hdu,       // HDU to print
    94                 int level,              // Level at which to print
    95                 bool header             // Print header?
    96                )
     82void pmHDUPrint(FILE *fd, const pmHDU *hdu, int level, bool header)
    9783{
    9884    PS_ASSERT_PTR_NON_NULL(hdu,);
  • trunk/psModules/src/camera/pmHDUUtils.h

    r7609 r9608  
     1/// @file pmHDUUtils.h
     2///
     3/// @brief Utility functions for working with an HDU
     4///
     5/// @ingroup Camera
     6///
     7/// @author Paul Price, IfA
     8///
     9/// @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2006-10-17 03:42:55 $
     11///
     12/// Copyright 2005-2006 Institute for Astronomy, University of Hawaii
     13///
     14
    115#ifndef PM_HDU_UTILS_H
    216#define PM_HDU_UTILS_H
     
    519#include "pmHDU.h"
    620
    7 // Get the lowest HDU in the hierarchy, as supplied
    8 pmHDU *pmHDUGetLowest(const pmFPA *fpa, // The FPA
    9                       const pmChip *chip, // The chip, or NULL
    10                       const pmCell *cell // The cell, or NULL
     21/// Get the lowest HDU in the hierarchy
     22///
     23/// The lowest HDU in the hierarchy will be the one with the actual pixels (if all levels are supplied).
     24pmHDU *pmHDUGetLowest(const pmFPA *fpa, ///< The FPA
     25                      const pmChip *chip, ///< The chip, or NULL
     26                      const pmCell *cell ///< The cell, or NULL
    1127                     );
    1228
    13 // Get the highest HDU in the hierarchy, as supplied
    14 pmHDU *pmHDUGetHighest(const pmFPA *fpa, // The FPA
    15                        const pmChip *chip, // The chip, or NULL
    16                        const pmCell *cell // The cell, or NULL
     29/// Get the highest HDU in the hierarchy
     30///
     31/// The highest HDU in the hierarchy will be the PHU (might get NULL if not all levels are supplied)
     32pmHDU *pmHDUGetHighest(const pmFPA *fpa, ///< The FPA
     33                       const pmChip *chip, ///< The chip, or NULL
     34                       const pmCell *cell ///< The cell, or NULL
    1735                      );
    1836
    19 // Find the HDU in the FPA hierarchy
    20 pmHDU *pmHDUFromFPA(const pmFPA *fpa    // FPA for which to find HDU
     37/// Given an FPA, return the HDU (or NULL if all HDUs reside below the FPA)
     38pmHDU *pmHDUFromFPA(const pmFPA *fpa    ///< FPA for which to find HDU
    2139                   );
    22 pmHDU *pmHDUFromChip(const pmChip *chip // Chip for which to find HDU
     40
     41/// Given a chip, return the HDU (or NULL if it resides below the chip)
     42pmHDU *pmHDUFromChip(const pmChip *chip ///< Chip for which to find HDU
    2343                    );
    24 pmHDU *pmHDUFromCell(const pmCell *cell // Cell for which to find HDU
     44
     45/// Given a cell, return the HDU
     46pmHDU *pmHDUFromCell(const pmCell *cell ///< Cell for which to find HDU
    2547                    );
    26 pmHDU *pmHDUFromReadout(const pmReadout *readout // Readout for which to find HDU
     48
     49/// Given a readout, return the HDU
     50pmHDU *pmHDUFromReadout(const pmReadout *readout ///< Readout for which to find HDU
    2751                       );
    2852
    29 // Print details about an HDU
    30 void pmHDUPrint(FILE *fd,               // File descriptor to which to print
    31                 const pmHDU *hdu,       // HDU to print
    32                 int level,              // Level at which to print
    33                 bool header             // Print header?
     53/// Print details about an HDU
     54///
     55/// This is intended for testing or development use.  Only works if tracing is enabled.
     56void pmHDUPrint(FILE *fd,               ///< File descriptor to which to print
     57                const pmHDU *hdu,       ///< HDU to print
     58                int level,              ///< Level at which to print
     59                bool header             ///< Print header?
    3460               );
    3561
Note: See TracChangeset for help on using the changeset viewer.