GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LRA / V5-2-0 > test_lra / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LRA.h File Reference

Public definitions for the register access routines. More...

#include "PBS/WCT.h"

Classes

struct  _LRA_regSpec
 Structure to specify a register, or set of registers. More...
struct  _LRA_blkDesc
 Structure for register block descriptor. More...
struct  _LRA_cmptDesc
 Structure for component descriptor. More...
struct  _LRA_regData
 Structure to hold returned register data. More...
struct  _LRA_esrData
 Structure to hold returned error and status register data. More...
struct  _LRA_cmdStats
 Structure to hold command statistics. More...
struct  _LRA_rcvStats
 Structure to hold receive statistics. More...
struct  _LRA_trcvStats
 Structure to hold TEM receive statistics. More...
struct  _LRA_xmtStats
 Structure to hold transmit/response statistics. More...
struct  _LRA_aemTrgStats
 Structure to hold AEM trigger statistics. More...
struct  _LRA_arcErrStats
 Structure to hold ARC event error statistics. More...
struct  _LRA_fifoStats
 Structure to hold CC FIFO statistics. More...
struct  _LRA_cntrStats
 Structure to hold simple counter statistics. More...
struct  _LRA_gemStats
 Structure to hold GEM statistics. More...
struct  _LRA_cruStats
 Structure to hold CRU statistics. More...
struct  _LRA_pduStats
 Structure to hold PDU statistics. More...
struct  _LRA_ebmStats
 Structure to hold EBM statistics. More...
struct  _LRA_aemStats
 Structure to hold AEM statistics. More...
struct  _LRA_temStats
 Structure to hold TEM statistics. More...
struct  _LRA_ticStats
 Structure to hold TIC statistics. More...
struct  _LRA_cccStats
 Structure to hold CCC statistics. More...
struct  _LRA_tccStats
 Structure to hold TCC statistics. More...
struct  _LRA_stats
 Structure to hold complete statistics. More...
struct  _LRA_ebmEventStats
 Structure to hold extracted EBM event statistics. More...
struct  _LRA_gemCntrStats
 Structure to hold extracted GEM counter statistics. More...

Typedefs

typedef enum _LRA_misc LRA_misc
 Miscellaneous definitions.
typedef enum
_LRA_component 
LRA_component
 Component identifiers.
typedef enum _LRA_counts LRA_counts
 Conponent counts.
typedef enum
_LRA_statsVersion 
LRA_statsVersion
 Statistics block version.
typedef struct
_LRA_regSpec 
LRA_regSpec
 Structure to specify a register, or set of registers.
typedef struct
_LRA_blkDesc 
LRA_blkDesc
 Structure for register block descriptor.
typedef struct
_LRA_cmptDesc 
LRA_cmptDesc
 Structure for component descriptor.
typedef struct
_LRA_regData 
LRA_regData
 Structure to hold returned register data.
typedef struct
_LRA_esrData 
LRA_esrData
 Structure to hold returned error and status register data.
typedef struct
_LRA_cmdStats 
LRA_cmdStats
 Structure to hold command statistics.
typedef struct
_LRA_rcvStats 
LRA_rcvStats
 Structure to hold receive statistics.
typedef struct
_LRA_trcvStats 
LRA_trcvStats
 Structure to hold TEM receive statistics.
typedef struct
_LRA_xmtStats 
LRA_xmtStats
 Structure to hold transmit/response statistics.
typedef struct
_LRA_aemTrgStats 
LRA_aemTrgStats
 Structure to hold AEM trigger statistics.
typedef struct
_LRA_arcErrStats 
LRA_arcErrStats
 Structure to hold ARC event error statistics.
typedef struct
_LRA_fifoStats 
LRA_fifoStats
 Structure to hold CC FIFO statistics.
typedef struct
_LRA_cntrStats 
LRA_cntrStats
 Structure to hold simple counter statistics.
typedef struct
_LRA_gemStats 
LRA_gemStats
 Structure to hold GEM statistics.
typedef struct
_LRA_cruStats 
LRA_cruStats
 Structure to hold CRU statistics.
typedef struct
_LRA_pduStats 
LRA_pduStats
 Structure to hold PDU statistics.
typedef struct
_LRA_ebmStats 
LRA_ebmStats
 Structure to hold EBM statistics.
typedef struct
_LRA_aemStats 
LRA_aemStats
 Structure to hold AEM statistics.
typedef struct
_LRA_temStats 
LRA_temStats
 Structure to hold TEM statistics.
typedef struct
_LRA_ticStats 
LRA_ticStats
 Structure to hold TIC statistics.
typedef struct
_LRA_cccStats 
LRA_cccStats
 Structure to hold CCC statistics.
typedef struct
_LRA_tccStats 
LRA_tccStats
 Structure to hold TCC statistics.
typedef struct _LRA_stats LRA_stats
 Structure to hold complete statistics.
