GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIH / V0-2-0

Constituent: lih_test     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LIH_prvdefs.h File Reference

Private definitions for the LIH hardware moitoring facility. More...

#include "CDM/CDM_pubdefs.h"
#include "IMM/FPM_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "ITC/ITC_apidefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LCBD/LCBD_cr.h"
#include "LIH_DB/LIH_DB_ADCdefs.h"
#include "LIH_DB/LIH_DB_pubdefs.h"
#include "LIH_DB/LIH_DB_schema.h"
#include "LSF/LSF_ids.h"
#include "PBS/FORK.h"
#include "PBS/FPA.h"
#include "PBS/MTX.h"
#include "PBS/RW.ih"
#include "PBS/WUT.h"

Include dependency graph for LIH_prvdefs.h:

This graph shows which files directly or indirectly include this file:


Data Structures

struct  _LIH_Device
 Storage to capture a device's acquisition methods/cycle count. More...
struct  _LIH_LimitHeader
 Structure to save telemetry meta-information on limit table dumps. More...
struct  _LIH_LimitSave
 Structure to save limit checking variables cycle to cycle. More...
struct  _LIH_Message
 Structure of a fork message to tickle the hardware monitoring task. More...
struct  _LIH_Packet
 Structure of a generic hardware monitoring housekeeping packet. More...
struct  _LIH_Put
 Mapping from hardware ADC to placement in hardware packet database. More...
struct  _LIH_Source
 Structure to ADC enumeration to hardware source. More...
struct  _LIH_Database
 Packet database. Acquisition fills it, housekeeping copies from it. More...
struct  _LIH_Control
 Structure of trace control block. More...

Defines

#define LIH_LSF_DGM_TYP_LIMITS   (0)
#define LIH_LSF_DGM_VER_LIMITS   (0)
#define LIH_M_REG_UNREAD   (0x80000000)
#define LIH_K_ADC_VALUE   (12)
#define LIH_K_ADC_SETTLE   (1)
#define LIH_K_ADC_STATE   (3)
#define LIH_V_ADC_VALUE   ( 0 )
#define LIH_V_ADC_SETTLE   (LIH_V_ADC_VALUE + LIH_K_ADC_VALUE )
#define LIH_V_ADC_STATE   (LIH_V_ADC_SETTLE + LIH_K_ADC_SETTLE)
#define LIH_M_ADC_VALUE   (((1 << LIH_K_ADC_VALUE ) - 1) << LIH_V_ADC_VALUE )
#define LIH_M_ADC_SETTLE   (((1 << LIH_K_ADC_SETTLE) - 1) << LIH_V_ADC_SETTLE)
#define LIH_M_ADC_STATE   (((1 << LIH_K_ADC_STATE ) - 1) << LIH_V_ADC_STATE )
#define LIH_K_PRM_HDRSIZ   (6)
#define LIH_K_TLM_HDRSIZ   (14)
#define LIH_L_ALERT   (16)
#define LIH_L_DIAGNOSTIC   (32)
#define LIH_L_PACKET   (23)
#define LIH_L_ADC_PER_PKT   (50)
#define LIH_L_DEVICE   (4)
 Total number "devices" (TEM, PDU, AEM, PIG).
#define LIH_L_POWER   (7)
 Enumeration of registers containing power switches.

Typedefs

typedef _LIH_Control LIH_Control
 Typedef for struct _LIH_Control.
typedef enum _LIH_DumpRequestSource LIH_DumpRequestSource
 Typedef for enum _LIH_DumpRequestSource.
typedef enum _LIH_ControlState LIH_ControlState
 Typedef for enum _LIH_ControlState.
typedef enum _LIH_DeviceList LIH_DeviceList
 Typedef for enum _LIH_DeviceList.
typedef enum _LIH_PowerList LIH_PowerList
 Typedef for enum _LIH_PowerList.
typedef enum _LIH_SettleState LIH_SettleState
 Typedef for enum _LIH_SettleState.
typedef void LIH_cb_Acquire (LIH_Control *hcb, void *prm, unsigned int minor)
 Signature for an LIH device acquisition driver routine.
typedef _LIH_Device LIH_Device
 Typedef for struct _LIH_Device.
typedef _LIH_LimitHeader LIH_LimitHeader
 Typedef for struct _LIH_LimitHeader.
typedef _LIH_LimitSave LIH_LimitSave
 Typedef for struct _LIH_LimitSave.
typedef _LIH_Message LIH_Message
 Typedef for struct _LIH_Message.
typedef _LIH_Packet LIH_Packet
 Typedef for struct _LIH_Packet.
typedef _LIH_Put LIH_Put
 Typedef for struct _LIH_Put.
typedef _LIH_Source LIH_Source
 Typedef for struct _LIH_Source.
typedef _LIH_Database LIH_Database
 Typedef for struct _LIH_Database.

Enumerations

enum  _LIH_DumpRequestSource {
  LIH_K_SRC_COMMAND = 0,
  LIH_K_SRC_INTERNAL = 1
}
 Enumeration of hardware moitoring facility states. More...
enum  _LIH_ControlState {
  LIH_CTL_UNINITIALIZED = 0,
  LIH_CTL_BROKEN = 1,
  LIH_CTL_INITIALIZED = 2,
  LIH_CTL_STARTING = 3,
  LIH_CTL_STARTED = 4
}
 Enumeration of hardware moitoring facility states. More...
enum  _LIH_DeviceList {
  LIH_K_DVC_TEM = 0,
  LIH_K_DVC_PDU = 1,
  LIH_K_DVC_AEM = 2,
  LIH_K_DVC_PIG = 3
}
 Enumeration of hardware devices. More...
