GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSSP / V1-1-1 > qssp / linux-gcc
Typedefs | |
typedef enum _QASC_STATUS | QASC_STATUS |
Typedef for enum _QASC_STATUS. | |
Enumerations | |
enum | _QASC_STATUS { QASC_STATUS_SUCCESS = 0, QASC_STATUS_DGM_UNKNOWN_TYPEID = -2, QASC_STATUS_DGM_UNKNOWN_VER = -3, QASC_STATUS_CTB_UNKNOWN_VER = -4, QASC_STATUS_CTB_BAD_LEN32 = -5, QASC_STATUS_CTB_UNKNOWN_TYPEID = -6, QASC_STATUS_CTB_WRONG_TYPEID = -7, QASC_STATUS_CTB_INFLATE_FAIL = -8 } |
Enumerates the varios status codes. More... | |
Functions | |
QASC * | QASC_alloc (void *must_be_null) |
Allocates and constructs a QASC handle. | |
const LSF_contribution * | QASC_updateAtDatagram (QASC *qstd, const LSF_datagram *dgm) |
Updates the context at datagram time. | |
int | QASC_updateAtContribution (QASC *qstd, const LSF_contribution *ctb) |
Updates the context at datagram time. | |
int | QASC_updateAtRecord (QASC *qstd, const LSF_record *rec) |
Updates the context at record time. | |
void | QASC_destruct (QASC *qstd) |
The destructor for a QASC control structure. | |
const QASC_ctx * | QASC_ctxGet (const QASC *qstd) |
Locates the statistics context (meta-data). | |
int | QASC_sizeof (void *must_be_null) |
Return the size, in bytes, of the buffer needed to handle a QASC datagram. | |
QASC * | QASC_construct (QASC *qstd, void *must_be_null) |
The constructor for a QASC control structure. | |
QASC_status | QASC_expand (QASC *qasc, const LSF_contribution *ctb) |
Routine to check integrity and swap/uncompress input data into a 2nd buffer. | |
int | QASC_idxGemGet (int group, int channel) |
Maps an ACD GEM group 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. |
CVS $Id: QASC.h,v 1.1 2008/06/10 22:28:38 russell Exp $
enum _QASC_STATUS |
Enumerates the varios status codes.
QASC * QASC_alloc | ( | void * | must_be_null | ) |
Allocates and constructs a QASC handle.
must_be_null | Reserved for future use. |
References QASC_construct().
The constructor for a QASC control structure.
qasc | The control structure to be constructed. If NULL, a control structure will be allocated | |
must_be_null | Reserved for future use. |
References _QASC_ctx::com, _QASC::ctx, _QASC::cumulative, _QASC_ctx::cumulative, _QASC::free, _QASC_ctx::qasc, qasc_file_cache_get(), QASC_sizeof(), and QSSP_ctxConstruct().
Referenced by QASC_alloc().
Locates the statistics context (meta-data).
qasc | The statistics context |
References _QASC::ctx.
void QASC_destruct | ( | QASC * | qasc | ) |
The destructor for a QASC control structure.
qasc | The control structure to be destructed. |
References _QASC::free.
QASC_STATUS QASC_expand | ( | QASC * | qasc, | |
const LSF_contribution * | ctb | |||
) |
Routine to check integrity and swap/uncompress input data into a 2nd buffer.
QASC_STATUS_SUCCESS,if | successful (0) | |
QASC_STATUS_CTB_BAD_LEN32,if | the contributor length is inconsistent with the data. | |
QASC_STATUS_CTB_UNKNOWN_VER,if | the encoding/data format version is unknown. | |
QASC_STATUS_CTB_INFLATE_FAIL,for | compressed formats, indicates the failure to inflate the data |
qasc | The data access handle to be filled | |
ctb | Input buffer |
This routine assumes the contributor has been byte-swapped.
References add_samples(), _QASC::ctx, _QASC::cumulative, _QASC_ctx::current, expand_gzip0(), expand_raw0(), QASC_STATUS_CTB_UNKNOWN_VER, _QASC::sample, and _QASC_sample::v0.
Referenced by QASC_updateAtContribution().
QASC_idxAemGet | ( | int | board, | |
int | channel | |||
) |
Maps an ACD AEM board number and channel into a universal index.
>=0,The | universal index for the specifed ACD AEM board and channel | |
< | 0, Invalid board or channel number |
board | This is a value between 0 and 11 corresponding to the the 12 AEM FREE board/cable numbers
| |
channel | The channel, 0-18, within each FREE board/cable. |
QASC_idxGemGet | ( | int | group, | |
int | channel | |||
) |
Maps an ACD GEM group and channel into a universal index.
>=0,The | universal index for the specifed ACD group and channel | |
< | 0, Invalid list or channel number |
group | 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 |
int QASC_sizeof | ( | void * | must_be_null | ) |
Return the size, in bytes, of the buffer needed to handle a QASC datagram.
The | size, in bytes, of the buffer needed to handle a QASC datagram |
Referenced by QASC_construct().
int QASC_updateAtContribution | ( | QASC * | qasc, | |
const LSF_contribution * | ctb | |||
) |
Updates the context at datagram time.
If | have a statistics sample contribution, the number of records in the contribution. | |
>0,if | have a record contributor | |
=0,if | have the contribution context | |
-1,if | unrecognized |
qasc | The statistics context to update. | |
ctb | The statistics contribution |
References _QSSP_ctxKeys::cfg, _QSSP_ctxIds::cfg, _QASC_ctx::com, _QASC::ctx, _QSSP_ctx::dgm, _QASC::dgm_version, _QSSP_ctxIds::handler, _QSSP_ctx::id, _QSSP_ctx::key, _QSSP_ctxKeys::master, QASC_expand(), and _QSSP_ctxKeys::sbs.
const LSF_contribution * QASC_updateAtDatagram | ( | QASC * | qasc, | |
const LSF_datagram * | dgm | |||
) |
Updates the context at datagram time.
qasc | The statistics context to update. | |
dgm | The statistics datagram |
References _QASC_ctx::com, _QASC::ctx, _QASC::cumulative, _QSSP_ctx::dgm, _QASC::dgm_version, _QSSP_ctx::files, QSSP_ctxUpdateAtDatagram(), and _QASC_ctx::version.
int QASC_updateAtRecord | ( | QASC * | qasc, | |
const LSF_record * | rec | |||
) |
Updates the context at record time.
Non-negative | values indicate are one of the QASC_type's | |
Negative | values indicate an unsuccessful update |
qasc | The statistics context to update. | |
rec | The statistics record |
References _QASC::ctx, _QASC_ctx::current, _QASC_sampleV0::type, and _QASC_sample::v0.