Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

SctApi::ConfigUtility Class Reference

compares ABCDModule structs and their sub-types More...

#include <ConfigurationUtility.h>


Public Types

enum  ConfigVarType {
  BOC_CHANNEL_CONFIG_VAR, BOC_GLOBAL_CONFIG_VAR, MODULE_GLOBAL_CONFIG_VAR, MODULE_CHIP_CONFIG_VAR,
  MODULE_CHANNEL_CONFIG_VAR, TIM_CONFIG_VAR, TRIGGER_VAR, UNKNOWN_CONFIG_VAR
}

Static Public Member Functions

unsigned diff (const ABCDBasic &first, const ABCDBasic &second, bool print=false)
 check equality of ABCDBasic ignoring any unused bits

unsigned diff (const ABCDConfig &first, const ABCDConfig &second, bool print=false)
 check equality of ABCDChip ignoring any unused bits

unsigned diff (const ABCDCaldata &first, const ABCDCaldata &second, bool print=false)
 check equality of ABCDChip ignoring any unused bits

unsigned diff (const ABCDChip &first, const ABCDChip &second, bool print=false)
 check equality of ABCDChip ignoring any unused bits

unsigned diff (const ABCDModule &first, const ABCDModule &second, bool print=false)
 check equality of ABCDModule ignoring any unused bits

unsigned diffSN (const ABCDModule &first, const ABCDModule &second, bool print=false)
 check equality of ABCDModule serial number

std::auto_ptr< ABCDModule > clone (const ABCDModule &first)
 Clone a module.

std::auto_ptr< ABCDBasic > clone (const ABCDBasic &first)
 Clone the basic part of a chip.

void modifyVar (ABCDModule *module, UINT32 typ, FLOAT32 val)
 set an ABCD module variable:

void modifyVar (ABCDModule *module, unsigned chip, UINT32 typ, FLOAT32 val)
 set an ABCD module chip variable:

bool isBocRegister (UINT32 typ)
 return true if the type is a BOC register

bool isModuleRegister (UINT32 typ)
 return true if the type is a Module register (channel or chip or global) register

bool isTimRegister (UINT32 typ)
 return true if the type is a TIM register

std::string apiBitFieldToString (unsigned bitfield)
ConfigVarType variableType (UINT32 typ)
 return true if the type is a BOC register rather than a ABCD register


Static Private Member Functions

ConfigUtilityConfigUtility::instance ()
void setToken (ABCDModule *module, unsigned token, int link0, int link1)
INT32 ConfigUtility::setChipRole (ABCDModule *module, UINT32 theChip, ABCD_ROLES role)

Private Attributes

UINT16 config_compare_mask


Detailed Description

compares ABCDModule structs and their sub-types

Definition at line 12 of file ConfigurationUtility.h.


Member Function Documentation

std::auto_ptr< ABCDBasic > SctApi::ConfigUtility::clone const ABCDBasic &  first  )  [inline, static]
 

Clone the basic part of a chip.

Definition at line 104 of file ConfigurationUtility.h.

std::auto_ptr< ABCDModule > SctApi::ConfigUtility::clone const ABCDModule &  first  )  [inline, static]
 

Clone a module.

Definition at line 97 of file ConfigurationUtility.h.

unsigned SctApi::ConfigUtility::diff const ABCDModule &  first,
const ABCDModule &  second,
bool  print = false
[inline, static]
 

check equality of ABCDModule ignoring any unused bits

Returns:
bitfield with bits of ConfigType which are different

Definition at line 234 of file ConfigurationUtility.h.

References diff(), and diffSN().

Here is the call graph for this function:

unsigned SctApi::ConfigUtility::diff const ABCDChip &  first,
const ABCDChip &  second,
bool  print = false
[inline, static]
 

check equality of ABCDChip ignoring any unused bits

Returns:
bitfield with bits of ConfigType which are different

Definition at line 193 of file ConfigurationUtility.h.

References diff().

Here is the call graph for this function:

unsigned SctApi::ConfigUtility::diff const ABCDCaldata &  first,
const ABCDCaldata &  second,
bool  print = false
[inline, static]
 

check equality of ABCDChip ignoring any unused bits

Returns:
bitfield with bits of ConfigType which are different

Definition at line 166 of file ConfigurationUtility.h.

unsigned SctApi::ConfigUtility::diff const ABCDConfig &  first,
const ABCDConfig &  second,
bool  print = false
[inline, static]
 

check equality of ABCDChip ignoring any unused bits

Returns:
bitfield with bits of ConfigType which are different

Definition at line 124 of file ConfigurationUtility.h.

unsigned SctApi::ConfigUtility::diff const ABCDBasic &  first,
const ABCDBasic &  second,
bool  print = false
[inline, static]
 

check equality of ABCDBasic ignoring any unused bits

Returns:
bitfield with bits of ConfigType which are different

Definition at line 139 of file ConfigurationUtility.h.

Referenced by diff().

unsigned SctApi::ConfigUtility::diffSN const ABCDModule &  first,
const ABCDModule &  second,
bool  print = false
[inline, static]
 

check equality of ABCDModule serial number

Returns:
bitfield with bits of ConfigType which are different

Definition at line 263 of file ConfigurationUtility.h.

Referenced by diff().

bool SctApi::ConfigUtility::isBocRegister UINT32  typ  )  [inline, static]
 

return true if the type is a BOC register

Definition at line 285 of file ConfigurationUtility.h.

References variableType().

Here is the call graph for this function:

bool SctApi::ConfigUtility::isModuleRegister UINT32  typ  )  [inline, static]
 

return true if the type is a Module register (channel or chip or global) register

Definition at line 300 of file ConfigurationUtility.h.

References variableType().

Referenced by modifyVar().

Here is the call graph for this function:

bool SctApi::ConfigUtility::isTimRegister UINT32  typ  )  [inline, static]
 

return true if the type is a TIM register

Definition at line 293 of file ConfigurationUtility.h.

References variableType().

Here is the call graph for this function:

void SctApi::ConfigUtility::modifyVar ABCDModule *  module,
unsigned  chip,
UINT32  typ,
FLOAT32  val
[static]
 

set an ABCD module chip variable:

Definition at line 174 of file ConfigurationUtility.cxx.

References modifyVar(), and variableType().

Here is the call graph for this function:

void SctApi::ConfigUtility::modifyVar ABCDModule *  module,
UINT32  typ,
FLOAT32  val
[static]
 

set an ABCD module variable:

Definition at line 75 of file ConfigurationUtility.cxx.

References isModuleRegister(), and variableType().

Referenced by modifyVar().

Here is the call graph for this function:

ConfigUtility::ConfigVarType SctApi::ConfigUtility::variableType UINT32  typ  )  [static]
 

return true if the type is a BOC register rather than a ABCD register

Definition at line 577 of file ConfigurationUtility.cxx.

Referenced by isBocRegister(), isModuleRegister(), isTimRegister(), and modifyVar().


The documentation for this class was generated from the following files:
Generated on Fri Dec 16 19:40:06 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5