NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
Functions | Variables
Pixie16Package.cpp File Reference

Package initialization file for the pixie16 package. More...

#include <unistd.h>
#include <string>
#include <tcl.h>
#include <Configuration.h>
#include <ConfigurationParser.h>
#include <config_pixie16api.h>
#include "Boot.h"
#include "CAdjustOffsets.h"
#include "InitSystem.h"
#include "Inventory.h"
#include "IsActive.h"
#include "ReadChanPar.h"
#include "ReadModPar.h"
#include "Release.h"
#include "RestoreParams.h"
#include "SaveParams.h"
#include "WriteChanPar.h"
#include "WriteModPar.h"
Include dependency graph for Pixie16Package.cpp:

Functions

int Pixie_Init (Tcl_Interp *pInterp)
 

Variables

DAQ::DDAS::Configuration crateConfiguration
 

Detailed Description

Package initialization file for the pixie16 package.

Function Documentation

◆ Pixie_Init()

int Pixie_Init ( Tcl_Interp *  pInterp)

Pixie_Init Package initialization. Executed when the package is loaded.

  • provide the package so pkg_mkIndex does the right thing.
  • check the existence of the cfgPixie16.txt file in the current directory without which we can't function.
  • Create a configuration object (if modevtlen is required for this we'll need to require it as well above).
  • register the package commands.
Parameters
pInterp- Interpreter loading the package and on which the commands will be registered.
Returns
int - TCL_OK on proper load and TCL_ERROR with result set to a human readable error text if not.

Variable Documentation

◆ crateConfiguration

DAQ::DDAS::Configuration crateConfiguration
Todo:
(ASC 3/26/25): Entire package needs to replace hardcoded API error messages with API calls to get error messages from return codes. See Boot.cpp for initial progress.

This file is loaded when package require pixie16 is executed. It must:

  • provide the package so pkg_mkIndex does the right thing.
  • check the existence of the cfgPixie16.txt file in the current directory without which we can't function.
  • Create a configuration object (if modevtlen is required for this we'll need to require it as well above).
  • register the package commands.