OceanDirect  1.31.1-rc1
OceanDirect C++/C API
AnalogOutAPI.h
1 /*****************************************************
2  * @file AnalogOutAPI.h
3  * @date Aug 2020
4  * @author Ocean Optics, Inc.
5  *
6  * This is an interface to OceanDirect that allows
7  * the user to connect to devices over USB and other buses.
8  * This is intended as a usable and extensible API.
9  */
10  /************************************************************************
11  *
12  * OCEAN INSIGHT CONFIDENTIAL
13  * __________________
14  *
15  * [2018] - [2020] Ocean Insight Incorporated
16  * All Rights Reserved.
17  *
18  * NOTICE: All information contained herein is, and remains
19  * the property of Ocean Insight Incorporated and its suppliers,
20  * if any. The intellectual and technical concepts contained
21  * herein are proprietary to Ocean Insight Incorporated
22  * and its suppliers and may be covered by U.S. and Foreign Patents,
23  * patents in process, and are protected by trade secret or copyright law.
24  * Dissemination of this information or reproduction of this material
25  * is strictly forbidden unless prior written permission is obtained
26  * from Ocean Insight Incorporated.
27  *
28  **************************************************************************/
29 #ifndef ANALOGOUT_API_H
30 #define ANALOGOUT_API_H
31 
32 #include "api/DllDecl.h"
33 
40 namespace oceandirect {
41  namespace api {
42 
43  class DLL_DECL AnalogOutAPI {
44  public:
45  AnalogOutAPI();
46  virtual ~AnalogOutAPI();
47  static AnalogOutAPI *getInstance();
48 
49  static void shutdown();
50 
62  int getNumberOfVoltageDCOutputs(long deviceID, int *errorCode);
63 
75  double getMaximumOutputVoltageDC(long deviceID, int *errorCode);
76 
88  double getMinimumOutputVoltageDC(long deviceID, int *errorCode);
89 
102  void setVoltageDCOutVolts(long deviceID, int *errorCode,
103  int output, double voltage);
104 
117  void configureAltPin(long deviceID, int *errorCode, int pinNumber,
118  int pinType);
119 
120  private:
121  static AnalogOutAPI *instance;
122 
123  };
124  }
125 }
126 #endif /* ANALOGOUT_API_H */
127 
Definition: AnalogOutAPI.h:43
double getMinimumOutputVoltageDC(long deviceID, int *errorCode)
int getNumberOfVoltageDCOutputs(long deviceID, int *errorCode)
void configureAltPin(long deviceID, int *errorCode, int pinNumber, int pinType)
void setVoltageDCOutVolts(long deviceID, int *errorCode, int output, double voltage)
double getMaximumOutputVoltageDC(long deviceID, int *errorCode)
This is an interface to OceanDirect that allows the user to connect to devices over USB and other bus...
Definition: DeviceFactory.h:38