Rsh API  SDK 2.1
Документация по программированию
 Указатель Классы Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Друзья Макросы Страницы
RshChannel.h
См. документацию.
1 
18 #ifndef RSH_CHANNEL_H
19 #define RSH_CHANNEL_H
20 
21 #include "RshBaseType.h"
22 #include "RshBufferType.h"
23 
24 #include <ostream>
25 
26 #pragma pack(push, 8)
27 
53 struct RshChannel : public RshBaseType
54 {
83 
115 
140  double adjustment;
141 
142 
160  enum Control
161  {
177  NotUsed = 0x0,
178 
194  NoSynchro = 0x0,
195 
211  Resist1MOhm = 0x0,
212 
228  DC = 0x0,
229 
245  ICPPowerOff = 0x0,
246 
262  Used = 0x1,
263 
279  Synchro = 0x2,
280 
296  AC = 0x4,
297 
313  Resist50Ohm = 0x8,
314 
330  ICPPowerOn = 0x10,
331 
347  FirstChannel = 0x10000,
348  };
349 
350  RshChannel(U32 Gain = 1, U32 Control = 0, double Adjustment = 0.0);
351 
352  RshChannel(const RshChannel& obj);
353 
354  RshChannel& operator=(const RshChannel& obj);
355 
356  bool operator==(RshChannel& obj) const;
357 
358  bool operator!=(RshChannel& obj) const;
359 
360  bool operator< (const RshChannel& obj) const;
361 
362  bool operator> (const RshChannel& obj) const;
363 
364  friend std::ostream& operator<< (std::ostream &out, const RshChannel& obj);
365 
381  void SetDefaultPatameters();
382 
402  void SetUsed(bool on = true);
403 
423  void SetFirstChannel(bool on = true);
424 
444  void SetSynchro(bool on = true);
445 
465  void SetICPPower(bool on = true);
466 
491  void SetInputAC(bool on = true);
492 
517  void SetInputDC(bool on = true);
518 
543  void SetResist50Ohm(bool on = true);
544 
569  void SetResist1MOhm(bool on = true);
570 
582  bool IsUsed() const;
583 
595  bool IsFirstChannel() const;
596 
608  bool IsSynchroSource() const;
609 
621  bool IsICPPowerOn() const;
622 
634  bool IsInputACActive() const;
635 
647  bool IsInputDCActive() const;
648 
660  bool IsResist50OhmActive() const;
661 
673  bool IsResist1MOhmActive() const;
674 };
675 
692 
693 #pragma pack(pop)
694 #endif// RSH_CHANNEL_H