NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
pixie16app_export.h
1 
2 
3 #define PIXIE16APP_EXPORT
4 #define PIXIE16APP_API
5 
6 #include <HardwareRegistry.h>
7 #include <vector>
8 #include <string>
9 
10 extern "C" {
11 
12 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16InitSystem (
13  unsigned short NumModules, // total number of Pixie16 modules in the system
14  unsigned short *PXISlotMap, // an array containing the PXI slot number for each pixie16 module
15  unsigned short OfflineMode ); // specify if the system is in offline mode
16 
17 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16ExitSystem (
18  unsigned short ModNum ); // module number
19 
20 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16ReadModuleInfo (
21  unsigned short ModNum, // module number
22  unsigned short *ModRev, // returned module revision
23  unsigned int *ModSerNum, // returned module serial number
24  unsigned short *ModADCBits, // returned module ADC bits
25  unsigned short *ModADCMSPS ); // returned module ADC sampling rate
26 
27 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16BootModule (
28  char *ComFPGAConfigFile, // name of communications FPGA configuration file
29  char *SPFPGAConfigFile, // name of signal processing FPGA configuration file
30  char *TrigFPGAConfigFile, // name of trigger FPGA configuration file
31  char *DSPCodeFile, // name of executable code file for digital signal processor (DSP)
32  char *DSPParFile, // name of DSP parameter file
33  char *DSPVarFile, // name of DSP variable names file
34  unsigned short ModNum, // pixie module number
35  unsigned short BootPattern ); // boot pattern bit mask
36 
37 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16StartListModeRun (
38  unsigned short ModNum, // module number
39  unsigned short RunType, // run type
40  unsigned short mode ); // run mode
41 
42 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16CheckRunStatus (
43  unsigned short ModNum ); // Pixie module number
44 
45 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16EndRun (
46  unsigned short ModNum ); // Pixie module number
47 
48 
49 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16CheckExternalFIFOStatus (
50  unsigned int *nFIFOWords,
51  unsigned short ModNum );
52 
53 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16ReadDataFromExternalFIFO (
54  unsigned int *ExtFIFO_Data, // To receive the external FIFO data
55  unsigned int nFIFOWords, // number of words to read from external FIFO
56  unsigned short ModNum ); // module number
57 
58 
59 PIXIE16APP_EXPORT int PIXIE16APP_API Pixie16WriteSglModPar (
60  char *ModParName, // the name of the module parameter
61  unsigned int ModParData, // the module parameter value to be written to the module
62  unsigned short ModNum ); // module number
63 
64 
65 }
66 
67 
68 namespace DAQ {
69 namespace DDAS {
70 
79 namespace Test {
80 
81 
82 void Pixie16SetModuleType(int modNum, int hdwrType);
83 std::vector<std::string> Pixie16GetActivityLog();
84 void Pixie16ResetActivityLog();
85 
86 }
87 }
88 }
Definition: functions.h:26
Definition: SystemBooter.cpp:16