SeaBreeze
SpectrometerFeatureAdapter.h
Go to the documentation of this file.
1 /***************************************************/
33 #ifndef SEABREEZE_SPECTROMETER_FEATURE_ADAPTER_H
34 #define SEABREEZE_SPECTROMETER_FEATURE_ADAPTER_H
35 
37 #include "common/buses/Bus.h"
40 
41 namespace seabreeze {
42  namespace api {
43 
44  class SpectrometerFeatureAdapter : public FeatureAdapterTemplate<OOISpectrometerFeatureInterface> {
45  public:
48  const FeatureFamily &f,
49  Protocol *p, Bus *b, unsigned short instanceIndex);
50  virtual ~SpectrometerFeatureAdapter();
51 
52  /* Spectrometer commands */
53  int getUnformattedSpectrum(int *errorCode,
54  unsigned char *buffer, int bufferLength);
55  int getFormattedSpectrum(int *errorCode,
56  double* buffer, int bufferLength);
57  int getUnformattedSpectrumLength(int *errorCode);
58  int getFormattedSpectrumLength(int *errorCode);
59  void setTriggerMode(int *errorCode, int mode);
60  int getWavelengths(int *errorCode, double *wavelengths, int length);
61  int getElectricDarkPixelCount(int *errorCode);
62  int getElectricDarkPixelIndices(int *errorCode,
63  int *indices, int length);
64  void setIntegrationTimeMicros(int *errorCode,
65  unsigned long integrationTimeMicros);
66  long getMinimumIntegrationTimeMicros(int *errorCode);
67  long getMaximumIntegrationTimeMicros(int *errorCode);
68  double getMaximumIntensity(int *errorCode);
69  };
70 
71  }
72 }
73 
74 #endif
Definition: OOISpectrometerFeatureInterface.h:42
Definition: FeatureAdapterTemplate.h:47
Definition: Protocol.h:44
Definition: FeatureFamily.h:39
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: SpectrometerFeatureAdapter.h:44