GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / dev > reg_parser / rhel4-32
#include <LATC/LATC_msgs.h>
#include <cptDetail_p.h>
#include <lString_p.h>
#include <PBS/MBA.h>
#include <MSG/MSG_pubdefs.h>
#include <stdlib.h>
#include <string.h>
Functions | |
CptDetail * | newCptDetail (void) |
Allocate and initialize a CptDetail structure. | |
void | deleteCptDetail (void *ptr) |
Free a CptDetail structure and its lists. | |
void | scpt_cptDetail (CptDetail *cd, const char *name, unsigned regWidth, unsigned multi) |
Populate the structure holding details of the current component. | |
void | sreg_cptDetail (CptDetail *cd, const char *regName) |
Add strings to the lists of children of the component. | |
void | sfld_cptDetail (CptDetail *cd) |
NO_OP. | |
void | ereg_cptDetail (CptDetail *cd, unsigned regId, unsigned nFld, const char *regName) |
Add field to the list of registers. | |
void | ecpt_cptDetail (CptDetail *cd, CptDetail *parent) |
Finish off any lists in the component. |
void deleteCptDetail | ( | void * | ptr | ) |
Free a CptDetail structure and its lists.
ptr | To structure to delete |
References CptDetail::children, CptDetail::cptChildren, CptDetail::dtd, CptDetail::mapdtd, CptDetail::name, CptDetail::regs, and CptDetail::tag.
Referenced by ecpt_regState(), and fini_regState().
Finish off any lists in the component.
cd | Structure holding details of the current component | |
parent | Pointer to parent CptDetail |
References CptDetail::children, CptDetail::cptChildren, CptDetail::dtd, CptDetail::mapdtd, CptDetail::multi, CptDetail::name, and newlString().
Referenced by ecpt_regState().
void ereg_cptDetail | ( | CptDetail * | cd, | |
unsigned | regId, | |||
unsigned | nFld, | |||
const char * | regName | |||
) |
Add field to the list of registers.
cd | Pointer to the structure containing details of the current component | |
regId | Register ID | |
nFld | Number of fields in the register | |
regName | Register name |
References CptDetail::name, newlString(), and CptDetail::regs.
Referenced by ereg_regState().
CptDetail* newCptDetail | ( | void | ) |
Allocate and initialize a CptDetail structure.
References CptDetail::children, CptDetail::cptChildren, CptDetail::dtd, CptDetail::dtdCount, CptDetail::mapdtd, CptDetail::name, CptDetail::nReg, CptDetail::regEnums, CptDetail::regs, and CptDetail::tag.
Referenced by scpt_regState().
void scpt_cptDetail | ( | CptDetail * | cd, | |
const char * | name, | |||
unsigned | regWidth, | |||
unsigned | multi | |||
) |
Populate the structure holding details of the current component.
cd | Structure holding details of the current component | |
name | Name of the component | |
regWidth | Width (in bits) of the registers of this component | |
multi | 1 indicates that there can be multiple instances of this component (contained by the same parent) 0 indicates otherwise |
References CptDetail::children, CptDetail::cptChildren, CptDetail::mapTag, CptDetail::multi, CptDetail::name, newlString(), newString(), CptDetail::regs, CptDetail::regWidth, and CptDetail::tag.
Referenced by scpt_regState().
void sfld_cptDetail | ( | CptDetail * | cd | ) |
NO_OP.
cd | Pointer to the structure containing details of the current component |
Referenced by sfld_regState().
void sreg_cptDetail | ( | CptDetail * | cd, | |
const char * | regName | |||
) |
Add strings to the lists of children of the component.
cd | Pointer to the structure containing details of the current component | |
regName | String identifying the current register |
References CptDetail::children, CptDetail::name, newlString(), CptDetail::nReg, and CptDetail::regEnums.
Referenced by sreg_regState().