#ifndef PM_READOUT_MASK_WEIGHT_H
#define PM_READOUT_MASK_WEIGHT_H

#include "pmFPA.h"

/** Mask values */
typedef enum {
    PM_MASK_TRAP    = 0x0001,   ///< The pixel is a charge trap.
    PM_MASK_BADCOL  = 0x0002,   ///< The pixel is a bad column.
    PM_MASK_SAT     = 0x0004,   ///< The pixel is saturated.
    PM_MASK_BAD     = 0x0008,   ///< The pixel is low
    PM_MASK_FLAT    = 0x0010    ///< The pixel is non-positive in the flat-field.
} pmMaskValue;

bool pmReadoutSetMask(pmReadout *readout // Readout for which to set mask
                     );
bool pmReadoutSetWeight(pmReadout *readout // Readout for which to set weight
                       );
bool pmCellSetMaskWeight(pmCell *cell // Cell for which to set weights
                        );


#endif
