GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / dev > latc_cmn / rhel4-32
#include <LATC/LATC_msgs.h>
#include <consume.h>
#include <data.h>
#include <fi_p.h>
#include <descriptions.ic>
#include <number.ic>
#include <FBS/FBS_pubrtos.h>
#include <MSG/MSG_pubdefs.h>
#include <LEM/msg_macros.h>
#include <fcntl.h>
#include <unistd.h>
Functions | |
static unsigned | consumeNormalFile (File *fp, LATC_imm *imm, LATC_type type) |
Reads a file of mapped data blocks into the LATC structure. | |
static unsigned | consumeDefaultFile (File *fp, LATC_imm *imm) |
Reads a file containing default data (no map) into the LATC structure. | |
static unsigned | consumeAEMFile (File *fp, LATC_imm *imm) |
Reads a file containing AEM data (no map). | |
static unsigned | consumeGEMFile (File *fp, LATC_imm *imm) |
Reads a file containing GEM data (no map). | |
unsigned | LATC_consumeMap (LATC_map *map, unsigned fid, unsigned *key) |
Read map data into the map structure. | |
unsigned | LATC_consume (LATC_imm *imm, unsigned lcm, unsigned *key) |
Reads a configuration, as described by the configuration master file cfgName, into the latc structure. | |
Variables | |
static const LATC_type | GEM_type [] = {LATC_TAM, LATC_ROI, LATC_TIE, LATC_SCH, -1} |
List of component types that make up the GEM configuration The GEM configuration is made up of several component types. This list is used to collect the data from these components into one file. |
unsigned consumeAEMFile | ( | File * | fp, | |
LATC_imm * | imm | |||
) | [inline, static] |
Reads a file containing AEM data (no map).
fp | File pointer | |
imm | Pointer to structure to populate with data from the configuration file |
References file_read(), and sizeofCpt().
Referenced by LATC_consume().
unsigned consumeDefaultFile | ( | File * | fp, | |
LATC_imm * | imm | |||
) | [inline, static] |
Reads a file containing default data (no map) into the LATC structure.
fp | File pointer | |
imm | Pointer to structure to populate with data from the configuration file |
References file_read(), and sizeofCpt().
Referenced by LATC_consume().
unsigned consumeGEMFile | ( | File * | fp, | |
LATC_imm * | imm | |||
) | [inline, static] |
Reads a file containing GEM data (no map).
fp | File pointer | |
imm | Pointer to structure to populate with data from the configuration file |
References file_read(), GEM_type, and sizeofCpt().
Referenced by LATC_consume().
Reads a file of mapped data blocks into the LATC structure.
imm | Pointer to the structure to populate with data from the configuration file | |
fp | File pointer | |
type | The file type |
References checkBit(), file_read(), MAX_MAP, setBit(), sizeofCpt(), and sizeofMap().
Referenced by LATC_consume().
unsigned LATC_consume | ( | LATC_imm * | imm, | |
unsigned | lcm, | |||
unsigned * | key | |||
) |
Reads a configuration, as described by the configuration master file cfgName, into the latc structure.
imm | Pointer to the IMM to repopulate with the configuration information | |
lcm | File ID of the LAT configuration master file | |
key | Pointer to location to place the key of file lcm |
LATC_SUCCESS | if all goes well | |
LATC_BADFOPEN | if the fid, or any of the names the configuration master file contains, does not match a valid file. | |
LATC_BADTYPE | if the file contains a bad type identifier | |
LATC_BADREAD | if an error occures whilst the file is being read |
References consumeAEMFile(), consumeDefaultFile(), consumeGEMFile(), consumeNormalFile(), file_close(), file_open(), and file_read().
unsigned LATC_consumeMap | ( | LATC_map * | map, | |
unsigned | fid, | |||
unsigned * | key | |||
) |
Read map data into the map structure.
map | Map structure to populate from file | |
fid | ID of the file containing the data to use | |
key | Pointer to location to place the key of file fid |
LATC_SUCCESS | if all goes well | |
LATC_BADFOPEN | if the fid, or any of the names the configuration master file contains, does not match a valid file. | |
LATC_BADREAD | if an error occures whilst the file is being read |
References file_close(), file_key(), file_open(), file_read(), and sizeofMap().