GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSEC / V3-1-1 > qsec / linux-gcc
#include "QSEC/QSEC_ctx.h"
#include "EDS/EBF_gem.h"
Typedefs | |
| typedef enum _QSEC_STATUS_K | QSEC_STATUS_K |
| Enumeration of the status codes. | |
Enumerations | |
| enum | _QSEC_STATUS_K { QSEC_STATUS_K_ERR = -1, QSEC_STATUS_K_TOO_SMALL = -2, QSEC_STATUS_K_NOGEM = -8, QSEC_STATUS_K_OVRRUN = -9, QSEC_STATUS_K_UNDRUN = -10, QSEC_STATUS_K_INCLEN = -11 } |
| Enumeration of the status codes. More... | |
Functions | |
| QSEC * | QSEC_alloc (void) |
| Allocate and construct the QSEC handle. | |
| void | QSEC_updateAtDatagram (void *qsec, const LSF_datagram *dgm) |
| Update the run oriented information in the event context using the information from the event datagram. | |
| void | QSEC_updateAtContribution (void *qsec, const LSF_contribution *ctb) |
| Update the context based on the contribution. | |
| int | QSEC_updateAtRecord (void *qsec, const LSF_record *rec) |
| Update the context based on the record. | |
| int | QSEC_expand (QSEC *qsec, const LSF_record *rec, QSE_ebfEvt *ebf, int ebf_size, int *ret_size) |
| Expand the event into EBF format. | |
| void | QSEC_destruct (QSEC *qsec) |
| Destroy the QSEC handle. | |
| const QSE_ctx * | QSEC_stdCtxGet (const QSEC *qsec) |
| Return a pointer to the standard QSE context block. | |
| const QSEC_ctx * | QSEC_appCtxGet (const QSEC *qsec) |
| Return a pointer to the public QSEC application specific context block. | |
| const EBF_gem * | QSEC_gemGet (const QSEC *qsec) |
| Return a pointer to the expanded GEM data. | |
| unsigned int | QSEC_sizeof (void *prm) |
| Return the size, in bytes, of the handle for updating the standard event meta-information. | |
| QSEC * | QSEC_construct (QSEC *qsec, void *prm) |
| Construct (initializes) the handle for updating the standard event meta-information. | |
| void | QSEC_reportExpand (const QSEC *qsec, FILE *fp, unsigned int optns) |
| Report the contents of an expansion. | |
| typedef enum _QSEC_STATUS_K QSEC_STATUS_K |
Enumeration of the status codes.
| enum _QSEC_STATUS_K |
Enumeration of the status codes.
| QSEC* QSEC_alloc | ( | void | ) |
Allocate and construct the QSEC handle.
| const QSEC_ctx* QSEC_appCtxGet | ( | const QSEC * | qsec | ) |
Return a pointer to the public QSEC application specific context block.
This routine is just an accessor to keep the structure of QSEC private.
| qsec | The calibration event handle |
| QSEC* QSEC_construct | ( | QSEC * | qsec, | |
| void * | prm | |||
| ) |
Construct (initializes) the handle for updating the standard event meta-information.
| qsec | The handle to initialize, if specified as NULL, one will be allocated | |
| prm | A run-time set parameter used to stylize the configuration |
| void QSEC_destruct | ( | QSEC * | qsec | ) |
Destroy the QSEC handle.
| qsec | Pointer to the QSEC handle to delete. |
| int QSEC_expand | ( | QSEC * | qsec, | |
| const LSF_record * | rec, | |||
| QSE_ebfEvt * | ebf, | |||
| int | ebf_size, | |||
| int * | ret_size | |||
| ) |
Expand the event into EBF format.
This just launders the call
| qsec | The calibration event handle | |
| rec | The LSF record containing the event | |
| ebf | The ebf buffer to expand the event into, this pointer must be 32-bit aligned | |
| ebf_size | The size, in bytes, of the buffer | |
| ret_size | Returned as the status of the expand |
| 0 | Successful expand | |
| <0 | Failure, see the enumeration QSEC_STATUS_K for the reasons |
| const EBF_gem* QSEC_gemGet | ( | const QSEC * | qsec | ) |
Return a pointer to the expanded GEM data.
This routine is just an accessor to keep the structure of QSEC private.
| qsec | The calibration event handle |
| void QSEC_reportExpand | ( | const QSEC * | qsec, | |
| FILE * | fp, | |||
| unsigned int | optns | |||
| ) |
Report the contents of an expansion.
| qsec | The calibration event handle | |
| fp | Pointer to the destination file | |
| optns | Options controlling the report (not used) |
| unsigned int QSEC_sizeof | ( | void * | prm | ) |
Return the size, in bytes, of the handle for updating the standard event meta-information.
| prm | A run-time set parameter used to stylize the configuration |
| const QSE_ctx* QSEC_stdCtxGet | ( | const QSEC * | qsec | ) |
Return a pointer to the standard QSE context block.
This routine is just an accessor to keep the structure of QSEC private.
| qsec | The calibration event handle |
| void QSEC_updateAtContribution | ( | void * | qsec, | |
| const LSF_contribution * | ctb | |||
| ) |
Update the context based on the contribution.
| qsec | The calibration event handle to update | |
| ctb | The contribution |
| void QSEC_updateAtDatagram | ( | void * | qsec, | |
| const LSF_datagram * | dgm | |||
| ) |
Update the run oriented information in the event context using the information from the event datagram.
| qsec | The calibration event handle | |
| dgm | The event datagram |
| int QSEC_updateAtRecord | ( | void * | qsec, | |
| const LSF_record * | rec | |||
| ) |
Update the context based on the record.
| qsec | The calibration event handle to update | |
| rec | The event record |
| >0 | If successful update to an event record | |
| <0 | If unsuccessful update to an event record | |
| 0 | If this was not an event record |
1.5.3