SeaBreeze
AcquisitionDelayFeature_FPGA.h
Go to the documentation of this file.
1 /***************************************************/
35 #ifndef ACQUISITION_DELAY_FEATURE_FPGA_H
36 #define ACQUISITION_DELAY_FEATURE_FPGA_H
37 
39 #include <vector>
40 
41 namespace seabreeze {
42 
44  public:
45  AcquisitionDelayFeature_FPGA(std::vector<ProtocolHelper *> helpers);
47 
48  /* Inherited from AcquisitionDelayFeature */
49 
50  virtual void setAcquisitionDelayMicroseconds(
51  const Protocol &protocol, const Bus &bus,
52  const unsigned long delayMicros)
53  throw (FeatureException);
54 
55  virtual unsigned long getAcquisitionDelayIncrementMicroseconds(
56  const Protocol &protocol, const Bus &bus)
57  throw (FeatureException);
58  virtual unsigned long getAcquisitionDelayMaximumMicroseconds(
59  const Protocol &protocol, const Bus &bus)
60  throw (FeatureException);
61  virtual unsigned long getAcquisitionDelayMinimumMicroseconds(
62  const Protocol &protocol, const Bus &bus)
63  throw (FeatureException);
64 
65  protected:
66  virtual unsigned long countsToMicroseconds(unsigned long counts);
67  virtual unsigned long microsecondsToCounts(unsigned long microseconds);
68 
69  unsigned char acquisitionDelayRegister;
70  unsigned long countsPerMicrosecond;
71  unsigned long minimumDelayCounts;
72  unsigned long maximumDelayCounts;
73  unsigned long incrementMicroseconds;
74  };
75 
76 } /* end namespace seabreeze */
77 
78 #endif /* ACQUISITION_DELAY_FEATURE_FPGA_H */
79 
Definition: Protocol.h:44
Definition: AcquisitionDelayFeature_FPGA.h:43
Definition: FeatureException.h:43
Definition: AcquisitionDelayFeature.h:41
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42