CARMA C++
corrUtils.h
1 #ifndef CARMA_UTIL_LIB_CORRUTILS_H
2 #define CARMA_UTIL_LIB_CORRUTILS_H
3 
7 #include "carma/util/CorrelatorType.h"
8 
9 #include <string>
10 #include <map>
11 
12 namespace carma {
13 
14  namespace util {
15 
16  static const unsigned NUM_SLC_BANDS = 8;
17  static const unsigned NUM_WBC_BANDS = 16;
18  static const unsigned NUM_C3G_BANDS = 8;
19 
20  class AstroBand;
21 
27  typedef enum hardwareTypeEnum {
32  } hardwareType;
33 
40  hardwareType hwType( unsigned int astroBandNo );
41  hardwareType hwType(carma::util::AstroBand& band);
42 
46  const ::std::string getStringForHardwareType( const hardwareType hwType );
47 
48 
61  float actualBandwidth( const ::std::string & bwstring );
62 
69  getBandWidthTypeForBandWidth( const float bw );
70 
71 
72 
85  unsigned numExpectedCorrBands(
86  const ::std::string & abConf,
87  const CorrelatorType corrType = CORR_SPECTRAL);
88 
103  unsigned numExpectedAstroChans(
104  const CorrelatorType corrType,
105  const CorrelatorBandWidthType bwType,
106  const CorrelatorBitType bitType,
107  const CorrelatorFpgaModeType corrFpgaMode );
108 
114  float correlatorEfficiency(const CorrelatorBitType bitType);
115 
116  carma::util::CorrelatorType getCorrTypeForSaNo( const int saNo );
117  carma::util::CorrelatorType getCorrTypeForAstroBandNo( const int abNo );
118  ::std::string getStringForCorrType(const carma::util::CorrelatorType corr);
125  }
126 }
127 #endif //CARMA_UTIL_LIB_CORRUTILS_H
carma::util::CorrelatorBandWidthType getBandWidthTypeForBandWidth(const float bw)
float correlatorEfficiency(const CorrelatorBitType bitType)
unsigned numExpectedCorrBands(const ::std::string &abConf, const CorrelatorType corrType=CORR_SPECTRAL)
CorrelatorFpgaModeType
FPGA configuration modes.
const ::std::string getStringForHardwareType(const hardwareType hwType)
CorrelatorBitType
Correlator number of bits.
CARMA 3rd generation correlator hardware.
Definition: corrUtils.h:31
enum carma::util::hardwareTypeEnum hardwareType
The type of board hardware in a given band.
Definition: corrUtils.h:20
CARMA board hardware.
Definition: corrUtils.h:30
COBRA board hardware.
Definition: corrUtils.h:29
CorrelatorType
Enum to encapsulate a correlator type. These.
Definition: SignalPathMap.h:76
CorrelatorBandWidthType
Supported spectral correlator bandwidths.
float actualBandwidth(const ::std::string &bwstring)
This method returns the true bandwidth of a correlator band, given CARMA&#39;s &quot;rounded&quot; description of a...
hardwareType hwType(unsigned int astroBandNo)
unsigned numExpectedAstroChans(const CorrelatorType corrType, const CorrelatorBandWidthType bwType, const CorrelatorBitType bitType, const CorrelatorFpgaModeType corrFpgaMode)