GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EDS / V2-10-0
Constituent: eds     Tag: mv2304
Classes | |
struct | _EDR_calTower |
Structure containing the unpacked CAL data for this tower. More... | |
struct | _EDR_cal |
Structure containing the unpacked CAL data for all towers. More... | |
Defines | |
#define | EDR_CAL_TOWER_LAYERMAP_JUSTIFY(_layerMap) ((_layerMap) << 16) |
Left justifies the layerMap field found in the EDR_calTower structure so that it can be used with the FFS function. | |
#define | EDR_CAL_TOWER_COLMAP_JUSTIFY(_colMap) ((_colMap) << 16) |
Left justifies the colMap field found in the EDR_calTower structure so that it can be used with the FFS function. | |
#define | EDR_CAL_TWRMAP_JUSTIFY(_twrMap) ((_twrMap)) |
Left justifies the twrMap field found in the EDR_cal structure so that it can be used with the FFS function. | |
#define | EDR_CAL_TOWER_LAYERMAP_INIT 0x8000 |
Initial of the layer map, i.e. position of LAYER 0 bit. | |
#define | EDR_CAL_TOWER_COLMAP_INIT 0x8000 |
Initial of the column map; i.e. position of COLUMN 0 bit. | |
#define | EDR_CAL_TWRMAP_INIT 0x80000000 |
Initial value of the tower map, i.e. for position of tower 0 bit. | |
#define | EDR_CAL_TOWER_LAYERMAP(_layerNum) (EDR_CAL_TOWER_LAYERMAP_INIT >> (_layerNum)) |
Constructs the appropriate bit mask for the layerMap field in the EDR_calTower structure. | |
#define | EDR_CAL_TOWER_COLMAP(_colNum) (EDR_CAL_TOWER_COLMAP_INIT >> (_colNum)) |
Constructs the appropriate bit mask for the colMap field in the EDR_calTower structure. | |
#define | EDR_CAL_TWRMAP(_twrNum) (EDR_CAL_TWRMAP_INIT >> (_twrNum)) |
Constructs the appropriate bit mask for the twrMap field in the EDR_cal structure. | |
#define | EDR_CAL_ENERGY_IS_VALID(_cal) ((_cal)->valid & EDR_CAL_VALID_M_ENERGY) |
Returns a non zero value is the energies are valid. | |
#define | EDR_CAL_MAP_IS_VALID(_cal) ((_cal)->valid & EDR_CAL_VALID_M_MAP) |
Returns a non zero value is the address mapping is valid. | |
#define | EDR_CAL_MAP_ENERGY_ARE_VALID(_cal) |
Returns a non zero value if the map and energies are both valid. | |
Typedefs | |
typedef unsigned short int | EDR_calColumnMap |
Abstract typedef for a CAL column map. | |
typedef enum _EDR_CAL_VALID_V | EDR_CAL_VALID_V |
Typedef for enum _EDR_CAL_VALID_V. | |
typedef enum _EDR_CAL_VALID_M | EDR_CAL_VALID_M |
Typedef for enum _EDR_CAL_VALID_M. | |
typedef struct _EDR_calTower | EDR_calTower |
Typedef for struct _EDR_calTower. | |
typedef struct _EDR_cal | EDR_cal |
Typedef for struct _EDR_lat. | |
Enumerations | |
enum | _EDR_CAL_VALID_V { EDR_CAL_VALID_V_MAP = 0, EDR_CAL_VALID_V_ENERGY = 1 } |
CAL validity value, right justified bit offset. More... | |
enum | _EDR_CAL_VALID_M { EDR_CAL_VALID_M_MAP = (1 << EDR_CAL_VALID_V_MAP), EDR_CAL_VALID_M_ENERGY = (1 << EDR_CAL_VALID_V_ENERGY) } |
CAL validity value, inplace masks. More... |
CVS $Id: EDR_cal.h,v 1.5 2006/09/13 00:51:28 russell Exp $
#define EDR_CAL_ENERGY_IS_VALID | ( | _cal | ) | ((_cal)->valid & EDR_CAL_VALID_M_ENERGY) |
Returns a non zero value is the energies are valid.
_cal | Pointer to an EDR_cal data structure |
#define EDR_CAL_MAP_ENERGY_ARE_VALID | ( | _cal | ) |
Value:
(((_cal)->valid & (EDR_CAL_VALID_M_MAP | EDR_CAL_VALID_M_ENERGY)) \ == (EDR_CAL_VALID_M_MAP | EDR_CAL_VALID_M_ENERGY))
_cal | Pointer to an EDR_cal data structure |
#define EDR_CAL_MAP_IS_VALID | ( | _cal | ) | ((_cal)->valid & EDR_CAL_VALID_M_MAP) |
Returns a non zero value is the address mapping is valid.
_cal | Pointer to an EDR_cal data structure |
#define EDR_CAL_TOWER_COLMAP | ( | _colNum | ) | (EDR_CAL_TOWER_COLMAP_INIT >> (_colNum)) |
Constructs the appropriate bit mask for the colMap field in the EDR_calTower structure.
_colNum | The column number |
#define EDR_CAL_TOWER_COLMAP_INIT 0x8000 |
Initial of the column map; i.e. position of COLUMN 0 bit.
#define EDR_CAL_TOWER_COLMAP_JUSTIFY | ( | _colMap | ) | ((_colMap) << 16) |
Left justifies the colMap field found in the EDR_calTower structure so that it can be used with the FFS function.
_colMap | The column map to justify |
#define EDR_CAL_TOWER_LAYERMAP | ( | _layerNum | ) | (EDR_CAL_TOWER_LAYERMAP_INIT >> (_layerNum)) |
Constructs the appropriate bit mask for the layerMap field in the EDR_calTower structure.
_layerNum | The layer number |
#define EDR_CAL_TOWER_LAYERMAP_INIT 0x8000 |
Initial of the layer map, i.e. position of LAYER 0 bit.
#define EDR_CAL_TOWER_LAYERMAP_JUSTIFY | ( | _layerMap | ) | ((_layerMap) << 16) |
Left justifies the layerMap field found in the EDR_calTower structure so that it can be used with the FFS function.
_layerMap | The layer map to justify |
#define EDR_CAL_TWRMAP | ( | _twrNum | ) | (EDR_CAL_TWRMAP_INIT >> (_twrNum)) |
Constructs the appropriate bit mask for the twrMap field in the EDR_cal structure.
_twrNum | The tower number |
#define EDR_CAL_TWRMAP_INIT 0x80000000 |
Initial value of the tower map, i.e. for position of tower 0 bit.
#define EDR_CAL_TWRMAP_JUSTIFY | ( | _twrMap | ) | ((_twrMap)) |
Left justifies the twrMap field found in the EDR_cal structure so that it can be used with the FFS function.
_twrMap | The tower map to justify |
Typedef for enum _EDR_CAL_VALID_M.
This enumerates which sections of the EDR_cal data are valid. An unpacker may, for efficiency reasons, chose to unpack only the portion of the data it needs at a given time. Any consumer of the data should either check that the data he is accessing is valid, or ask that it be unpacked. The unpacker is free to consult the validity word and, if the request has already been satisfied, merely return. This tactic allows multiple users to call the unpacker on the same event without the unpacker actually multiply unpacking the event
Typedef for enum _EDR_CAL_VALID_V.
This enumerates which sections of the EDR_cal data are valid. An unpacker may, for efficiency reasons, chose to unpack only the portion of the data it needs at a given time. Any consumer of the data should either check that the data he is accessing is valid, or ask that it be unpacked. The unpacker is free to consult the validity word and, if the request has already been satisfied, merely return. This tactic allows multiple users to call the unpacker on the same event without the unpacker actually multiply unpacking the event
Abstract typedef for a CAL column map.
Typedef for struct _EDR_calTower.
const EDR_calColumnMap *colMapP = ctr->colMap; const int *layerEnergyP = ctl->energy; while (layerMap) { layerNum = ffs (layerMap); colMap = *colMapP++; while (colMap) { colNum = ffs (colMap); .
enum _EDR_CAL_VALID_M |
enum _EDR_CAL_VALID_V |