typedef struct
_LRA_ebmEventStats 
LRA_ebmEventStats
 Structure to hold extracted EBM event statistics.
typedef struct
_LRA_gemCntrStats 
LRA_gemCntrStats
 Structure to hold extracted GEM counter statistics.

Enumerations

enum  _LRA_misc {
  LRA_WILD = 255,
  LRA_ACTIVE = 254
}
 Miscellaneous definitions. More...
enum  _LRA_component {
  LRA_CPT_GEM = 1,
  LRA_CPT_EBM = 2,
  LRA_CPT_PDU0 = 3,
  LRA_CPT_PDU1 = 4,
  LRA_CPT_CRU = 5,
  LRA_CPT_TEM = 6,
  LRA_CPT_TIC = 7,
  LRA_CPT_CCC = 8,
  LRA_CPT_CRC = 9,
  LRA_CPT_CFE = 10,
  LRA_CPT_TCC = 11,
  LRA_CPT_TRC = 12,
  LRA_CPT_TFE = 13,
  LRA_CPT_AEM = 14,
  LRA_CPT_ARC = 15,
  LRA_CPT_AFE = 16,
  LRA_CPT_SIUE = 33,
  LRA_CPT_SIU0 = 34,
  LRA_CPT_SIU1 = 35,
  LRA_CPT_EPU0 = 36,
  LRA_CPT_EPU1 = 37,
  LRA_CPT_EPU2 = 38,
  LRA_CPT_BCST = LRA_WILD
}
 Component identifiers.
enum  _LRA_counts {
  LRA_N_TEM = 16,
  LRA_N_CCC = 4,
  LRA_N_TCC = 8,
  LRA_N_CRC = 4,
  LRA_N_TRC = 9,
  LRA_N_ARC = 12,
  LRA_N_CFE = 12,
  LRA_N_TFE = 24,
  LRA_N_AFE = 18
}
 Conponent counts. More...
enum  _LRA_statsVersion {
  LRA_STATS_MAJOR = 4,
  LRA_STATS_MINOR = 0
}
 Statistics block version. More...

Functions

unsigned LRA_bufSize (const LRA_regSpec *rSpec, unsigned *size)
unsigned LRA_clearStats (void)
unsigned LRA_ctrl (const LRA_regSpec *rSpec)
unsigned LRA_getEbmEventStats (LRA_ebmEventStats *stats)
unsigned LRA_getGemCntrStats (LRA_gemCntrStats *stats)
unsigned LRA_getStats (LRA_stats *stats)
unsigned LRA_initialize (unsigned period, unsigned short tems)
unsigned LRA_lam (unsigned cmpt, unsigned tem)
unsigned LRA_lamLcb (unsigned cmpt, unsigned value, unsigned mask)
unsigned LRA_latReset (void)
unsigned LRA_load (const LRA_regSpec *rSpec, long long *value)
unsigned LRA_lookupBlk (const LRA_cmptDesc *cDesc, const char *bName, int *block)
unsigned LRA_maxBufSize (unsigned *size)
unsigned LRA_read (const LRA_regSpec *rSpec, LRA_regData *data)
unsigned LRA_readEsr (LRA_esrData *esr)
unsigned LRA_send (const LRA_regSpec *rSpec)
unsigned LRA_sendEsr (void)
unsigned LRA_sendStats (void)
unsigned LRA_setStatsPeriod (unsigned period)
unsigned LRA_setTemMask (unsigned short tems)
unsigned LRA_sizeofEbmEventStats (void)
unsigned LRA_sizeofGemCntrStats (void)
unsigned LRA_sizeofStats (void)
unsigned LRA_start (void)
unsigned LRA_startStats (void)
unsigned LRA_stop (void)
unsigned LRA_stopStats (void)
unsigned LRA_terminate (void)


Detailed Description

Public definitions for the register access routines.

Author:
Owen H Saxton
$Id: LRA.h,v 1.15 2009/07/31 22:09:02 saxton Exp $

Enumeration Type Documentation

enum _LRA_counts

Conponent counts.

Enumerator:
LRA_N_TEM  Number of TEMs.
LRA_N_CCC  Number of CAL cable controllers.
LRA_N_TCC  Number of TKR cable controllers.
LRA_N_CRC  Number of CAL readout controllers.
LRA_N_TRC  Number of TKR readout controllers.
LRA_N_ARC  Number of ACD readout controllers.
LRA_N_CFE  Number of CAL front-ends.
LRA_N_TFE  Number of TKR front-ends.
LRA_N_AFE  Number of ACD front-ends.

enum _LRA_misc

Miscellaneous definitions.

Enumerator:
LRA_WILD  General purpose wild-card value.
LRA_ACTIVE  TEM or ARC specifier, active only.

enum _LRA_statsVersion

Statistics block version.

Enumerator:
LRA_STATS_MAJOR  Major version number.
LRA_STATS_MINOR  Minor version number.


Generated on Fri Jul 31 15:36:02 2009 by  doxygen 1.5.3