nScopeAPI  v0.8
nScopeAPI_defs.h
Go to the documentation of this file.
1 /*******************************************************
2  nScopeAPI - Multi-Platform library for
3  communication with nScope devices.
4 
5  David Meyer
6 
7  9/10/2016
8 
9  Copyright 2014, All Rights Reserved.
10 
11 ********************************************************/
12 
18 #ifndef NSCOPEAPI_DEFS_H__
19 #define NSCOPEAPI_DEFS_H__
20 
21  #ifdef _WIN32
22  #define NSCOPE_API_EXPORT __declspec(dllexport)
23  #define NSCOPE_API_CALL //__declspec(dllimport)
24  #else
25  #define NSCOPE_API_EXPORT
26  #define NSCOPE_API_CALL
27  #endif
28 
29  #define NSCOPE_API NSCOPE_API_EXPORT NSCOPE_API_CALL
31  struct scopeDev_;
32  typedef struct scopeDev_ *ScopeHandle;
34  struct request_;
35  typedef struct request_ *Request;
42  typedef enum
43  {
45  SUCCESS = 0,
47  UNKNOWN_ERROR = -100,
61  COMM_ERROR = -107,
76  } ErrorType;
77 
79  typedef enum
80  {
83  } TriggerEdge;
84 
86  typedef enum
87  {
89  POWER_OFF = 0,
90  POWER_ON = 1,
91  SHORTED = 2,
93  } PowerState;
94 
96  typedef enum
97  {
98  SINE_WAVE = 0,
100  } WaveType;
101 
102 #endif
Definition: nScopeAPI_defs.h:55
Definition: nScopeAPI_defs.h:53
Definition: nScopeAPI_defs.h:90
Definition: nScopeAPI_defs.h:49
Definition: nScopeAPI_defs.h:67
Definition: nScopeAPI_defs.h:75
Definition: nScopeAPI_defs.h:51
Definition: nScopeAPI_defs.h:59
ErrorType
Definition: nScopeAPI_defs.h:42
Definition: nScopeAPI_defs.h:57
Definition: nScopeAPI_defs.h:65
Definition: nScopeAPI_defs.h:45
Definition: nScopeAPI_defs.h:47
PowerState
Definition: nScopeAPI_defs.h:86
TriggerEdge
Definition: nScopeAPI_defs.h:79
Definition: nScopeAPI_defs.h:81
Definition: nScopeAPI_defs.h:88
Definition: nScopeAPI_defs.h:73
Definition: nScopeAPI_defs.h:99
Definition: nScopeAPI_defs.h:92
Definition: nScopeAPI_defs.h:98
Definition: nScopeAPI_defs.h:89
struct scopeDev_ * ScopeHandle
Definition: nScopeAPI_defs.h:32
Definition: nScopeAPI_defs.h:71
Definition: nScopeAPI_defs.h:82
Definition: nScopeAPI_defs.h:63
struct request_ * Request
Definition: nScopeAPI_defs.h:35
Definition: nScopeAPI_defs.h:69
Definition: nScopeAPI_defs.h:91
Definition: nScopeAPI_defs.h:61
WaveType
Definition: nScopeAPI_defs.h:96