NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
DDAS::CrateManager Class Reference

#include <CrateManager.h>

Public Member Functions

 CrateManager (const std::vector< unsigned short > &slots)
 
virtual ~CrateManager ()
 
unsigned short moduleId (unsigned short slot)
 
unsigned short slot (unsigned short id)
 
void loadDSPAddressMap (unsigned short id)
 
void fullBoot (unsigned short id)
 
void fullBoot (unsigned short id, const char *setFile)
 

Static Public Member Functions

static std::string getVarFile (unsigned short speed)
 

Detailed Description

This class is responsible for

Constructor & Destructor Documentation

DDAS::CrateManager::CrateManager ( const std::vector< unsigned short > &  slots)

constructor Our job is to create a configuration and read the hardware registry into the configuration by parsing the firmware definition file. We also initialize the Pixie16's with the slot map provided.

Parameters
slots- the slots we intend to use. Note that each slot is assigned an id that is its index into the slots array. The moduleID and slot can translate between the two.
DDAS::CrateManager::~CrateManager ( )
virtual

destructor Exit the system (ignore errors) delete the configuration.

Member Function Documentation

void DDAS::CrateManager::fullBoot ( unsigned short  id)

fullBoot Performs a full boot of the selected board. This is done by setting getting the boot files and doing a mask of 0x6d Which does everything but load the DSP parameters The idea is that we'll load the DSP parameters later using one of our XML based loaders when we do this. Not we have an overload that supports old style SEt file parameter loading.

Parameters
id- board id.
void DDAS::CrateManager::fullBoot ( unsigned short  id,
const char *  setFile 
)

fullBoot Overload for booting and loading DSP variables from old fashioned setfile:

Parameters
id- module ID.
setFile- The DSP variable settings file.
std::string DDAS::CrateManager::getVarFile ( unsigned short  speed)
static

(static) getVarFile Gets our best guess at the varfile for a specific digitizer speed.

Parameters
speedMHz of the digitizer.
void DDAS::CrateManager::loadDSPAddressMap ( unsigned short  id)

loadDSPAddressMap Does a null boot which has the effect of loading the DSP address map for the selected module.

Parameters
id- mdule id.
unsigned short DDAS::CrateManager::moduleId ( unsigned short  slot)

moduleId Find the module id associated with a slot number.

Parameters
s- the slot.
Returns
unsigned short - the module id.
Exceptions
std::invalid_argumentif there's no such slot.
unsigned short DDAS::CrateManager::slot ( unsigned short  id)

slot Translate a module id into a slot. This is just a protected lookup

Parameters
id- module id.
Returns
unsigned short - corresponding slot.

The documentation for this class was generated from the following files: