OceanDirect  1.30.1-rc.4
OceanDirect C++/C API
AnalogInFeatureAdapter.h
1 /*****************************************************
2  * @file AnalogInFeatureAdapter.h
3  * @date Aug 2020
4  * @author Ocean Optics, Inc.
5  *
6  * This is a wrapper that allows access to OceanDirect
7  * Analog voltage in instances.
8  */
9  /************************************************************************
10  *
11  * OCEAN INSIGHT CONFIDENTIAL
12  * __________________
13  *
14  * [2018] - [2020] Ocean Insight Incorporated
15  * All Rights Reserved.
16  *
17  * NOTICE: All information contained herein is, and remains
18  * the property of Ocean Insight Incorporated and its suppliers,
19  * if any. The intellectual and technical concepts contained
20  * herein are proprietary to Ocean Insight Incorporated
21  * and its suppliers and may be covered by U.S. and Foreign Patents,
22  * patents in process, and are protected by trade secret or copyright law.
23  * Dissemination of this information or reproduction of this material
24  * is strictly forbidden unless prior written permission is obtained
25  * from Ocean Insight Incorporated.
26  *
27  **************************************************************************/
28 #pragma once
29 
30 #include "api/adapters/FeatureAdapterTemplate.h"
31 #include "vendors/OceanOptics/features/analog_in/AnalogInFeatureInterface.h"
32 
33 namespace oceandirect {
34  namespace api {
35 
37  : public FeatureAdapterTemplate<AnalogInFeatureInterface> {
38  public:
39  AnalogInFeatureAdapter(AnalogInFeatureInterface *intf,
40  const FeatureFamily &f,
41  Protocol *p, Bus *b, unsigned short instanceIndex);
42  virtual ~AnalogInFeatureAdapter();
43 
44  /* Analog In functions */
45  virtual int getNumberOfVoltageDCInputs(int *errorCode);
46 
47  virtual double getMaximumInputVoltageDC(int *errorCode);
48 
49  virtual double getMinimumInputVoltageDC(int *errorCode);
50 
51  virtual double getVoltageDCInputVolts(int *errorCode, int input);
52 
53  virtual void configureAltPin(int *errorCode, int pinNumber,
54  int pinType);
55 
56  };
57 
58  } /* end namespace api */
59 } /* end namespace oceandirect */
Definition: AnalogInFeatureAdapter.h:37
Definition: FeatureAdapterTemplate.h:44
This is an interface to Advance features of OceanDirect that allow access to less common controls....
Definition: AcquisitionDelayFeatureAdapter.h:35