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 "RIM/RIM.h"
#include "RIM/RIM_msgs.h"
#include "PBS/MBA.h"
#include "PBS/WCT.h"
#include "MSG/MSG_pubdefs.h"
#include "LEM/list.h"
#include "LEM/defs.h"
#include <string.h>
Include dependency graph for LCFG_lcfg.c:
Data Structures | |
struct | LCFG_controller |
Structure used by LCFG to perform its duties. More... | |
Functions | |
unsigned | LCFG_initialise (void) |
Allocate the resources required for LCFG. | |
unsigned | LCFG_teardown (void) |
Release the resources acquired by LCFG_initialise. | |
unsigned | LCFG_cache (unsigned fid) |
Read a LAT configuration. | |
unsigned | LCFG_configure (LCFG_source source, unsigned runId) |
Configure the LAT using the currently cached configuration. | |
unsigned | LCFG_verify (LCFG_source source, unsigned runId) |
Verify that the captured configuration of the LAT matches the in-memory cache. | |
unsigned | LCFG_capture (void) |
Read the registers of the LAT. | |
unsigned | LCFG_consign (unsigned dst) |
Write out the captured data to the SSR. | |
unsigned | LCFG_ignore (unsigned fid) |
Read the ignore map from the file identified by fid. | |
unsigned | LCFG_getCacheKey (void) |
Return the file key identifying the last cached configuration. | |
unsigned | LCFG_getConfigureKey (void) |
Return the file key identifying the last configuration loaded. | |
unsigned | LCFG_getIgnoreKey (void) |
Return the file key identifying the ignore map. | |
unsigned | LCFG_loadAfeConfig (unsigned int mask, unsigned int value0, unsigned int value1, unsigned int rcMask, unsigned int feMask) |
Load the AFE configuration register. | |
unsigned | LCFG_loadCfeConfig0 (unsigned int mask, unsigned int value) |
Load CFE configuration register 0. | |
unsigned | LCFG_loadCfeConfig1 (unsigned int mask, unsigned int value0, unsigned int value1, unsigned int cMask) |
Load CFE configuration register 1. | |
unsigned | LCFG_loadTkrSplits (int nLow, int nHigh) |
Load TKR split values. | |
unsigned | LCFG_loadTfeDac (unsigned int mask, unsigned int value, int nLow, int nHigh) |
Load the TFE DAC register. | |
unsigned | LCFG_enableTriggers (int marker) |
Enable triggers. | |
unsigned | LCFG_disableTriggers (int marker) |
Disable triggers. | |
unsigned | LCFG_getHskInfo (LCFG_hsk *info) |
Get LAT configuration housekeeping information. | |
unsigned | LCFG_sizeofHskInfo (void) |
Get the size of the LAT configuration housekeeping information. | |
unsigned | LCFG_setDirty (void) |
Set the LCFG "dirty" flag. | |
Variables | |
static LCFG_controller * | lcfg = NULL |
Pointer to the LCFG controller structure. |
|
Read a LAT configuration.
|
|
Read the registers of the LAT.
|
|
Configure the LAT using the currently cached configuration.
|
|
Write out the captured data to the SSR.
|
|
Disable triggers. The window open mask is cleared. If the marker parameter is non-zero, the LAT is first configured to broadcast a trigger message to CPUs upon receipt of a solicited trigger, a solicited trigger is fired, and the configuration restored from the LCFG cache.
|
|
Enable triggers. The window open mask is loaded with the value held in the cache. If the marker parameter is non-zero, the LAT is first configured to broadcast a trigger message to CPUs upon receipt of a solicited trigger, a solicited trigger is fired, and the configuration restored from the LCFG cache.
|
|
Return the file key identifying the last cached configuration.
|
|
Return the file key identifying the last configuration loaded.
|
|
Get LAT configuration housekeeping information. LAT configuration housekeeping information is copied to the supplied area.
|
|
Return the file key identifying the ignore map.
|
|
Read the ignore map from the file identified by fid.
|
|
Allocate the resources required for LCFG.
|
|
Load the AFE configuration register. The AFE configuration register is loaded with a modified version of the value from the LAT configuration, with the specified bits replaced.
|
|
Load CFE configuration register 0. CFE configuration register 0 is loaded with a modified version of the value from the LAT configuration, with the specified bits replaced.
|
|
Load CFE configuration register 1. CFE configuration register 1 is loaded with a modified version of the value from the LAT configuration, with the specified bits replaced.
|
|
Load the TFE DAC register. The TFE DAC register is loaded with a modified version of the value from the LAT configuration, with the specified bits replaced.
|
|
Load TKR split values. The tracker RC and FE registers are loaded to reflect the given split values.
|
|
Set the LCFG "dirty" flag. This routine is used to indicate that a register whose value is normally managed by LCFG has had its value changed externally, e.g. by LRA.
|
|
Get the size of the LAT configuration housekeeping information. The size of the LAT configuration housekeeping information block is returned.
|
|
Release the resources acquired by LCFG_initialise.
|
|
Verify that the captured configuration of the LAT matches the in-memory cache.
|