CARMA C++
IFControlImpl.h
Go to the documentation of this file.
1 
10 #ifndef CARMA_ANTENNA_OVRO_IFCONTROLIMPL_H
11 #define CARMA_ANTENNA_OVRO_IFCONTROLIMPL_H
12 
13 // Corba includes
14 #include "carma/corba/corba.h"
15 
16 // Carma includes
18 #include "carma/antenna/common/RxControl.h"
20 
21 namespace log4cpp {
22  // Forward declaration
23  class Category;
24 } // End namespace log4cpp
25 
26 namespace carma {
27 namespace antenna {
28 namespace ovro {
29 
30  // Forward declaration
31  class AntennaIF;
32 
39  class IFControlImpl {
40  public:
41 
51  carma::antenna::common::RxControl::IF_Type ifType );
52 
53  ~IFControlImpl();
54 
55  // Control commands
60  void selectRx();
61 
67 
68  void reset( );
69  void selectBand( ::CORBA::UShort band );
70  void setAtten( ::CORBA::Float atten );
71  void setPower( ::CORBA::Float power );
72  void saveCurrentPower();
73  void setPresetPower();
74 
75  private:
76 
77  // Disallow assignment and copy construction
79  IFControlImpl &operator=(const IFControlImpl &);
80 
81  AntennaIF & antennaIf_;
82  log4cpp::Category & log_;
83  std::string typeString_;
85  const carma::antenna::common::RxControl::IF_Type ifType_;
86 
87  }; // End class IFControlImpl
88 }}} // End namespace carma::antenna::ovro
89 #endif
IFControlImpl(carma::antenna::ovro::AntennaIF &antennaIf, carma::antenna::common::RxControl::Type type, carma::antenna::common::RxControl::IF_Type ifType)
Constructor.
::std::vector< float > IFTotalPowerVec
IF Total Power vector in milliWatts.
Definition: AntennaIF.h:37
Type
Enumerate valid Receiver types.
Definition: RxControl.idl:36
Declaration for carma::antenna::common::RxTypeInfo class.
void selectRx()
Based on which receiver this object belongs to, select the appropriate IF switch. ...
CAN Device implementation for Antenna IF Module.
Antenna IF CAN module device class.
Definition: AntennaIF.h:42
Maps and provides conversions between the various receiver type definitions from the monitor system...
Definition: RxTypeInfo.h:32
IFControlImpl Corba control delegate class.
Definition: IFControlImpl.h:39
IFTotalPowerVec getIFTotalPower() const
Retrieve IF total powers from the Antenna IF (PAM) module.