C++Instrument Catalog MFC 1.2
Metrolab C++InstrumentCatalog for MFC
Loading...
Searching...
No Matches
visatype.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*/
2/* Distributed by IVI Foundation Inc. */
3/* */
4/* Do not modify the contents of this file. */
5/*---------------------------------------------------------------------------*/
6/* */
7/* Title : VISATYPE.H */
8/* Date : 07-22-2015 */
9/* Purpose : Fundamental VISA data types and macro definitions */
10/* */
11/*---------------------------------------------------------------------------*/
12
13/* IviVisaType.h defines the include guard of this file for backward
14 * compatibility reasons. Please ensure that changes in this file are reflected
15 * in IviVisaType.h when necessary.
16 */
17#ifndef __VISATYPE_HEADER__
18#define __VISATYPE_HEADER__
19
20#if defined(_WIN64)
21#define _VI_FAR
22#define _VI_FUNC __fastcall
23#define _VI_FUNCC __fastcall
24#define _VI_FUNCH __fastcall
25#define _VI_SIGNED signed
26#elif (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)) && !defined(_NI_mswin16_)
27#define _VI_FAR
28#define _VI_FUNC __stdcall
29#define _VI_FUNCC __cdecl
30#define _VI_FUNCH __stdcall
31#define _VI_SIGNED signed
32#elif defined(_CVI_) && defined(_NI_i386_)
33#define _VI_FAR
34#define _VI_FUNC _pascal
35#define _VI_FUNCC
36#define _VI_FUNCH _pascal
37#define _VI_SIGNED signed
38#elif (defined(_WINDOWS) || defined(_Windows)) && !defined(_NI_mswin16_)
39#define _VI_FAR _far
40#define _VI_FUNC _far _pascal _export
41#define _VI_FUNCC _far _cdecl _export
42#define _VI_FUNCH _far _pascal
43#define _VI_SIGNED signed
44#elif (defined(hpux) || defined(__hpux)) && (defined(__cplusplus) || defined(__cplusplus__))
45#define _VI_FAR
46#define _VI_FUNC
47#define _VI_FUNCC
48#define _VI_FUNCH
49#define _VI_SIGNED
50#else
51#define _VI_FAR
52#define _VI_FUNC
53#define _VI_FUNCC
54#define _VI_FUNCH
55#define _VI_SIGNED signed
56#endif
57
58#define _VI_ERROR (-2147483647L-1) /* 0x80000000 */
59#define _VI_PTR _VI_FAR *
60
61/*- VISA Types --------------------------------------------------------------*/
62
63#ifndef _VI_INT64_UINT64_DEFINED
64#if defined(_WIN64) || ((defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)) && !defined(_NI_mswin16_))
65#if (defined(_MSC_VER) && (_MSC_VER >= 1200)) || (defined(_CVI_) && (_CVI_ >= 700)) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x0520)) || defined(__LCC__) || (defined(__GNUC__) && (__GNUC__ >= 3)) || (defined(__clang__) && (__clang_major__ >= 3))
66typedef unsigned __int64 ViUInt64;
67typedef _VI_SIGNED __int64 ViInt64;
68#define _VI_INT64_UINT64_DEFINED
69#if defined(_WIN64)
70#define _VISA_ENV_IS_64_BIT
71#else
72/* This is a 32-bit OS, not a 64-bit OS */
73#endif
74#endif
75#elif defined(__GNUC__) && (__GNUC__ >= 3)
76#include <limits.h>
77#include <sys/types.h>
78typedef u_int64_t ViUInt64;
79typedef int64_t ViInt64;
80#define _VI_INT64_UINT64_DEFINED
81#if defined(LONG_MAX) && (LONG_MAX > 0x7FFFFFFFL)
82#define _VISA_ENV_IS_64_BIT
83#else
84/* This is a 32-bit OS, not a 64-bit OS */
85#endif
86#else
87/* This platform does not support 64-bit types */
88#endif
89#endif
90
91#if defined(_VI_INT64_UINT64_DEFINED)
92typedef ViUInt64 _VI_PTR ViPUInt64;
93typedef ViUInt64 _VI_PTR ViAUInt64;
94typedef ViInt64 _VI_PTR ViPInt64;
95typedef ViInt64 _VI_PTR ViAInt64;
96#endif
97
98#if defined(LONG_MAX) && (LONG_MAX > 0x7FFFFFFFL)
99typedef unsigned int ViUInt32;
100typedef _VI_SIGNED int ViInt32;
101#else
102typedef unsigned long ViUInt32;
103typedef _VI_SIGNED long ViInt32;
104#endif
105
110
111typedef unsigned short ViUInt16;
114
115typedef _VI_SIGNED short ViInt16;
118
119typedef unsigned char ViUInt8;
122
123typedef _VI_SIGNED char ViInt8;
126
127typedef char ViChar;
130
131typedef unsigned char ViByte;
134
135typedef void _VI_PTR ViAddr;
138
139typedef float ViReal32;
142
143typedef double ViReal64;
146
150
154
158
162
166
170
174
178
180
181#ifndef _VI_CONST_STRING_DEFINED
182typedef const ViChar * ViConstString;
183#define _VI_CONST_STRING_DEFINED
184#endif
185
186/*- Completion and Error Codes ----------------------------------------------*/
187
188#define VI_SUCCESS (0L)
189
190/*- Other VISA Definitions --------------------------------------------------*/
191
192#define VI_NULL (0)
193
194#define VI_TRUE (1)
195#define VI_FALSE (0)
196
197/*- Backward Compatibility Macros -------------------------------------------*/
198
199#define VISAFN _VI_FUNC
200#define ViPtr _VI_PTR
201
202#endif
203
204/*- The End -----------------------------------------------------------------*/
205
ViInt32 _VI_PTR ViAInt32
Definition visatype.h:109
ViInt16 _VI_PTR ViAInt16
Definition visatype.h:117
ViByte _VI_PTR ViPByte
Definition visatype.h:132
ViUInt16 _VI_PTR ViAUInt16
Definition visatype.h:113
unsigned char ViUInt8
Definition visatype.h:119
ViInt8 _VI_PTR ViAInt8
Definition visatype.h:125
_VI_SIGNED long ViInt32
Definition visatype.h:103
ViObject _VI_PTR ViAObject
Definition visatype.h:173
ViString _VI_PTR ViARsrc
Definition visatype.h:157
const ViChar * ViConstString
Definition visatype.h:182
ViPByte ViBuf
Definition visatype.h:147
unsigned long ViUInt32
Definition visatype.h:102
ViReal32 _VI_PTR ViPReal32
Definition visatype.h:140
ViPByte _VI_PTR ViABuf
Definition visatype.h:149
ViBoolean _VI_PTR ViABoolean
Definition visatype.h:161
#define _VI_SIGNED
Definition visatype.h:55
ViReal64 _VI_PTR ViAReal64
Definition visatype.h:145
ViString ViRsrc
Definition visatype.h:155
#define _VI_PTR
Definition visatype.h:59
ViUInt32 _VI_PTR ViPUInt32
Definition visatype.h:106
ViStatus _VI_PTR ViPStatus
Definition visatype.h:164
ViUInt16 _VI_PTR ViPUInt16
Definition visatype.h:112
ViPByte ViPBuf
Definition visatype.h:148
ViString ViPRsrc
Definition visatype.h:156
ViUInt32 _VI_PTR ViAUInt32
Definition visatype.h:107
ViVersion _VI_PTR ViPVersion
Definition visatype.h:168
ViPChar ViPString
Definition visatype.h:152
ViAddr _VI_PTR ViPAddr
Definition visatype.h:136
ViUInt32 ViObject
Definition visatype.h:171
ViAddr _VI_PTR ViAAddr
Definition visatype.h:137
ViInt32 _VI_PTR ViPInt32
Definition visatype.h:108
ViSession _VI_PTR ViPSession
Definition visatype.h:176
ViUInt32 ViAttr
Definition visatype.h:179
ViInt32 ViStatus
Definition visatype.h:163
ViVersion _VI_PTR ViAVersion
Definition visatype.h:169
void _VI_PTR ViAddr
Definition visatype.h:135
ViUInt16 ViBoolean
Definition visatype.h:159
ViSession _VI_PTR ViASession
Definition visatype.h:177
ViByte _VI_PTR ViAByte
Definition visatype.h:133
ViObject _VI_PTR ViPObject
Definition visatype.h:172
ViReal32 _VI_PTR ViAReal32
Definition visatype.h:141
ViPChar _VI_PTR ViAString
Definition visatype.h:153
ViUInt8 _VI_PTR ViPUInt8
Definition visatype.h:120
ViUInt8 _VI_PTR ViAUInt8
Definition visatype.h:121
unsigned char ViByte
Definition visatype.h:131
ViStatus _VI_PTR ViAStatus
Definition visatype.h:165
ViPChar ViString
Definition visatype.h:151
ViBoolean _VI_PTR ViPBoolean
Definition visatype.h:160
_VI_SIGNED short ViInt16
Definition visatype.h:115
unsigned short ViUInt16
Definition visatype.h:111
ViUInt32 ViVersion
Definition visatype.h:167
ViInt8 _VI_PTR ViPInt8
Definition visatype.h:124
ViChar _VI_PTR ViAChar
Definition visatype.h:129
ViChar _VI_PTR ViPChar
Definition visatype.h:128
_VI_SIGNED char ViInt8
Definition visatype.h:123
char ViChar
Definition visatype.h:127
ViReal64 _VI_PTR ViPReal64
Definition visatype.h:144
float ViReal32
Definition visatype.h:139
ViInt16 _VI_PTR ViPInt16
Definition visatype.h:116
double ViReal64
Definition visatype.h:143
ViObject ViSession
Definition visatype.h:175