GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIH / V0-2-0
Constituent: lih     Tag: sun-gcc
#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "CDM/CDM_pubdefs.h"
#include "LIH_DB/LIH_DB_ADCdefs.h"
#include "LIH_DB/LIH_DB_schema.h"
#include "LSF/LSF.h"
#include "LSF/LSF_ids.h"
#include "MDB/MDB_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/RW.ih"
#include "ZLIB/zlib.h"
#include "LIH/LIH_msgs.h"
#include "LIH/LIH_tlmdefs.h"
#include "LIH_prvdefs.h"
Include dependency graph for LIH_limit.c:
Functions | |
static void | sendCTDB_cb (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2, unsigned int tx) |
Clean up after sending an alert message. | |
static void | sendSDI_cb (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2, unsigned int tx) |
Clean up after sending a trace snapshot to the SDI. | |
static void * | zlibAlloc (void *prm, unsigned int cnt, unsigned int siz) |
Allocate memory for ZLIB. | |
static void | zlibFree (void *prm, void *add) |
Free memory for ZLIB. | |
static __inline unsigned int | isInvalid (const LIH_DB_Limit *adc) |
Check an ADC limit set. | |
unsigned int | LIH_limitAble (unsigned int able) |
Enable/disable taking actions on the basis of ADC states. | |
unsigned int | LIH_limitAction (LIH_DB_ADC adx, LIH_DB_ADCState prv, LIH_DB_ADCState cur, int alert, int diag, int msg) |
Change nag time for an ADC/state. | |
unsigned int | LIH_limitCheck (LIH_Control *hcb, unsigned int adx, unsigned short *val, WCT_time tim, WCT_time_sat_u sat) |
Test ADC limits and take requested action. | |
unsigned int | LIH_limitCheckCDM (LIH_DB_Schema *ldb) |
Check the contents of an LIH CDM database. | |
void | LIH_limitExternalDefault (LIH_Control *hcb, LIH_DB_Schema *ldb) |
Use an external default limit set to initialize the limit table. | |
void | LIH_limitExternalTable (LIH_Control *hcb, LIH_DB_Schema *ldb) |
Use an external default limit set to initialize the limit table. | |
void | LIH_limitInternalDefault (LIH_Control *hcb) |
Use internal defaults to initialize the limit table. | |
unsigned int | LIH_limitLimit (LIH_DB_ADC adx, const signed short limit[LIH_DB_L_LIMIT]) |
Set the limit boundaries for monitoring an ADC. | |
unsigned int | LIH_limitNag (LIH_DB_ADC adx, LIH_DB_ADCState state, unsigned int delta) |
Change nag time for an ADC/state. | |
unsigned int | LIH_limitPersist (LIH_DB_ADC adx, unsigned int persist) |
Change persistence time for an ADC. | |
unsigned int | LIH_limitSendAdc (LIH_DB_ADC adx) |
Send the limit set for an ADC via diagnostic telemetry. | |
unsigned int | LIH_limitSendAll (unsigned int reason, unsigned int source, unsigned int ident) |
Test ADC limits and take requested action. | |
unsigned int | LIH_limitSettle (LIH_DB_ADC adx, unsigned int settle) |
Limit the time an ADC state has to settle. | |
Variables | |
static const char * | LIH_AdcStateString [LIH_DB_L_ADC_STATE] |
String constants for the various ADC limit states. | |
static const char * | s_able [2] = { "disabled", "enabled" } |
Strings used in enable/disable error reporting. | |
static const char * | s_pktType [2] = { "an alert", "a diagnostic" } |
Strings used in telemetry error reporting. |
CVS $Id: LIH_limit.c,v 1.4 2008/08/28 21:02:57 apw Exp $
|
Check an ADC limit set.
|
|
Enable/disable taking actions on the basis of ADC states.
|
|
Change nag time for an ADC/state.
|
|
Test ADC limits and take requested action.
|
|
Check the contents of an LIH CDM database.
|
|
Use an external default limit set to initialize the limit table.
|
|
Use an external default limit set to initialize the limit table.
|
|
Use internal defaults to initialize the limit table.
|
|
Set the limit boundaries for monitoring an ADC.
|
|
Change nag time for an ADC/state.
|
|
Change persistence time for an ADC.
|
|
Send the limit set for an ADC via diagnostic telemetry.
|
|
Test ADC limits and take requested action.
|
|
Limit the time an ADC state has to settle.
|
|
Clean up after sending an alert message.
|
|
Clean up after sending a trace snapshot to the SDI.
|
|
Allocate memory for ZLIB.
|
|
Free memory for ZLIB.
|
|
Initial value: { "unread", "red low", "yellow low", "green", "yellow high", "red high", "unphysical", "unstable" }
|