CARMA C++
IntMod.h
Go to the documentation of this file.
1 #ifndef SZA_ANTENNA_CANBUS_INTMOD_H
2 #define SZA_ANTENNA_CANBUS_INTMOD_H
3 
12 
13 namespace sza {
14  namespace antenna {
15 
16  namespace control {
17  class AntennaRx;
18  }
19 
20  namespace canbus {
21 
22  class IntMod : public CanDevice {
23  public:
24 
28  IntMod(sza::antenna::control::SzaShare* share,
29  std::string boardName,
32 
36  virtual ~IntMod();
37 
41  std::vector<carma::canbus::Message>
42  setPAMAttenuation(unsigned char atten, bool send=true);
43 
44  // Set the output power
45 
46  std::vector<carma::canbus::Message>
47  setPAMOutputPower(short power, bool send=true);
48 
49  // Set the output power to a preset level
50 
51  std::vector<carma::canbus::Message>
52  presetPAMOutputPower(bool send=true);
53 
54  private:
55 
56  //------------------------------------------------------------
57  // Blanking-frame (half-second) monitor members.
58  //------------------------------------------------------------
59 
63  std::map<carma::canbus::msgType, std::string>
64  getHalfSecMonitors() const;
65 
66  // Methods to deal with monitor packets for this device.
67 
68  void processBlankingFrameMonitor1(std::vector<carma::canbus::byteType>& data, bool isSim);
69  void processBlankingFrameMonitor2(std::vector<carma::canbus::byteType>& data, bool isSim);
70  void processBlankingFrameMonitor3(std::vector<carma::canbus::byteType>& data, bool isSim);
71  void processBlankingFrameMonitor4(std::vector<carma::canbus::byteType>& data, bool isSim);
72  void processBlankingFrameMonitor5(std::vector<carma::canbus::byteType>& data, bool isSim);
73 
74  //------------------------------------------------------------
75  // Commands for this device.
76  //------------------------------------------------------------
77 
81  enum engineeringCommands
82  {
83  ENGCMD_SET_PAM_ATTEN = 0x080,
84  ENGCMD_PRESET_PAM_POWER = 0x081,
85  ENGCMD_SET_PAM_POWER = 0x082
86  };
87 
88  }; // End class IntMod
89 
90  } // End namespace canbus
91  } // End namespace antenna
92 } // End namespace sza
93 
94 
95 
96 #endif // End #ifndef SZA_ANTENNA_CANBUS_INTMOD_H
Started: Fri Nov 21 15:46:44 UTC 2003.
unsigned short nodeType
Carma Node Type id type.
Definition: Types.h:66
CanOutput interface.
Definition: CanOutput.h:26
An instance of this class is created by AntennaMaster and passed to the constructors of other tasks...
Definition: Share.h:38