#include <CrateManager.h>
|
static std::string | getVarFile (unsigned short speed) |
|
This class is responsible for
- Obtaining crate configuration.
- Initializing the Pixie16 API
- Booting the modules in the crate.
- Note
- We assume the compiler definition FIRMWARE_DEF_FILE is a CString path to the firmware directory file.
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.
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
-
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
-
speed | MHz 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
-
unsigned short DDAS::CrateManager::moduleId |
( |
unsigned short |
slot | ) |
|
moduleId Find the module id associated with a slot number.
- Parameters
-
- Returns
- unsigned short - the module id.
- Exceptions
-
std::invalid_argument | if 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
-
- Returns
- unsigned short - corresponding slot.
The documentation for this class was generated from the following files: