NSCL DDAS  12.1-001
Support for XIA DDAS at FRIB
Classes | Namespaces | Enumerations | Functions
HardwareRegistry.h File Reference

Defines a namespace used to store information about known DDAS modules. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DAQ::DDAS::HardwareRegistry::HardwareSpecification
 Generic hardware specs for hardware types. More...
 

Namespaces

 DAQ
 
 DAQ::DDAS
 
 DAQ::DDAS::HardwareRegistry
 The HardwareRegistry namespace is where information about all known DDAS modules are stored.
 

Enumerations

enum  DAQ::DDAS::HardwareRegistry::HardwareType {
  DAQ::DDAS::HardwareRegistry::RevB_100MHz_12Bit =1 , DAQ::DDAS::HardwareRegistry::RevC_100MHz_12Bit =2 , DAQ::DDAS::HardwareRegistry::RevD_100MHz_12Bit =3 , DAQ::DDAS::HardwareRegistry::RevF_100MHz_14Bit =4 ,
  DAQ::DDAS::HardwareRegistry::RevF_100MHz_16Bit =5 , DAQ::DDAS::HardwareRegistry::RevF_250MHz_12Bit =6 , DAQ::DDAS::HardwareRegistry::RevF_250MHz_14Bit =7 , DAQ::DDAS::HardwareRegistry::RevF_250MHz_16Bit =8 ,
  DAQ::DDAS::HardwareRegistry::RevF_500MHz_12Bit =9 , DAQ::DDAS::HardwareRegistry::RevF_500MHz_14Bit =10 , DAQ::DDAS::HardwareRegistry::RevF_500MHz_16Bit =11 , DAQ::DDAS::HardwareRegistry::Unknown =0
}
 The HardwareType enum. More...
 

Functions

void DAQ::DDAS::HardwareRegistry::configureHardwareType (int type, const HardwareSpecification &spec)
 
HardwareSpecification & DAQ::DDAS::HardwareRegistry::getSpecification (int type)
 Retrieve a reference to the current hdwr specification for a hardware type. More...
 
void DAQ::DDAS::HardwareRegistry::resetToDefaults ()
 
int DAQ::DDAS::HardwareRegistry::computeHardwareType (int hdwrVersion, int adcFreq, int adcRes)
 Compute the hardware type from input specifications. More...
 
int DAQ::DDAS::HardwareRegistry::createHardwareType (int hdwrVersion, int adcFreq, int adcRes, double clockCalibration)
 Create an enumerated hardware type from input specifications. More...
 
bool operator== (const DAQ::DDAS::HardwareRegistry::HardwareSpecification &lhs, const DAQ::DDAS::HardwareRegistry::HardwareSpecification &rhs)
 Check if two HardwareSpecifications are the same. More...
 

Detailed Description

Defines a namespace used to store information about known DDAS modules.

Function Documentation

◆ operator==()

Check if two HardwareSpecifications are the same.

Parameters
lhs,rhsLeft- and right-hand objects for comparison.
Returns
bool
Return values
trueIf lhs and rhs are equal.
falseOtherwise.