GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QEMP / V1-1-3

Constituent: qemp     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QASC.h File Reference

Interface to the ACD Software Counters. More...

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


Functions

QEMP_status QASC_expand (QASC *qasc, const LSF_contribution *ctb)
 Routine to check integrity and swap/uncompress input data into a 2nd buffer.
const QASC_tileHistogramQASC_tileHistogramLocate (const QASC *qasc, unsigned int index)
 Returns a pointer to the specified tile histogram.
const QASC_summaryQASC_summaryLocate (const QASC *qasc)
 Get a pointer to the QASC summary structure.
const QASC_cnoHistogramQASC_cnoHistogramLocate (const QASC *qasc, unsigned int boardPair)
 Returns a pointer to the requested CNO histogram.
const QASC_statsQASC_statsLocate (const QASC *qasc)
 Get a pointer to the QASC performance monitoring statistics.
const QEMP_hdrQASC_qempHdrLocate (const QASC *qasc)
 Get pointer to QEMP_hdr structure.
int QASC_idxGemGet (int list, int channel)
 Maps an ACD GEM list and channel into a universal index.
int QASC_idxAemGet (int board, int channel)
 Maps an ACD AEM board number and channel into a universal index.

Detailed Description

Interface to the ACD Software Counters.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QASC.h,v 1.2 2006/10/21 00:29:59 russell Exp $

Function Documentation

const QASC_cnoHistogram QASC_cnoHistogramLocate const QASC qasc,
unsigned int  board_pair
 

Returns a pointer to the requested CNO histogram.

Return values:
Non-NULL,a pointer to the requested CNO histogram
NULL,the board_pair was not within the range 0-5
Parameters:
qasc The access handle
board_pair board (0-5)

QEMP_STATUS QASC_expand QASC qasc,
const LSF_contribution *  ctb
 

Routine to check integrity and swap/uncompress input data into a 2nd buffer.

Return values:
QEMP_STATUS_SUCCESS,if successful (0)
QEMP_STATUS_CTB_BAD_LEN32,if the contributor length is inconsistent with the data.
QEMP_STATUS_CTB_UNKNOWN_VER,if the encoding/data format version is unknown.
QEMP_STATUS_CTB_INFLATE_FAIL,for compressed formats, indicates the failure to inflate the data
Parameters:
qasc The data access handle to be filled
ctb Input buffer
The check routine does integrity checks on the given LSF contributor packet and then decompress/swaps data into the output buffer. THe size of the output buffer is determined by QEMP_sizeof(). The output buffer can then be used as input with the QASC_xxxxLocate routines.

This routine assumes the contributor has been byte-swapped.

QASC_idxAemGet int  board,
int  channel
 

Maps an ACD AEM board number and channel into a universal index.

Return values:
>=0,The universal index for the specifed ACD AEM board and channel
< 0, Invalid board or channel number
Parameters:
board This is a value between 0 and 11 corresponding to the the 12 AEM FREE board/cable numbers
  • 0 1LA, 1 1RB
  • 2 2LA, 3 2LB
  • 4 2RA, 5 2RB
  • 6 3LA, 7 3RB
  • 8 4LA, 9 4LB
  • 9 4RA, 10 4RB
channel The channel, 0-18, within each FREE board/cable.

QASC_idxGemGet int  list,
int  channel
 

Maps an ACD GEM list and channel into a universal index.

Return values:
>=0,The universal index for the specifed ACD list and channel
< 0, Invalid list or channel number
Parameters:
list This is a value between 0 and 3 corresponding to the 4 words in the GEM record -0 XZ plane -1 YZ plane -2 XY plane -3 RU plane
channel The channel, 0-31, within each list. The bits are numbered from least significant bit to most significant bit

QEMP_hdr QASC_qempHdrLocate const QASC qasc  ) 
 

Get pointer to QEMP_hdr structure.

Return values:
Pointer to the QEMP_hdr structure
Parameters:
qasc Access handle

const QASC_stats QASC_statsLocate const QASC qasc  ) 
 

Get a pointer to the QASC performance monitoring statistics.

Returns:
A pointer to the QASC performance monitoring statistics
Parameters:
qasc The access handle

const QASC_summary QASC_summaryLocate const QASC qasc  ) 
 

Get a pointer to the QASC summary structure.

Returns:
A pointer to the QASC summary structure
Parameters:
qasc The access handle

const QASC_tileHistogram QASC_tileHistogramLocate const QASC qasc,
unsigned int  idx
 

Returns a pointer to the specified tile histogram.

Return values:
Non-NULL,a pointer to the specified histogram
NULL,an invalid index, geo_idx, was specified. This must be in the range 0-128
Parameters:
qasc The access handle
idx The index, set QASC_tileHistogramGeoIdx;


Generated on Fri Apr 18 01:16:37 2008 by  doxygen 1.4.4