GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EMP_DB / dev > asc_db_data / sun-gcc
#include <EMP_DB/ASC_DB_schema.h>
Defines | |
#define | CDM_EMP_DB_ASC_DB_DATA_SCHEMA ASC_DB_SCHEMA |
#define | CDM_EMP_DB_ASC_DB_DATA_VERSION ASC_DB_VERSION |
#define | ASC_DB_DATA |
Defines a template capturing the structure of the ASC configuration database. |
CVS $Id: ASC_DB_macros.h,v 1.2 2011/03/25 21:56:37 apw Exp $
#define ASC_DB_DATA |
Value:
{ /* EDS_DB_Schema eds */ \ "ASC_constructServicesGet" \ }, \ \ \ { /* Generic input and output parametes */ \ \ { /* Input parameters */ \ INPUT_BUFFER_COUNT, \ INPUT_EVENT_PRESCALE \ }, \ \ \ /* Output parameters */ \ { \ OUTPUT_BUFFER_COUNT, \ OUTPUT_EVENT_COUNT, \ OUTPUT_TIMEOUT_MSEC \ } \ \ }, \ \ COMPRESSION_LEVEL
This macro is used to define the populate the data structure of an ASC configuration database while hiding the ASC configuration database's structure. The user will typically create a file that looks like
#include <ASC_DB_macros.h> // CDM boilerplate stuff #define CDM_EMP_DB_ASC_DB_DATA_SCHEMA ASC_DB_SCHEMA #define CDM_EMP_DB_ASC_DB_DATA_INSTANCE ASC_DB_INSTANCE #define CDM_EMP_DB_ASC_DB_DATA_VERSION ASC_DB_VERSION #define CDM_EMP_DB_ASC_DB_ATA_HANDLE data // Define the ASC configuration parameters #define INPUT_BUFFER_COUNT 4 #define INPUT_EVENT_PRESCALE 10 #define OUTPUT_BUFFER_COUNT 5 #define OUTPUT_EVENT_COUNT 10000 #define OUTPUT_TIMEOUT_MSEC 10000 // Drop an instance of the ASC configuration parameters static const ASC_DB_Schema data = { ASC_DB_DATA };