enum  _LIH_PowerList {
  LIH_PDU0_P_EPU = -1,
  LIH_PDU0_P_TEM = -2,
  LIH_PDU0_P_ACD = -3,
  LIH_PDU1_P_EPU = -4,
  LIH_PDU1_P_TEM = -5,
  LIH_PDU1_P_ACD = -6,
  LIH_ACD_P_FREE = -7
}
 Enumeration of power switch registers. More...
enum  _LIH_SettleState {
  LIH_K_SETTLE_STABLE = 0,
  LIH_K_SETTLE_SETTLING = 1,
  LIH_K_SETTLE_UNSTABLE = 2
}
 Enumeration of ADC transition settling states. More...

Functions

unsigned int LIH_AEMinit (LIH_Control *hcb, LIH_cb_Acquire *acq, void **prm, unsigned int *minor)
unsigned int LIH_defineCmdCnt (void)
unsigned int LIH_defineCtdbCounts (void)
unsigned int LIH_defineGasuCounts (void)
unsigned int LIH_defineLatcStatus (void)
unsigned int LIH_defineLimStatus (void)
unsigned int LIH_defineLtcData (void)
unsigned int LIH_defineMiscSlow (void)
unsigned int LIH_defineTopCpu (void)
unsigned int LIH_limitAble (unsigned int able)
unsigned int LIH_limitAction (LIH_DB_ADC adx, LIH_DB_ADCState prv, LIH_DB_ADCState cur, int alert, int diag, int msg)
unsigned int LIH_limitCheck (LIH_Control *hcb, unsigned int adx, unsigned short *val, WCT_time tim, WCT_time_sat_u sat)
unsigned int LIH_limitCheckCDM (LIH_DB_Schema *ldb)
void LIH_limitExternalDefault (LIH_Control *hcb, LIH_DB_Schema *ldb)
void LIH_limitExternalTable (LIH_Control *hcb, LIH_DB_Schema *ldb)
void LIH_limitInternalDefault (LIH_Control *hcb)
unsigned int LIH_limitLimit (LIH_DB_ADC adx, const signed short limit[LIH_DB_L_LIMIT])
unsigned int LIH_limitNag (LIH_DB_ADC adx, LIH_DB_ADCState state, unsigned int delta)
unsigned int LIH_limitPersist (LIH_DB_ADC adx, unsigned int persist)
unsigned int LIH_limitSendAdc (LIH_DB_ADC adx)
unsigned int LIH_limitSendAll (unsigned int reason, unsigned int source, unsigned int ident)
unsigned int LIH_limitSettle (LIH_DB_ADC adx, unsigned int settle)
unsigned int LIH_PDUinit (LIH_Control *hcb, LIH_cb_Acquire *acq, void **prm, unsigned int *minor)
unsigned int LIH_PIGinit (LIH_Control *hcb, LIH_cb_Acquire *acq, void **prm, unsigned int *minor)
unsigned int LIH_TEMinit (LIH_Control *hcb, LIH_cb_Acquire *acq, void **prm, unsigned int *minor)

Variables

const LIH_Source LIH_Adc2source [LIH_DB_L_ADC]
const char LIH_Adc2string []
unsigned int LIH_aidx2hpk [ITC_L_APID_HOUSE]
LIH_ControlLIH_hcb
const LIH_DB_ADC LIH_hpk2ADC [LIH_L_PACKET][LIH_L_ADC_PER_PKT]
const unsigned int LIH_hpk2aidx [LIH_L_PACKET]
const LIH_Source LIH_pwr2source [LIH_L_POWER]

Detailed Description

Private definitions for the LIH hardware moitoring facility.

CVS $Id: LIH_prvdefs.h,v 1.4 2008/08/28 21:02:58 apw Exp $
Author:
A.P.Waite

Enumeration Type Documentation

enum _LIH_ControlState
 

Enumeration of hardware moitoring facility states.

Enumerator:
LIH_CTL_UNINITIALIZED  Uninitialized
LIH_CTL_BROKEN  Fatal error
LIH_CTL_INITIALIZED  Initialized
LIH_CTL_STARTING  Starting
LIH_CTL_STARTED  Started

enum _LIH_DeviceList
 

Enumeration of hardware devices.

Enumerator:
LIH_K_DVC_TEM  Tower electronics module
LIH_K_DVC_PDU  Power distribution unit
LIH_K_DVC_AEM  ADC electronics module
LIH_K_DVC_PIG  Really CRU/EBM pieces of GASU

enum _LIH_DumpRequestSource
 

Enumeration of hardware moitoring facility states.

Enumerator:
LIH_K_SRC_COMMAND  Dump initiated by command
LIH_K_SRC_INTERNAL  Dump initiated internally

enum _LIH_PowerList
 

Enumeration of power switch registers.

Enumerator:
LIH_PDU0_P_EPU  PDU 0 EPU power switch register
LIH_PDU0_P_TEM  PDU 0 TEM power switch register
LIH_PDU0_P_ACD  PDU 0 AEM power switch register
LIH_PDU1_P_EPU  PDU 1 EPU power switch register
LIH_PDU1_P_TEM  PDU 1 TEM power switch register
LIH_PDU1_P_ACD  PDU 1 AEM power switch register
LIH_ACD_P_FREE  AEM FREE power switch register

enum _LIH_SettleState
 

Enumeration of ADC transition settling states.

Enumerator:
LIH_K_SETTLE_STABLE  Transition completed successfully
LIH_K_SETTLE_SETTLING  Transition still in progress
LIH_K_SETTLE_UNSTABLE  Transition failed to converge


Generated on Fri Aug 29 01:57:55 2008 by  doxygen 1.4.4