My Project
evgMxc.h
1 #ifndef EVG_MXC_H
2 #define EVG_MXC_H
3 
4 #include <epicsTypes.h>
5 #include "mrf/object.h"
6 
7 class evgMrm;
8 
9 class evgMxc : public mrf::ObjectInst<evgMxc> {
10 public:
11  evgMxc(const std::string&, const epicsUInt32, evgMrm* const);
12  ~evgMxc();
13 
14  /* locking done internally */
15  virtual void lock() const{};
16  virtual void unlock() const{};
17 
18  bool getStatus() const;
19 
20  void setPolarity(bool);
21  bool getPolarity() const;
22 
23  void setPrescaler(epicsUInt32);
24  epicsUInt32 getPrescaler() const;
25 
26  void setFrequency(epicsFloat64);
27  epicsFloat64 getFrequency() const;
28 
29  void setTrigEvtMap(epicsUInt16, bool);
30  bool getTrigEvtMap(epicsUInt16) const;
31 
32 private:
33  const epicsUInt32 m_id;
34  evgMrm* const m_owner;
35  volatile epicsUInt8* const m_pReg;
36 
37 };
38 
39 #endif//EVG_MXC_H
User implementation hook.
Definition: object.h:460