CARMA C++
AntennaIFClient.h
Go to the documentation of this file.
1 
2 
13 #ifndef CARMA_BIMA_ANTENNAIFCLIENT_H
14 #define CARMA_BIMA_ANTENNAIFCLIENT_H
15 
16 #include <iostream>
17 #include <ostream>
18 #include <string>
19 #include <map>
20 #include <vector>
21 
22 #include <sys/poll.h>
23 
27 #include "carma/util/IPQwriter.h"
29 #include "carma/util/Logger.h"
30 #include "carma/util/Trace.h"
31 
32 namespace carma
33 {
34  namespace antenna
35  {
36  namespace bima
37  {
38  class AntennaIFClient : public SharedMemory
39  {
40  public:
41  AntennaIFClient( Configuration& config );
42  ~AntennaIFClient();
43 
44  void command( const unsigned short command, short value );
45  void command( const unsigned short command, float value );
46  Configuration& getConfig() { return _config; }
47 
48  static const unsigned short SELECT_IF_BAND = 1;
49  static const unsigned short SET_IF_LEVEL = 2;
50  static const unsigned short SET_IF_ATTEN = 3;
51 
52  static const unsigned short SET_IF1_LEVEL = 5;
53  static const unsigned short SET_IF1_ATTEN = 6;
54  static const unsigned short SET_IF2_LEVEL = 7;
55  static const unsigned short SET_IF2_ATTEN = 8;
56 
57  static const unsigned short START_IF1_FASTSAMP = 9;
58  static const unsigned short START_IF2_FASTSAMP = 10;
59  static const unsigned short STOP_IF1_FASTSAMP = 11;
60  static const unsigned short STOP_IF2_FASTSAMP = 12;
61 
62  static const unsigned short SISRX_SET_VDRAIN = 13;
63  static const unsigned short SISRX_SET_VGATE1 = 14;
64  static const unsigned short SISRX_SET_VGATE2 = 15;
65  static const unsigned short SISRX_SET_VJ = 16;
66  static const unsigned short SISRX_TUNE = 17;
67  static const unsigned short SISRX_GETVGAP = 18;
68  static const unsigned short SISRX_SCANV1 = 19;
69  static const unsigned short SISRX_SCANV2 = 20;
70  static const unsigned short SISRX_SCANDV = 21;
71  static const unsigned short SISRX_IVCURVE = 22;
72  static const unsigned short SISRX_SET_LOOP_MODE = 23;
73 
74  private:
76  Configuration& _config;
77 
78  };
79  }
80  }
81 }
82 
83 
84 
85 #endif // CARMA_BIMA_ANTENNAIFCLIENT_H
Class definition for TelemetryCommand on the BIMA antennas.
Exception class for errors.
Interface file for the carma::util::Trace class and related macros.
Class definition for SharedMemory on the BIMA antennas.
Class definition for Stepper Motors for BIMA systems.