GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCFG / V1-2-3
Constituent: lcfg     Tag: mv2304
#include "LCFG_p.h"
#include "LCFG/LCFG.h"
#include "LCFG/LCFG_msgs.h"
#include "MSG/MSG_pubdefs.h"
#include "LEM/msg_macros.h"
#include "LEM/decode.h"
#include "LEM/encode.h"
#include "LEM/list.h"
#include "PBS/MBA.h"
Include dependency graph for LCFG_lem.c:
Functions | |
static unsigned | loadGEM (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a GEM controller register. | |
static unsigned | readGEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadWIN (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a GEM window register. | |
static unsigned | readWIN (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTAM (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a GEM TAM generator register. | |
static unsigned | readTAM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadSCH (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a GEM scheduler register. | |
static unsigned | readSCH (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadROI (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a GEM region-of-interest register. | |
static unsigned | readROI (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTIE (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a GEM input enable register. | |
static unsigned | readTIE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadAEM (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load an AEM controller register. | |
static unsigned | readAEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadARC (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load an ARC register. | |
static unsigned | readARC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadAFE (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load an AFE register. | |
static unsigned | readAFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTEM (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a TEM register. | |
static unsigned | readTEM (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTIC (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a TIC register. | |
static unsigned | readTIC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadCCC (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a CCC register. | |
static unsigned | readCCC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadCRC (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a CRC register. | |
static unsigned | readCRC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadCFE (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a CFE register. | |
static unsigned | readCFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTCC (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a TCC register. | |
static unsigned | readTCC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTRC (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a TRC register. | |
static unsigned | readTRC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTFE (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load a TFE register. | |
static unsigned | readTFE (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadTDC (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load the TDC psuedo-component register (actually part of the TFE). | |
static unsigned | readTDC (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static unsigned | loadSPT (void *param, const LCFG_addr *addr, unsigned regId, const void *value) |
Load an SPT pseudo-component register (actually does nothing). | |
static unsigned | readSPT (void *param, const RIM_addr *addr, unsigned regId, RIM_decodeFn *decodeFn, void *dst, const RIM_rqstInfo *info) |
static void | decodeGEM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the GEM result item. | |
static void | decodeWIN (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the WIN result item. | |
static void | decodeTAM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the TAM result item. | |
static void | decodeSCH (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the SCH result item. | |
static void | decodeROI (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the ROI result item. | |
static void | decodeTIE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the TIE result item. | |
static void | decodeAEM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the AEM result item. | |
static void | decodeARC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the ARC result item. | |
static void | decodeAFE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the AFE result item. | |
static void | decodeTEM (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the TEM result item. | |
static void | decodeTIC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the TIC result item. | |
static void | decodeCCC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the CCC result item. | |
static void | decodeCRC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the CRC result item. | |
static void | decodeCFE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the CFE result item. | |
static void | decodeTCC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the TCC result item. | |
static void | decodeTRC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the TRC result item. | |
static void | decodeTFE (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the TFE result item. | |
static void | decodeTDC (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode a result item containing the data for a register of the TDC pseudo-component. | |
static void | decodeSPT (unsigned short *pkt, void *ptr, const RIM_rqstInfo *info) |
Decode the SPT pseudo-component result item. | |
static void | modifyBroadcast (LCFG_addr *lem_addr, const LCFG_addr *lcfg_addr) |
Copy a LAT address, modifying any broadcast components. | |
static unsigned | decodeList (LEM_micr *cr) |
Decode the items on a CR list. | |
RIM_loadFn ** | LCFG_newLoad (void) |
Build an array of function pointers associating RIM_type to a function that loads the registers of that type. | |
void | LCFG_deleteLoad (RIM_loadFn **load) |
Free the memory previously allocated using LCFG_newLoad. | |
RIM_readFn ** | LCFG_newRead (void) |
Build an array of function pointers associating RIM_tye to a function that reads the registers of that type. | |
void | LCFG_deleteRead (RIM_readFn **read) |
Free the memory previously allocated using LCFG_newRead. | |
RIM_decodeFn ** | LCFG_newDecode (void) |
Build an array of function pointers associating RIM_type to a function that decodes the payloads. | |
void | LCFG_deleteDecode (RIM_decodeFn **decode) |
Free the memory previously allocated using LCFG_newDecode. | |
unsigned | LCFG_finishLoad (LEM_micr *cr) |
Finish a load operation. | |
unsigned | LCFG_finishRead (LEM_micr *cr) |
Finish a read operation. | |
unsigned | readGEM (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a GEM controller register. | |
unsigned | readWIN (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a GEM window register. | |
unsigned | readSCH (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a GEM scheduler register. | |
unsigned | readTAM (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a GEM TAM generator register. | |
unsigned | readROI (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a GEM region-of-interest register. | |
unsigned | readTIE (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a GEM input enable register. | |
unsigned | readAEM (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read an AEM controller register. | |
unsigned | readARC (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read an ARC register. | |
unsigned | readAFE (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read an AFE register. | |
unsigned | readTEM (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a TEM register. | |
unsigned | readTIC (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a TIC register. | |
unsigned | readCCC (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a CCC register. | |
unsigned | readCRC (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a CRC register. | |
unsigned | readCFE (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a CFE register. | |
unsigned | readTCC (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a TCC register. | |
unsigned | readTRC (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a TRC register. | |
unsigned | readTFE (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read a TFE register. | |
unsigned | readTDC (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read the TDC psuedo-component register (actually part of the TFE). | |
unsigned | readSPT (void *param, const LCFG_addr *addr, unsigned regId, RIM_decodeFn dfn, void *dst, const RIM_rqstInfo *info) |
Read an SPT pseudo-component register. |
|
Decode the AEM result item.
|
|
Decode the AFE result item.
|
|
Decode the ARC result item.
|
|
Decode the CCC result item.
|
|
Decode the CFE result item.
|
|
Decode the CRC result item.
|
|
Decode the GEM result item.
|
|
Decode the items on a CR list. This routine iterates through the result items, checks for errors then calls the decode-item function using the result-item payload an decode-item des pointer as parameters
|
|
Decode the ROI result item.
|
|
Decode the SCH result item.
|
|
Decode the SPT pseudo-component result item.
|
|
Decode the TAM result item.
|
|
Decode the TCC result item.
|
|
Decode a result item containing the data for a register of the TDC pseudo-component.
|
|
Decode the TEM result item.
|
|
Decode the TFE result item.
|
|
Decode the TIC result item.
|
|
Decode the TIE result item.
|
|
Decode the TRC result item.
|
|
Decode the WIN result item.
|
|
Free the memory previously allocated using LCFG_newDecode.
|
|
Free the memory previously allocated using LCFG_newLoad.
|
|
Free the memory previously allocated using LCFG_newRead.
|
|
Finish a load operation. The supplied command list is queued and completion is waited for if it has outstanding items on it.
|
|
Finish a read operation. The supplied command list is queued and completion is waited for if it has outstanding items on it.
|
|
Build an array of function pointers associating RIM_type to a function that decodes the payloads.
|
|
Build an array of function pointers associating RIM_type to a function that loads the registers of that type.
|
|
Build an array of function pointers associating RIM_tye to a function that reads the registers of that type.
|
|
Load an AEM controller register.
|
|
Load an AFE register.
|
|
Load an ARC register.
|
|
Load a CCC register.
|
|
Load a CFE register.
|
|
Load a CRC register.
|
|
Load a GEM controller register.
|
|
Load a GEM region-of-interest register.
|
|
Load a GEM scheduler register.
|
|
Load an SPT pseudo-component register (actually does nothing).
|
|
Load a GEM TAM generator register.
|
|
Load a TCC register.
|
|
Load the TDC psuedo-component register (actually part of the TFE).
|
|
Load a TEM register.
|
|
Load a TFE register.
|
|
Load a TIC register.
|
|
Load a GEM input enable register.
|
|
Load a TRC register.
|
|
Load a GEM window register.
|
|
Copy a LAT address, modifying any broadcast components. A LCFG address is copied and any broadcast components are changed from the LCFG value to the standard LEM value.
|
|
Read an AEM controller register.
|
|
Read an AFE register.
|
|
Read an ARC register.
|
|
Read a CCC register.
|
|
Read a CFE register.
|
|
Read a CRC register.
|
|
Read a GEM controller register.
|
|
Read a GEM region-of-interest register.
|
|
Read a GEM scheduler register.
|
|
Read an SPT pseudo-component register.
|
|
Read a GEM TAM generator register.
|
|
Read a TCC register.
|
|
Read the TDC psuedo-component register (actually part of the TFE).
|
|
Read a TEM register.
|
|
Read a TFE register.
|
|
Read a TIC register.
|
|
Read a GEM input enable register.
|
|
Read a TRC register.
|
|
Read a GEM window register.
|