Skip to main content

visa_sys/prebind/
bindings_dynamic.rs

1/* automatically generated by rust-bindgen 0.72.1
2Constants and type definitions taken from the cross-platform static
3prebindings (bindings.rs) which were hand-adjusted per platform.
4The LibVisa struct/impl is generated by bindgen --dynamic-loading.
5extern "system" is used throughout for cross-platform compatibility
6(stdcall on Windows, C on other platforms). */
7
8pub const __GNUC_VA_LIST: ViUInt32 = 1;
9pub const _VI_ERROR: ViInt32 = -2147483648;
10pub const VI_SUCCESS: ViUInt32 = 0;
11pub const VI_NULL: ViUInt32 = 0;
12pub const VI_TRUE: ViUInt32 = 1;
13pub const VI_FALSE: ViUInt32 = 0;
14pub const VI_SPEC_VERSION: ViUInt32 = 7340288;
15pub const VI_ATTR_RSRC_CLASS: ViUInt32 = 3221159937;
16pub const VI_ATTR_RSRC_NAME: ViUInt32 = 3221159938;
17pub const VI_ATTR_RSRC_IMPL_VERSION: ViUInt32 = 1073676291;
18pub const VI_ATTR_RSRC_LOCK_STATE: ViUInt32 = 1073676292;
19pub const VI_ATTR_MAX_QUEUE_LENGTH: ViUInt32 = 1073676293;
20pub const VI_ATTR_USER_DATA_32: ViUInt32 = 1073676295;
21pub const VI_ATTR_FDC_CHNL: ViUInt32 = 1073676301;
22pub const VI_ATTR_FDC_MODE: ViUInt32 = 1073676303;
23pub const VI_ATTR_FDC_GEN_SIGNAL_EN: ViUInt32 = 1073676305;
24pub const VI_ATTR_FDC_USE_PAIR: ViUInt32 = 1073676307;
25pub const VI_ATTR_SEND_END_EN: ViUInt32 = 1073676310;
26pub const VI_ATTR_TERMCHAR: ViUInt32 = 1073676312;
27pub const VI_ATTR_TMO_VALUE: ViUInt32 = 1073676314;
28pub const VI_ATTR_GPIB_READDR_EN: ViUInt32 = 1073676315;
29pub const VI_ATTR_IO_PROT: ViUInt32 = 1073676316;
30pub const VI_ATTR_DMA_ALLOW_EN: ViUInt32 = 1073676318;
31pub const VI_ATTR_ASRL_BAUD: ViUInt32 = 1073676321;
32pub const VI_ATTR_ASRL_DATA_BITS: ViUInt32 = 1073676322;
33pub const VI_ATTR_ASRL_PARITY: ViUInt32 = 1073676323;
34pub const VI_ATTR_ASRL_STOP_BITS: ViUInt32 = 1073676324;
35pub const VI_ATTR_ASRL_FLOW_CNTRL: ViUInt32 = 1073676325;
36pub const VI_ATTR_RD_BUF_OPER_MODE: ViUInt32 = 1073676330;
37pub const VI_ATTR_RD_BUF_SIZE: ViUInt32 = 1073676331;
38pub const VI_ATTR_WR_BUF_OPER_MODE: ViUInt32 = 1073676333;
39pub const VI_ATTR_WR_BUF_SIZE: ViUInt32 = 1073676334;
40pub const VI_ATTR_SUPPRESS_END_EN: ViUInt32 = 1073676342;
41pub const VI_ATTR_TERMCHAR_EN: ViUInt32 = 1073676344;
42pub const VI_ATTR_DEST_ACCESS_PRIV: ViUInt32 = 1073676345;
43pub const VI_ATTR_DEST_BYTE_ORDER: ViUInt32 = 1073676346;
44pub const VI_ATTR_SRC_ACCESS_PRIV: ViUInt32 = 1073676348;
45pub const VI_ATTR_SRC_BYTE_ORDER: ViUInt32 = 1073676349;
46pub const VI_ATTR_SRC_INCREMENT: ViUInt32 = 1073676352;
47pub const VI_ATTR_DEST_INCREMENT: ViUInt32 = 1073676353;
48pub const VI_ATTR_WIN_ACCESS_PRIV: ViUInt32 = 1073676357;
49pub const VI_ATTR_WIN_BYTE_ORDER: ViUInt32 = 1073676359;
50pub const VI_ATTR_GPIB_ATN_STATE: ViUInt32 = 1073676375;
51pub const VI_ATTR_GPIB_ADDR_STATE: ViUInt32 = 1073676380;
52pub const VI_ATTR_GPIB_CIC_STATE: ViUInt32 = 1073676382;
53pub const VI_ATTR_GPIB_NDAC_STATE: ViUInt32 = 1073676386;
54pub const VI_ATTR_GPIB_SRQ_STATE: ViUInt32 = 1073676391;
55pub const VI_ATTR_GPIB_SYS_CNTRL_STATE: ViUInt32 = 1073676392;
56pub const VI_ATTR_GPIB_HS488_CBL_LEN: ViUInt32 = 1073676393;
57pub const VI_ATTR_CMDR_LA: ViUInt32 = 1073676395;
58pub const VI_ATTR_VXI_DEV_CLASS: ViUInt32 = 1073676396;
59pub const VI_ATTR_MAINFRAME_LA: ViUInt32 = 1073676400;
60pub const VI_ATTR_MANF_NAME: ViUInt32 = 3221160050;
61pub const VI_ATTR_MODEL_NAME: ViUInt32 = 3221160055;
62pub const VI_ATTR_VXI_VME_INTR_STATUS: ViUInt32 = 1073676427;
63pub const VI_ATTR_VXI_TRIG_STATUS: ViUInt32 = 1073676429;
64pub const VI_ATTR_VXI_VME_SYSFAIL_STATE: ViUInt32 = 1073676436;
65pub const VI_ATTR_WIN_BASE_ADDR_32: ViUInt32 = 1073676440;
66pub const VI_ATTR_WIN_SIZE_32: ViUInt32 = 1073676442;
67pub const VI_ATTR_ASRL_AVAIL_NUM: ViUInt32 = 1073676460;
68pub const VI_ATTR_MEM_BASE_32: ViUInt32 = 1073676461;
69pub const VI_ATTR_ASRL_CTS_STATE: ViUInt32 = 1073676462;
70pub const VI_ATTR_ASRL_DCD_STATE: ViUInt32 = 1073676463;
71pub const VI_ATTR_ASRL_DSR_STATE: ViUInt32 = 1073676465;
72pub const VI_ATTR_ASRL_DTR_STATE: ViUInt32 = 1073676466;
73pub const VI_ATTR_ASRL_END_IN: ViUInt32 = 1073676467;
74pub const VI_ATTR_ASRL_END_OUT: ViUInt32 = 1073676468;
75pub const VI_ATTR_ASRL_REPLACE_CHAR: ViUInt32 = 1073676478;
76pub const VI_ATTR_ASRL_RI_STATE: ViUInt32 = 1073676479;
77pub const VI_ATTR_ASRL_RTS_STATE: ViUInt32 = 1073676480;
78pub const VI_ATTR_ASRL_XON_CHAR: ViUInt32 = 1073676481;
79pub const VI_ATTR_ASRL_XOFF_CHAR: ViUInt32 = 1073676482;
80pub const VI_ATTR_WIN_ACCESS: ViUInt32 = 1073676483;
81pub const VI_ATTR_RM_SESSION: ViUInt32 = 1073676484;
82pub const VI_ATTR_VXI_LA: ViUInt32 = 1073676501;
83pub const VI_ATTR_MANF_ID: ViUInt32 = 1073676505;
84pub const VI_ATTR_MEM_SIZE_32: ViUInt32 = 1073676509;
85pub const VI_ATTR_MEM_SPACE: ViUInt32 = 1073676510;
86pub const VI_ATTR_MODEL_CODE: ViUInt32 = 1073676511;
87pub const VI_ATTR_SLOT: ViUInt32 = 1073676520;
88pub const VI_ATTR_INTF_INST_NAME: ViUInt32 = 3221160169;
89pub const VI_ATTR_IMMEDIATE_SERV: ViUInt32 = 1073676544;
90pub const VI_ATTR_INTF_PARENT_NUM: ViUInt32 = 1073676545;
91pub const VI_ATTR_RSRC_SPEC_VERSION: ViUInt32 = 1073676656;
92pub const VI_ATTR_INTF_TYPE: ViUInt32 = 1073676657;
93pub const VI_ATTR_GPIB_PRIMARY_ADDR: ViUInt32 = 1073676658;
94pub const VI_ATTR_GPIB_SECONDARY_ADDR: ViUInt32 = 1073676659;
95pub const VI_ATTR_RSRC_MANF_NAME: ViUInt32 = 3221160308;
96pub const VI_ATTR_RSRC_MANF_ID: ViUInt32 = 1073676661;
97pub const VI_ATTR_INTF_NUM: ViUInt32 = 1073676662;
98pub const VI_ATTR_TRIG_ID: ViUInt32 = 1073676663;
99pub const VI_ATTR_GPIB_REN_STATE: ViUInt32 = 1073676673;
100pub const VI_ATTR_GPIB_UNADDR_EN: ViUInt32 = 1073676676;
101pub const VI_ATTR_DEV_STATUS_BYTE: ViUInt32 = 1073676681;
102pub const VI_ATTR_FILE_APPEND_EN: ViUInt32 = 1073676690;
103pub const VI_ATTR_VXI_TRIG_SUPPORT: ViUInt32 = 1073676692;
104pub const VI_ATTR_TCPIP_ADDR: ViUInt32 = 3221160341;
105pub const VI_ATTR_TCPIP_HOSTNAME: ViUInt32 = 3221160342;
106pub const VI_ATTR_TCPIP_PORT: ViUInt32 = 1073676695;
107pub const VI_ATTR_TCPIP_DEVICE_NAME: ViUInt32 = 3221160345;
108pub const VI_ATTR_TCPIP_NODELAY: ViUInt32 = 1073676698;
109pub const VI_ATTR_TCPIP_KEEPALIVE: ViUInt32 = 1073676699;
110pub const VI_ATTR_4882_COMPLIANT: ViUInt32 = 1073676703;
111pub const VI_ATTR_USB_SERIAL_NUM: ViUInt32 = 3221160352;
112pub const VI_ATTR_USB_INTFC_NUM: ViUInt32 = 1073676705;
113pub const VI_ATTR_USB_PROTOCOL: ViUInt32 = 1073676711;
114pub const VI_ATTR_USB_MAX_INTR_SIZE: ViUInt32 = 1073676719;
115pub const VI_ATTR_PXI_DEV_NUM: ViUInt32 = 1073676801;
116pub const VI_ATTR_PXI_FUNC_NUM: ViUInt32 = 1073676802;
117pub const VI_ATTR_PXI_BUS_NUM: ViUInt32 = 1073676805;
118pub const VI_ATTR_PXI_CHASSIS: ViUInt32 = 1073676806;
119pub const VI_ATTR_PXI_SLOTPATH: ViUInt32 = 3221160455;
120pub const VI_ATTR_PXI_SLOT_LBUS_LEFT: ViUInt32 = 1073676808;
121pub const VI_ATTR_PXI_SLOT_LBUS_RIGHT: ViUInt32 = 1073676809;
122pub const VI_ATTR_PXI_TRIG_BUS: ViUInt32 = 1073676810;
123pub const VI_ATTR_PXI_STAR_TRIG_BUS: ViUInt32 = 1073676811;
124pub const VI_ATTR_PXI_STAR_TRIG_LINE: ViUInt32 = 1073676812;
125pub const VI_ATTR_PXI_SRC_TRIG_BUS: ViUInt32 = 1073676813;
126pub const VI_ATTR_PXI_DEST_TRIG_BUS: ViUInt32 = 1073676814;
127pub const VI_ATTR_PXI_MEM_TYPE_BAR0: ViUInt32 = 1073676817;
128pub const VI_ATTR_PXI_MEM_TYPE_BAR1: ViUInt32 = 1073676818;
129pub const VI_ATTR_PXI_MEM_TYPE_BAR2: ViUInt32 = 1073676819;
130pub const VI_ATTR_PXI_MEM_TYPE_BAR3: ViUInt32 = 1073676820;
131pub const VI_ATTR_PXI_MEM_TYPE_BAR4: ViUInt32 = 1073676821;
132pub const VI_ATTR_PXI_MEM_TYPE_BAR5: ViUInt32 = 1073676822;
133pub const VI_ATTR_PXI_MEM_BASE_BAR0_32: ViUInt32 = 1073676833;
134pub const VI_ATTR_PXI_MEM_BASE_BAR1_32: ViUInt32 = 1073676834;
135pub const VI_ATTR_PXI_MEM_BASE_BAR2_32: ViUInt32 = 1073676835;
136pub const VI_ATTR_PXI_MEM_BASE_BAR3_32: ViUInt32 = 1073676836;
137pub const VI_ATTR_PXI_MEM_BASE_BAR4_32: ViUInt32 = 1073676837;
138pub const VI_ATTR_PXI_MEM_BASE_BAR5_32: ViUInt32 = 1073676838;
139pub const VI_ATTR_PXI_MEM_BASE_BAR0_64: ViUInt32 = 1073676840;
140pub const VI_ATTR_PXI_MEM_BASE_BAR1_64: ViUInt32 = 1073676841;
141pub const VI_ATTR_PXI_MEM_BASE_BAR2_64: ViUInt32 = 1073676842;
142pub const VI_ATTR_PXI_MEM_BASE_BAR3_64: ViUInt32 = 1073676843;
143pub const VI_ATTR_PXI_MEM_BASE_BAR4_64: ViUInt32 = 1073676844;
144pub const VI_ATTR_PXI_MEM_BASE_BAR5_64: ViUInt32 = 1073676845;
145pub const VI_ATTR_PXI_MEM_SIZE_BAR0_32: ViUInt32 = 1073676849;
146pub const VI_ATTR_PXI_MEM_SIZE_BAR1_32: ViUInt32 = 1073676850;
147pub const VI_ATTR_PXI_MEM_SIZE_BAR2_32: ViUInt32 = 1073676851;
148pub const VI_ATTR_PXI_MEM_SIZE_BAR3_32: ViUInt32 = 1073676852;
149pub const VI_ATTR_PXI_MEM_SIZE_BAR4_32: ViUInt32 = 1073676853;
150pub const VI_ATTR_PXI_MEM_SIZE_BAR5_32: ViUInt32 = 1073676854;
151pub const VI_ATTR_PXI_MEM_SIZE_BAR0_64: ViUInt32 = 1073676856;
152pub const VI_ATTR_PXI_MEM_SIZE_BAR1_64: ViUInt32 = 1073676857;
153pub const VI_ATTR_PXI_MEM_SIZE_BAR2_64: ViUInt32 = 1073676858;
154pub const VI_ATTR_PXI_MEM_SIZE_BAR3_64: ViUInt32 = 1073676859;
155pub const VI_ATTR_PXI_MEM_SIZE_BAR4_64: ViUInt32 = 1073676860;
156pub const VI_ATTR_PXI_MEM_SIZE_BAR5_64: ViUInt32 = 1073676861;
157pub const VI_ATTR_PXI_IS_EXPRESS: ViUInt32 = 1073676864;
158pub const VI_ATTR_PXI_SLOT_LWIDTH: ViUInt32 = 1073676865;
159pub const VI_ATTR_PXI_MAX_LWIDTH: ViUInt32 = 1073676866;
160pub const VI_ATTR_PXI_ACTUAL_LWIDTH: ViUInt32 = 1073676867;
161pub const VI_ATTR_PXI_DSTAR_BUS: ViUInt32 = 1073676868;
162pub const VI_ATTR_PXI_DSTAR_SET: ViUInt32 = 1073676869;
163pub const VI_ATTR_PXI_ALLOW_WRITE_COMBINE: ViUInt32 = 1073676870;
164pub const VI_ATTR_TCPIP_SERVER_CERT_ISSUER_NAME: ViUInt32 = 3221160560;
165pub const VI_ATTR_TCPIP_SERVER_CERT_SUBJECT_NAME: ViUInt32 = 3221160561;
166pub const VI_ATTR_TCPIP_SERVER_CERT_EXPIRATION_DATE: ViUInt32 = 3221160562;
167pub const VI_ATTR_TCPIP_SERVER_CERT_IS_PERPETUAL: ViUInt32 = 1073676915;
168pub const VI_ATTR_TCPIP_SASL_MECHANISM: ViUInt32 = 3221160564;
169pub const VI_ATTR_TCPIP_TLS_CIPHER_SUITE: ViUInt32 = 3221160565;
170pub const VI_ATTR_TCPIP_HISLIP_OVERLAP_EN: ViUInt32 = 1073677056;
171pub const VI_ATTR_TCPIP_HISLIP_VERSION: ViUInt32 = 1073677057;
172pub const VI_ATTR_TCPIP_HISLIP_MAX_MESSAGE_KB: ViUInt32 = 1073677058;
173pub const VI_ATTR_TCPIP_IS_HISLIP: ViUInt32 = 1073677059;
174pub const VI_ATTR_TCPIP_HISLIP_ENCRYPTION_EN: ViUInt32 = 1073677060;
175pub const VI_ATTR_JOB_ID: ViUInt32 = 1073692678;
176pub const VI_ATTR_EVENT_TYPE: ViUInt32 = 1073692688;
177pub const VI_ATTR_SIGP_STATUS_ID: ViUInt32 = 1073692689;
178pub const VI_ATTR_RECV_TRIG_ID: ViUInt32 = 1073692690;
179pub const VI_ATTR_INTR_STATUS_ID: ViUInt32 = 1073692707;
180pub const VI_ATTR_STATUS: ViUInt32 = 1073692709;
181pub const VI_ATTR_RET_COUNT_32: ViUInt32 = 1073692710;
182pub const VI_ATTR_BUFFER: ViUInt32 = 1073692711;
183pub const VI_ATTR_RECV_INTR_LEVEL: ViUInt32 = 1073692737;
184pub const VI_ATTR_OPER_NAME: ViUInt32 = 3221176386;
185pub const VI_ATTR_GPIB_RECV_CIC_STATE: ViUInt32 = 1073693075;
186pub const VI_ATTR_RECV_TCPIP_ADDR: ViUInt32 = 3221176728;
187pub const VI_ATTR_USB_RECV_INTR_SIZE: ViUInt32 = 1073693104;
188pub const VI_ATTR_USB_RECV_INTR_DATA: ViUInt32 = 3221176753;
189pub const VI_ATTR_PXI_RECV_INTR_SEQ: ViUInt32 = 1073693248;
190pub const VI_ATTR_PXI_RECV_INTR_DATA: ViUInt32 = 1073693249;
191pub const VI_ATTR_USER_DATA_64: ViUInt32 = 1073676298;
192pub const VI_ATTR_RET_COUNT_64: ViUInt32 = 1073692712;
193//pub const VI_ATTR_USER_DATA: ViUInt32 = 1073676298;
194//pub const VI_ATTR_RET_COUNT: ViUInt32 = 1073692712;
195pub const VI_ATTR_WIN_BASE_ADDR_64: ViUInt32 = 1073676443;
196pub const VI_ATTR_WIN_SIZE_64: ViUInt32 = 1073676444;
197pub const VI_ATTR_MEM_BASE_64: ViUInt32 = 1073676496;
198pub const VI_ATTR_MEM_SIZE_64: ViUInt32 = 1073676497;
199//pub const VI_ATTR_WIN_BASE_ADDR: ViUInt32 = 1073676443;
200//pub const VI_ATTR_WIN_SIZE: ViUInt32 = 1073676444;
201//pub const VI_ATTR_MEM_BASE: ViUInt32 = 1073676496;
202//pub const VI_ATTR_MEM_SIZE: ViUInt32 = 1073676497;
203//pub const VI_ATTR_PXI_MEM_BASE_BAR0: ViUInt32 = 1073676840;
204//pub const VI_ATTR_PXI_MEM_BASE_BAR1: ViUInt32 = 1073676841;
205//pub const VI_ATTR_PXI_MEM_BASE_BAR2: ViUInt32 = 1073676842;
206//pub const VI_ATTR_PXI_MEM_BASE_BAR3: ViUInt32 = 1073676843;
207//pub const VI_ATTR_PXI_MEM_BASE_BAR4: ViUInt32 = 1073676844;
208//pub const VI_ATTR_PXI_MEM_BASE_BAR5: ViUInt32 = 1073676845;
209//pub const VI_ATTR_PXI_MEM_SIZE_BAR0: ViUInt32 = 1073676856;
210//pub const VI_ATTR_PXI_MEM_SIZE_BAR1: ViUInt32 = 1073676857;
211//pub const VI_ATTR_PXI_MEM_SIZE_BAR2: ViUInt32 = 1073676858;
212//pub const VI_ATTR_PXI_MEM_SIZE_BAR3: ViUInt32 = 1073676859;
213//pub const VI_ATTR_PXI_MEM_SIZE_BAR4: ViUInt32 = 1073676860;
214//pub const VI_ATTR_PXI_MEM_SIZE_BAR5: ViUInt32 = 1073676861;
215pub const VI_EVENT_IO_COMPLETION: ViUInt32 = 1073684489;
216pub const VI_EVENT_TRIG: ViUInt32 = 3221168138;
217pub const VI_EVENT_SERVICE_REQ: ViUInt32 = 1073684491;
218pub const VI_EVENT_CLEAR: ViUInt32 = 1073684493;
219pub const VI_EVENT_EXCEPTION: ViUInt32 = 3221168142;
220pub const VI_EVENT_GPIB_CIC: ViUInt32 = 1073684498;
221pub const VI_EVENT_GPIB_TALK: ViUInt32 = 1073684499;
222pub const VI_EVENT_GPIB_LISTEN: ViUInt32 = 1073684500;
223pub const VI_EVENT_VXI_VME_SYSFAIL: ViUInt32 = 1073684509;
224pub const VI_EVENT_VXI_VME_SYSRESET: ViUInt32 = 1073684510;
225pub const VI_EVENT_VXI_SIGP: ViUInt32 = 1073684512;
226pub const VI_EVENT_VXI_VME_INTR: ViUInt32 = 3221168161;
227pub const VI_EVENT_PXI_INTR: ViUInt32 = 1073684514;
228pub const VI_EVENT_TCPIP_CONNECT: ViUInt32 = 1073684534;
229pub const VI_EVENT_USB_INTR: ViUInt32 = 1073684535;
230pub const VI_ALL_ENABLED_EVENTS: ViUInt32 = 1073709055;
231pub const VI_SUCCESS_EVENT_EN: ViUInt32 = 1073676290;
232pub const VI_SUCCESS_EVENT_DIS: ViUInt32 = 1073676291;
233pub const VI_SUCCESS_QUEUE_EMPTY: ViUInt32 = 1073676292;
234pub const VI_SUCCESS_TERM_CHAR: ViUInt32 = 1073676293;
235pub const VI_SUCCESS_MAX_CNT: ViUInt32 = 1073676294;
236pub const VI_SUCCESS_DEV_NPRESENT: ViUInt32 = 1073676413;
237pub const VI_SUCCESS_TRIG_MAPPED: ViUInt32 = 1073676414;
238pub const VI_SUCCESS_QUEUE_NEMPTY: ViUInt32 = 1073676416;
239pub const VI_SUCCESS_NCHAIN: ViUInt32 = 1073676440;
240pub const VI_SUCCESS_NESTED_SHARED: ViUInt32 = 1073676441;
241pub const VI_SUCCESS_NESTED_EXCLUSIVE: ViUInt32 = 1073676442;
242pub const VI_SUCCESS_SYNC: ViUInt32 = 1073676443;
243pub const VI_WARN_QUEUE_OVERFLOW: ViUInt32 = 1073676300;
244pub const VI_WARN_CONFIG_NLOADED: ViUInt32 = 1073676407;
245pub const VI_WARN_NULL_OBJECT: ViUInt32 = 1073676418;
246pub const VI_WARN_NSUP_ATTR_STATE: ViUInt32 = 1073676420;
247pub const VI_WARN_UNKNOWN_STATUS: ViUInt32 = 1073676421;
248pub const VI_WARN_NSUP_BUF: ViUInt32 = 1073676424;
249pub const VI_WARN_EXT_FUNC_NIMPL: ViUInt32 = 1073676457;
250pub const VI_WARN_SERVER_CERT_UNTRUSTED: ViUInt32 = 1073676528;
251pub const VI_ERROR_SYSTEM_ERROR: ViInt32 = -1073807360;
252pub const VI_ERROR_INV_OBJECT: ViInt32 = -1073807346;
253pub const VI_ERROR_RSRC_LOCKED: ViInt32 = -1073807345;
254pub const VI_ERROR_INV_EXPR: ViInt32 = -1073807344;
255pub const VI_ERROR_RSRC_NFOUND: ViInt32 = -1073807343;
256pub const VI_ERROR_INV_RSRC_NAME: ViInt32 = -1073807342;
257pub const VI_ERROR_INV_ACC_MODE: ViInt32 = -1073807341;
258pub const VI_ERROR_TMO: ViInt32 = -1073807339;
259pub const VI_ERROR_CLOSING_FAILED: ViInt32 = -1073807338;
260pub const VI_ERROR_INV_DEGREE: ViInt32 = -1073807333;
261pub const VI_ERROR_INV_JOB_ID: ViInt32 = -1073807332;
262pub const VI_ERROR_NSUP_ATTR: ViInt32 = -1073807331;
263pub const VI_ERROR_NSUP_ATTR_STATE: ViInt32 = -1073807330;
264pub const VI_ERROR_ATTR_READONLY: ViInt32 = -1073807329;
265pub const VI_ERROR_INV_LOCK_TYPE: ViInt32 = -1073807328;
266pub const VI_ERROR_INV_ACCESS_KEY: ViInt32 = -1073807327;
267pub const VI_ERROR_INV_EVENT: ViInt32 = -1073807322;
268pub const VI_ERROR_INV_MECH: ViInt32 = -1073807321;
269pub const VI_ERROR_HNDLR_NINSTALLED: ViInt32 = -1073807320;
270pub const VI_ERROR_INV_HNDLR_REF: ViInt32 = -1073807319;
271pub const VI_ERROR_INV_CONTEXT: ViInt32 = -1073807318;
272pub const VI_ERROR_NENABLED: ViInt32 = -1073807313;
273pub const VI_ERROR_ABORT: ViInt32 = -1073807312;
274pub const VI_ERROR_RAW_WR_PROT_VIOL: ViInt32 = -1073807308;
275pub const VI_ERROR_RAW_RD_PROT_VIOL: ViInt32 = -1073807307;
276pub const VI_ERROR_OUTP_PROT_VIOL: ViInt32 = -1073807306;
277pub const VI_ERROR_INP_PROT_VIOL: ViInt32 = -1073807305;
278pub const VI_ERROR_BERR: ViInt32 = -1073807304;
279pub const VI_ERROR_IN_PROGRESS: ViInt32 = -1073807303;
280pub const VI_ERROR_INV_SETUP: ViInt32 = -1073807302;
281pub const VI_ERROR_QUEUE_ERROR: ViInt32 = -1073807301;
282pub const VI_ERROR_ALLOC: ViInt32 = -1073807300;
283pub const VI_ERROR_INV_MASK: ViInt32 = -1073807299;
284pub const VI_ERROR_IO: ViInt32 = -1073807298;
285pub const VI_ERROR_INV_FMT: ViInt32 = -1073807297;
286pub const VI_ERROR_NSUP_FMT: ViInt32 = -1073807295;
287pub const VI_ERROR_LINE_IN_USE: ViInt32 = -1073807294;
288pub const VI_ERROR_LINE_NRESERVED: ViInt32 = -1073807293;
289pub const VI_ERROR_NSUP_MODE: ViInt32 = -1073807290;
290pub const VI_ERROR_SRQ_NOCCURRED: ViInt32 = -1073807286;
291pub const VI_ERROR_INV_SPACE: ViInt32 = -1073807282;
292pub const VI_ERROR_INV_OFFSET: ViInt32 = -1073807279;
293pub const VI_ERROR_INV_WIDTH: ViInt32 = -1073807278;
294pub const VI_ERROR_NSUP_OFFSET: ViInt32 = -1073807276;
295pub const VI_ERROR_NSUP_VAR_WIDTH: ViInt32 = -1073807275;
296pub const VI_ERROR_WINDOW_NMAPPED: ViInt32 = -1073807273;
297pub const VI_ERROR_RESP_PENDING: ViInt32 = -1073807271;
298pub const VI_ERROR_NLISTENERS: ViInt32 = -1073807265;
299pub const VI_ERROR_NCIC: ViInt32 = -1073807264;
300pub const VI_ERROR_NSYS_CNTLR: ViInt32 = -1073807263;
301pub const VI_ERROR_NSUP_OPER: ViInt32 = -1073807257;
302pub const VI_ERROR_INTR_PENDING: ViInt32 = -1073807256;
303pub const VI_ERROR_ASRL_PARITY: ViInt32 = -1073807254;
304pub const VI_ERROR_ASRL_FRAMING: ViInt32 = -1073807253;
305pub const VI_ERROR_ASRL_OVERRUN: ViInt32 = -1073807252;
306pub const VI_ERROR_TRIG_NMAPPED: ViInt32 = -1073807250;
307pub const VI_ERROR_NSUP_ALIGN_OFFSET: ViInt32 = -1073807248;
308pub const VI_ERROR_USER_BUF: ViInt32 = -1073807247;
309pub const VI_ERROR_RSRC_BUSY: ViInt32 = -1073807246;
310pub const VI_ERROR_NSUP_WIDTH: ViInt32 = -1073807242;
311pub const VI_ERROR_INV_PARAMETER: ViInt32 = -1073807240;
312pub const VI_ERROR_INV_PROT: ViInt32 = -1073807239;
313pub const VI_ERROR_INV_SIZE: ViInt32 = -1073807237;
314pub const VI_ERROR_WINDOW_MAPPED: ViInt32 = -1073807232;
315pub const VI_ERROR_NIMPL_OPER: ViInt32 = -1073807231;
316pub const VI_ERROR_INV_LENGTH: ViInt32 = -1073807229;
317pub const VI_ERROR_INV_MODE: ViInt32 = -1073807215;
318pub const VI_ERROR_SESN_NLOCKED: ViInt32 = -1073807204;
319pub const VI_ERROR_MEM_NSHARED: ViInt32 = -1073807203;
320pub const VI_ERROR_LIBRARY_NFOUND: ViInt32 = -1073807202;
321pub const VI_ERROR_NSUP_INTR: ViInt32 = -1073807201;
322pub const VI_ERROR_INV_LINE: ViInt32 = -1073807200;
323pub const VI_ERROR_FILE_ACCESS: ViInt32 = -1073807199;
324pub const VI_ERROR_FILE_IO: ViInt32 = -1073807198;
325pub const VI_ERROR_NSUP_LINE: ViInt32 = -1073807197;
326pub const VI_ERROR_NSUP_MECH: ViInt32 = -1073807196;
327pub const VI_ERROR_INTF_NUM_NCONFIG: ViInt32 = -1073807195;
328pub const VI_ERROR_CONN_LOST: ViInt32 = -1073807194;
329pub const VI_ERROR_NPERMISSION: ViInt32 = -1073807192;
330pub const VI_ERROR_SERVER_CERT: ViInt32 = -1073807184;
331pub const VI_FIND_BUFLEN: ViUInt32 = 256;
332pub const VI_INTF_GPIB: ViUInt32 = 1;
333pub const VI_INTF_VXI: ViUInt32 = 2;
334pub const VI_INTF_GPIB_VXI: ViUInt32 = 3;
335pub const VI_INTF_ASRL: ViUInt32 = 4;
336pub const VI_INTF_PXI: ViUInt32 = 5;
337pub const VI_INTF_TCPIP: ViUInt32 = 6;
338pub const VI_INTF_USB: ViUInt32 = 7;
339pub const VI_PROT_NORMAL: ViUInt32 = 1;
340pub const VI_PROT_FDC: ViUInt32 = 2;
341pub const VI_PROT_HS488: ViUInt32 = 3;
342pub const VI_PROT_4882_STRS: ViUInt32 = 4;
343pub const VI_PROT_USBTMC_VENDOR: ViUInt32 = 5;
344pub const VI_FDC_NORMAL: ViUInt32 = 1;
345pub const VI_FDC_STREAM: ViUInt32 = 2;
346pub const VI_LOCAL_SPACE: ViUInt32 = 0;
347pub const VI_A16_SPACE: ViUInt32 = 1;
348pub const VI_A24_SPACE: ViUInt32 = 2;
349pub const VI_A32_SPACE: ViUInt32 = 3;
350pub const VI_A64_SPACE: ViUInt32 = 4;
351pub const VI_PXI_ALLOC_SPACE: ViUInt32 = 9;
352pub const VI_PXI_CFG_SPACE: ViUInt32 = 10;
353pub const VI_PXI_BAR0_SPACE: ViUInt32 = 11;
354pub const VI_PXI_BAR1_SPACE: ViUInt32 = 12;
355pub const VI_PXI_BAR2_SPACE: ViUInt32 = 13;
356pub const VI_PXI_BAR3_SPACE: ViUInt32 = 14;
357pub const VI_PXI_BAR4_SPACE: ViUInt32 = 15;
358pub const VI_PXI_BAR5_SPACE: ViUInt32 = 16;
359pub const VI_OPAQUE_SPACE: ViUInt32 = 65535;
360pub const VI_UNKNOWN_LA: ViInt32 = -1;
361pub const VI_UNKNOWN_SLOT: ViInt32 = -1;
362pub const VI_UNKNOWN_LEVEL: ViInt32 = -1;
363pub const VI_UNKNOWN_CHASSIS: ViInt32 = -1;
364pub const VI_QUEUE: ViUInt32 = 1;
365pub const VI_HNDLR: ViUInt32 = 2;
366pub const VI_SUSPEND_HNDLR: ViUInt32 = 4;
367pub const VI_ALL_MECH: ViUInt32 = 65535;
368pub const VI_ANY_HNDLR: ViUInt32 = 0;
369pub const VI_TRIG_ALL: ViInt32 = -2;
370pub const VI_TRIG_SW: ViInt32 = -1;
371pub const VI_TRIG_TTL0: ViUInt32 = 0;
372pub const VI_TRIG_TTL1: ViUInt32 = 1;
373pub const VI_TRIG_TTL2: ViUInt32 = 2;
374pub const VI_TRIG_TTL3: ViUInt32 = 3;
375pub const VI_TRIG_TTL4: ViUInt32 = 4;
376pub const VI_TRIG_TTL5: ViUInt32 = 5;
377pub const VI_TRIG_TTL6: ViUInt32 = 6;
378pub const VI_TRIG_TTL7: ViUInt32 = 7;
379pub const VI_TRIG_ECL0: ViUInt32 = 8;
380pub const VI_TRIG_ECL1: ViUInt32 = 9;
381pub const VI_TRIG_ECL2: ViUInt32 = 10;
382pub const VI_TRIG_ECL3: ViUInt32 = 11;
383pub const VI_TRIG_ECL4: ViUInt32 = 12;
384pub const VI_TRIG_ECL5: ViUInt32 = 13;
385pub const VI_TRIG_STAR_SLOT1: ViUInt32 = 14;
386pub const VI_TRIG_STAR_SLOT2: ViUInt32 = 15;
387pub const VI_TRIG_STAR_SLOT3: ViUInt32 = 16;
388pub const VI_TRIG_STAR_SLOT4: ViUInt32 = 17;
389pub const VI_TRIG_STAR_SLOT5: ViUInt32 = 18;
390pub const VI_TRIG_STAR_SLOT6: ViUInt32 = 19;
391pub const VI_TRIG_STAR_SLOT7: ViUInt32 = 20;
392pub const VI_TRIG_STAR_SLOT8: ViUInt32 = 21;
393pub const VI_TRIG_STAR_SLOT9: ViUInt32 = 22;
394pub const VI_TRIG_STAR_SLOT10: ViUInt32 = 23;
395pub const VI_TRIG_STAR_SLOT11: ViUInt32 = 24;
396pub const VI_TRIG_STAR_SLOT12: ViUInt32 = 25;
397pub const VI_TRIG_STAR_INSTR: ViUInt32 = 26;
398pub const VI_TRIG_PANEL_IN: ViUInt32 = 27;
399pub const VI_TRIG_PANEL_OUT: ViUInt32 = 28;
400pub const VI_TRIG_STAR_VXI0: ViUInt32 = 29;
401pub const VI_TRIG_STAR_VXI1: ViUInt32 = 30;
402pub const VI_TRIG_STAR_VXI2: ViUInt32 = 31;
403pub const VI_TRIG_TTL8: ViUInt32 = 32;
404pub const VI_TRIG_TTL9: ViUInt32 = 33;
405pub const VI_TRIG_TTL10: ViUInt32 = 34;
406pub const VI_TRIG_TTL11: ViUInt32 = 35;
407pub const VI_TRIG_PROT_DEFAULT: ViUInt32 = 0;
408pub const VI_TRIG_PROT_ON: ViUInt32 = 1;
409pub const VI_TRIG_PROT_OFF: ViUInt32 = 2;
410pub const VI_TRIG_PROT_SYNC: ViUInt32 = 5;
411pub const VI_TRIG_PROT_RESERVE: ViUInt32 = 6;
412pub const VI_TRIG_PROT_UNRESERVE: ViUInt32 = 7;
413pub const VI_READ_BUF: ViUInt32 = 1;
414pub const VI_WRITE_BUF: ViUInt32 = 2;
415pub const VI_READ_BUF_DISCARD: ViUInt32 = 4;
416pub const VI_WRITE_BUF_DISCARD: ViUInt32 = 8;
417pub const VI_IO_IN_BUF: ViUInt32 = 16;
418pub const VI_IO_OUT_BUF: ViUInt32 = 32;
419pub const VI_IO_IN_BUF_DISCARD: ViUInt32 = 64;
420pub const VI_IO_OUT_BUF_DISCARD: ViUInt32 = 128;
421pub const VI_FLUSH_ON_ACCESS: ViUInt32 = 1;
422pub const VI_FLUSH_WHEN_FULL: ViUInt32 = 2;
423pub const VI_FLUSH_DISABLE: ViUInt32 = 3;
424pub const VI_NMAPPED: ViUInt32 = 1;
425pub const VI_USE_OPERS: ViUInt32 = 2;
426pub const VI_DEREF_ADDR: ViUInt32 = 3;
427pub const VI_TMO_IMMEDIATE: ViUInt32 = 0;
428pub const VI_TMO_INFINITE: ViUInt32 = 4294967295;
429pub const VI_NO_LOCK: ViUInt32 = 0;
430pub const VI_EXCLUSIVE_LOCK: ViUInt32 = 1;
431pub const VI_SHARED_LOCK: ViUInt32 = 2;
432pub const VI_LOAD_CONFIG: ViUInt32 = 4;
433pub const VI_NO_SEC_ADDR: ViUInt32 = 65535;
434pub const VI_ASRL_PAR_NONE: ViUInt32 = 0;
435pub const VI_ASRL_PAR_ODD: ViUInt32 = 1;
436pub const VI_ASRL_PAR_EVEN: ViUInt32 = 2;
437pub const VI_ASRL_PAR_MARK: ViUInt32 = 3;
438pub const VI_ASRL_PAR_SPACE: ViUInt32 = 4;
439pub const VI_ASRL_STOP_ONE: ViUInt32 = 10;
440pub const VI_ASRL_STOP_ONE5: ViUInt32 = 15;
441pub const VI_ASRL_STOP_TWO: ViUInt32 = 20;
442pub const VI_ASRL_FLOW_NONE: ViUInt32 = 0;
443pub const VI_ASRL_FLOW_XON_XOFF: ViUInt32 = 1;
444pub const VI_ASRL_FLOW_RTS_CTS: ViUInt32 = 2;
445pub const VI_ASRL_FLOW_DTR_DSR: ViUInt32 = 4;
446pub const VI_ASRL_END_NONE: ViUInt32 = 0;
447pub const VI_ASRL_END_LAST_BIT: ViUInt32 = 1;
448pub const VI_ASRL_END_TERMCHAR: ViUInt32 = 2;
449pub const VI_ASRL_END_BREAK: ViUInt32 = 3;
450pub const VI_STATE_ASSERTED: ViUInt32 = 1;
451pub const VI_STATE_UNASSERTED: ViUInt32 = 0;
452pub const VI_STATE_UNKNOWN: ViInt32 = -1;
453pub const VI_BIG_ENDIAN: ViUInt32 = 0;
454pub const VI_LITTLE_ENDIAN: ViUInt32 = 1;
455pub const VI_DATA_PRIV: ViUInt32 = 0;
456pub const VI_DATA_NPRIV: ViUInt32 = 1;
457pub const VI_PROG_PRIV: ViUInt32 = 2;
458pub const VI_PROG_NPRIV: ViUInt32 = 3;
459pub const VI_BLCK_PRIV: ViUInt32 = 4;
460pub const VI_BLCK_NPRIV: ViUInt32 = 5;
461pub const VI_D64_PRIV: ViUInt32 = 6;
462pub const VI_D64_NPRIV: ViUInt32 = 7;
463pub const VI_D64_2EVME: ViUInt32 = 8;
464pub const VI_D64_SST160: ViUInt32 = 9;
465pub const VI_D64_SST267: ViUInt32 = 10;
466pub const VI_D64_SST320: ViUInt32 = 11;
467pub const VI_WIDTH_8: ViUInt32 = 1;
468pub const VI_WIDTH_16: ViUInt32 = 2;
469pub const VI_WIDTH_32: ViUInt32 = 4;
470pub const VI_WIDTH_64: ViUInt32 = 8;
471pub const VI_GPIB_REN_DEASSERT: ViUInt32 = 0;
472pub const VI_GPIB_REN_ASSERT: ViUInt32 = 1;
473pub const VI_GPIB_REN_DEASSERT_GTL: ViUInt32 = 2;
474pub const VI_GPIB_REN_ASSERT_ADDRESS: ViUInt32 = 3;
475pub const VI_GPIB_REN_ASSERT_LLO: ViUInt32 = 4;
476pub const VI_GPIB_REN_ASSERT_ADDRESS_LLO: ViUInt32 = 5;
477pub const VI_GPIB_REN_ADDRESS_GTL: ViUInt32 = 6;
478pub const VI_GPIB_ATN_DEASSERT: ViUInt32 = 0;
479pub const VI_GPIB_ATN_ASSERT: ViUInt32 = 1;
480pub const VI_GPIB_ATN_DEASSERT_HANDSHAKE: ViUInt32 = 2;
481pub const VI_GPIB_ATN_ASSERT_IMMEDIATE: ViUInt32 = 3;
482pub const VI_GPIB_HS488_DISABLED: ViUInt32 = 0;
483pub const VI_GPIB_HS488_NIMPL: ViInt32 = -1;
484pub const VI_GPIB_UNADDRESSED: ViUInt32 = 0;
485pub const VI_GPIB_TALKER: ViUInt32 = 1;
486pub const VI_GPIB_LISTENER: ViUInt32 = 2;
487pub const VI_VXI_CMD16: ViUInt32 = 512;
488pub const VI_VXI_CMD16_RESP16: ViUInt32 = 514;
489pub const VI_VXI_RESP16: ViUInt32 = 2;
490pub const VI_VXI_CMD32: ViUInt32 = 1024;
491pub const VI_VXI_CMD32_RESP16: ViUInt32 = 1026;
492pub const VI_VXI_CMD32_RESP32: ViUInt32 = 1028;
493pub const VI_VXI_RESP32: ViUInt32 = 4;
494pub const VI_ASSERT_SIGNAL: ViInt32 = -1;
495pub const VI_ASSERT_USE_ASSIGNED: ViUInt32 = 0;
496pub const VI_ASSERT_IRQ1: ViUInt32 = 1;
497pub const VI_ASSERT_IRQ2: ViUInt32 = 2;
498pub const VI_ASSERT_IRQ3: ViUInt32 = 3;
499pub const VI_ASSERT_IRQ4: ViUInt32 = 4;
500pub const VI_ASSERT_IRQ5: ViUInt32 = 5;
501pub const VI_ASSERT_IRQ6: ViUInt32 = 6;
502pub const VI_ASSERT_IRQ7: ViUInt32 = 7;
503pub const VI_UTIL_ASSERT_SYSRESET: ViUInt32 = 1;
504pub const VI_UTIL_ASSERT_SYSFAIL: ViUInt32 = 2;
505pub const VI_UTIL_DEASSERT_SYSFAIL: ViUInt32 = 3;
506pub const VI_VXI_CLASS_MEMORY: ViUInt32 = 0;
507pub const VI_VXI_CLASS_EXTENDED: ViUInt32 = 1;
508pub const VI_VXI_CLASS_MESSAGE: ViUInt32 = 2;
509pub const VI_VXI_CLASS_REGISTER: ViUInt32 = 3;
510pub const VI_VXI_CLASS_OTHER: ViUInt32 = 4;
511pub const VI_PXI_ADDR_NONE: ViUInt32 = 0;
512pub const VI_PXI_ADDR_MEM: ViUInt32 = 1;
513pub const VI_PXI_ADDR_IO: ViUInt32 = 2;
514pub const VI_PXI_ADDR_CFG: ViUInt32 = 3;
515pub const VI_TRIG_UNKNOWN: ViInt32 = -1;
516pub const VI_PXI_LBUS_STAR_TRIG_BUS_0: ViUInt32 = 1000;
517pub const VI_PXI_LBUS_STAR_TRIG_BUS_1: ViUInt32 = 1001;
518pub const VI_PXI_LBUS_STAR_TRIG_BUS_2: ViUInt32 = 1002;
519pub const VI_PXI_LBUS_STAR_TRIG_BUS_3: ViUInt32 = 1003;
520pub const VI_PXI_LBUS_STAR_TRIG_BUS_4: ViUInt32 = 1004;
521pub const VI_PXI_LBUS_STAR_TRIG_BUS_5: ViUInt32 = 1005;
522pub const VI_PXI_LBUS_STAR_TRIG_BUS_6: ViUInt32 = 1006;
523pub const VI_PXI_LBUS_STAR_TRIG_BUS_7: ViUInt32 = 1007;
524pub const VI_PXI_LBUS_STAR_TRIG_BUS_8: ViUInt32 = 1008;
525pub const VI_PXI_LBUS_STAR_TRIG_BUS_9: ViUInt32 = 1009;
526pub const VI_PXI_STAR_TRIG_CONTROLLER: ViUInt32 = 1413;
527pub const VI_ERROR_INV_SESSION: ViInt32 = -1073807346;
528pub const VI_INFINITE: ViUInt32 = 4294967295;
529pub const VI_NORMAL: ViUInt32 = 1;
530pub const VI_FDC: ViUInt32 = 2;
531pub const VI_HS488: ViUInt32 = 3;
532pub const VI_ASRL488: ViUInt32 = 4;
533pub const VI_ASRL_IN_BUF: ViUInt32 = 16;
534pub const VI_ASRL_OUT_BUF: ViUInt32 = 32;
535pub const VI_ASRL_IN_BUF_DISCARD: ViUInt32 = 64;
536pub const VI_ASRL_OUT_BUF_DISCARD: ViUInt32 = 128;
537pub type va_list = __builtin_va_list;
538pub type __gnuc_va_list = __builtin_va_list;
539
540// !!!
541macro_rules! c_macros_to_rust_consts {
542    ($(#define $name:ident ($value:ident))*) => {
543        $(pub const $name: ViUInt32 = $value;)*
544    };
545}
546
547#[cfg(target_pointer_width = "64")]
548c_macros_to_rust_consts! {
549    #define VI_ATTR_USER_DATA (VI_ATTR_USER_DATA_64)
550    #define VI_ATTR_RET_COUNT (VI_ATTR_RET_COUNT_64)
551    #define VI_ATTR_WIN_BASE_ADDR (VI_ATTR_WIN_BASE_ADDR_64)
552    #define VI_ATTR_WIN_SIZE (VI_ATTR_WIN_SIZE_64)
553    #define VI_ATTR_MEM_BASE (VI_ATTR_MEM_BASE_64)
554    #define VI_ATTR_MEM_SIZE (VI_ATTR_MEM_SIZE_64)
555    #define VI_ATTR_PXI_MEM_BASE_BAR0 (VI_ATTR_PXI_MEM_BASE_BAR0_64)
556    #define VI_ATTR_PXI_MEM_BASE_BAR1 (VI_ATTR_PXI_MEM_BASE_BAR1_64)
557    #define VI_ATTR_PXI_MEM_BASE_BAR2 (VI_ATTR_PXI_MEM_BASE_BAR2_64)
558    #define VI_ATTR_PXI_MEM_BASE_BAR3 (VI_ATTR_PXI_MEM_BASE_BAR3_64)
559    #define VI_ATTR_PXI_MEM_BASE_BAR4 (VI_ATTR_PXI_MEM_BASE_BAR4_64)
560    #define VI_ATTR_PXI_MEM_BASE_BAR5 (VI_ATTR_PXI_MEM_BASE_BAR5_64)
561    #define VI_ATTR_PXI_MEM_SIZE_BAR0 (VI_ATTR_PXI_MEM_SIZE_BAR0_64)
562    #define VI_ATTR_PXI_MEM_SIZE_BAR1 (VI_ATTR_PXI_MEM_SIZE_BAR1_64)
563    #define VI_ATTR_PXI_MEM_SIZE_BAR2 (VI_ATTR_PXI_MEM_SIZE_BAR2_64)
564    #define VI_ATTR_PXI_MEM_SIZE_BAR3 (VI_ATTR_PXI_MEM_SIZE_BAR3_64)
565    #define VI_ATTR_PXI_MEM_SIZE_BAR4 (VI_ATTR_PXI_MEM_SIZE_BAR4_64)
566    #define VI_ATTR_PXI_MEM_SIZE_BAR5 (VI_ATTR_PXI_MEM_SIZE_BAR5_64)
567}
568
569#[cfg(not(target_pointer_width = "64"))]
570c_macros_to_rust_consts! {
571    #define VI_ATTR_USER_DATA (VI_ATTR_USER_DATA_32)
572    #define VI_ATTR_RET_COUNT (VI_ATTR_RET_COUNT_32)
573    #define VI_ATTR_WIN_BASE_ADDR (VI_ATTR_WIN_BASE_ADDR_32)
574    #define VI_ATTR_WIN_SIZE (VI_ATTR_WIN_SIZE_32)
575    #define VI_ATTR_MEM_BASE (VI_ATTR_MEM_BASE_32)
576    #define VI_ATTR_MEM_SIZE (VI_ATTR_MEM_SIZE_32)
577    #define VI_ATTR_PXI_MEM_BASE_BAR0 (VI_ATTR_PXI_MEM_BASE_BAR0_32)
578    #define VI_ATTR_PXI_MEM_BASE_BAR1 (VI_ATTR_PXI_MEM_BASE_BAR1_32)
579    #define VI_ATTR_PXI_MEM_BASE_BAR2 (VI_ATTR_PXI_MEM_BASE_BAR2_32)
580    #define VI_ATTR_PXI_MEM_BASE_BAR3 (VI_ATTR_PXI_MEM_BASE_BAR3_32)
581    #define VI_ATTR_PXI_MEM_BASE_BAR4 (VI_ATTR_PXI_MEM_BASE_BAR4_32)
582    #define VI_ATTR_PXI_MEM_BASE_BAR5 (VI_ATTR_PXI_MEM_BASE_BAR5_32)
583    #define VI_ATTR_PXI_MEM_SIZE_BAR0 (VI_ATTR_PXI_MEM_SIZE_BAR0_32)
584    #define VI_ATTR_PXI_MEM_SIZE_BAR1 (VI_ATTR_PXI_MEM_SIZE_BAR1_32)
585    #define VI_ATTR_PXI_MEM_SIZE_BAR2 (VI_ATTR_PXI_MEM_SIZE_BAR2_32)
586    #define VI_ATTR_PXI_MEM_SIZE_BAR3 (VI_ATTR_PXI_MEM_SIZE_BAR3_32)
587    #define VI_ATTR_PXI_MEM_SIZE_BAR4 (VI_ATTR_PXI_MEM_SIZE_BAR4_32)
588    #define VI_ATTR_PXI_MEM_SIZE_BAR5 (VI_ATTR_PXI_MEM_SIZE_BAR5_32)
589}
590
591// !!!
592
593/// A UInt that is the same size as the target's pointer width
594// !!!
595#[cfg(target_pointer_width = "64")]
596pub type ViUIntPtrSize = ViUInt64;
597#[cfg(not(target_pointer_width = "64"))]
598pub type ViUIntPtrSize = ViUInt32;
599// !!!
600
601pub type ViUInt64 = ::std::os::raw::c_ulonglong;
602pub type ViInt64 = ::std::os::raw::c_longlong;
603pub type ViPUInt64 = *mut ViUInt64;
604pub type ViAUInt64 = *mut ViUInt64;
605pub type ViPInt64 = *mut ViInt64;
606pub type ViAInt64 = *mut ViInt64;
607pub type ViUInt32 = ::std::os::raw::c_ulong;
608pub type ViPUInt32 = *mut ViUInt32;
609pub type ViAUInt32 = *mut ViUInt32;
610pub type ViInt32 = ::std::os::raw::c_long;
611pub type ViPInt32 = *mut ViInt32;
612pub type ViAInt32 = *mut ViInt32;
613pub type ViUInt16 = ::std::os::raw::c_ushort;
614pub type ViPUInt16 = *mut ViUInt16;
615pub type ViAUInt16 = *mut ViUInt16;
616pub type ViInt16 = ::std::os::raw::c_short;
617pub type ViPInt16 = *mut ViInt16;
618pub type ViAInt16 = *mut ViInt16;
619pub type ViUInt8 = ::std::os::raw::c_uchar;
620pub type ViPUInt8 = *mut ViUInt8;
621pub type ViAUInt8 = *mut ViUInt8;
622pub type ViInt8 = ::std::os::raw::c_schar;
623pub type ViPInt8 = *mut ViInt8;
624pub type ViAInt8 = *mut ViInt8;
625pub type ViChar = ::std::os::raw::c_char;
626pub type ViPChar = *mut ViChar;
627pub type ViAChar = *mut ViChar;
628pub type ViByte = ::std::os::raw::c_uchar;
629pub type ViPByte = *mut ViByte;
630pub type ViAByte = *mut ViByte;
631pub type ViAddr = *mut ::std::os::raw::c_void;
632pub type ViPAddr = *mut ViAddr;
633pub type ViAAddr = *mut ViAddr;
634pub type ViReal32 = f32;
635pub type ViPReal32 = *mut ViReal32;
636pub type ViAReal32 = *mut ViReal32;
637pub type ViReal64 = f64;
638pub type ViPReal64 = *mut ViReal64;
639pub type ViAReal64 = *mut ViReal64;
640pub type ViBuf = ViPByte;
641pub type ViConstBuf = *const ViByte;
642pub type ViPBuf = ViPByte;
643pub type ViABuf = *mut ViPByte;
644pub type ViString = ViPChar;
645pub type ViConstString = *const ViChar;
646pub type ViPString = ViPChar;
647pub type ViAString = *mut ViPChar;
648pub type ViRsrc = ViString;
649pub type ViConstRsrc = ViConstString;
650pub type ViPRsrc = ViString;
651pub type ViARsrc = *mut ViString;
652pub type ViBoolean = ViUInt16;
653pub type ViPBoolean = *mut ViBoolean;
654pub type ViABoolean = *mut ViBoolean;
655pub type ViStatus = ViInt32;
656pub type ViPStatus = *mut ViStatus;
657pub type ViAStatus = *mut ViStatus;
658pub type ViVersion = ViUInt32;
659pub type ViPVersion = *mut ViVersion;
660pub type ViAVersion = *mut ViVersion;
661pub type ViObject = ViUInt32;
662pub type ViPObject = *mut ViObject;
663pub type ViAObject = *mut ViObject;
664pub type ViSession = ViObject;
665pub type ViPSession = *mut ViSession;
666pub type ViASession = *mut ViSession;
667pub type ViAttr = ViUInt32;
668pub type ViEvent = ViObject;
669pub type ViPEvent = *mut ViEvent;
670pub type ViFindList = ViObject;
671pub type ViPFindList = *mut ViFindList;
672// !!!
673pub type ViBusAddress = ViUIntPtrSize;
674pub type ViBusSize = ViUIntPtrSize;
675pub type ViAttrState = ViUIntPtrSize;
676// !!!
677pub type ViBusAddress64 = ViUInt64;
678pub type ViPBusAddress64 = *mut ViBusAddress64;
679pub type ViEventType = ViUInt32;
680pub type ViPEventType = *mut ViEventType;
681pub type ViAEventType = *mut ViEventType;
682pub type ViPAttrState = *mut ::std::os::raw::c_void;
683pub type ViPAttr = *mut ViAttr;
684pub type ViAAttr = *mut ViAttr;
685pub type ViKeyId = ViString;
686pub type ViConstKeyId = ViConstString;
687pub type ViPKeyId = ViPString;
688pub type ViJobId = ViUInt32;
689pub type ViPJobId = *mut ViJobId;
690pub type ViAccessMode = ViUInt32;
691pub type ViPAccessMode = *mut ViAccessMode;
692pub type ViPBusAddress = *mut ViBusAddress;
693pub type ViEventFilter = ViUInt32;
694pub type ViVAList = va_list;
695pub type ViHndlr = ::std::option::Option<
696    unsafe extern "system" fn(
697        vi: ViSession,
698        eventType: ViEventType,
699        event: ViEvent,
700        userHandle: ViAddr,
701    ) -> ViStatus,
702>;
703pub type __builtin_va_list = *mut ::std::os::raw::c_char;
704pub struct LibVisa {
705    __library: ::libloading::Library,
706    pub viOpenDefaultRM:
707        Result<unsafe extern "system" fn(vi: ViPSession) -> ViStatus, ::libloading::Error>,
708    pub viFindRsrc: Result<
709        unsafe extern "system" fn(
710            sesn: ViSession,
711            expr: ViConstString,
712            vi: ViPFindList,
713            retCnt: ViPUInt32,
714            desc: *mut ViChar,
715        ) -> ViStatus,
716        ::libloading::Error,
717    >,
718    pub viFindNext: Result<
719        unsafe extern "system" fn(vi: ViFindList, desc: *mut ViChar) -> ViStatus,
720        ::libloading::Error,
721    >,
722    pub viParseRsrc: Result<
723        unsafe extern "system" fn(
724            rmSesn: ViSession,
725            rsrcName: ViConstRsrc,
726            intfType: ViPUInt16,
727            intfNum: ViPUInt16,
728        ) -> ViStatus,
729        ::libloading::Error,
730    >,
731    pub viParseRsrcEx: Result<
732        unsafe extern "system" fn(
733            rmSesn: ViSession,
734            rsrcName: ViConstRsrc,
735            intfType: ViPUInt16,
736            intfNum: ViPUInt16,
737            rsrcClass: *mut ViChar,
738            expandedUnaliasedName: *mut ViChar,
739            aliasIfExists: *mut ViChar,
740        ) -> ViStatus,
741        ::libloading::Error,
742    >,
743    pub viOpen: Result<
744        unsafe extern "system" fn(
745            sesn: ViSession,
746            name: ViConstRsrc,
747            mode: ViAccessMode,
748            timeout: ViUInt32,
749            vi: ViPSession,
750        ) -> ViStatus,
751        ::libloading::Error,
752    >,
753    pub viClose: Result<unsafe extern "system" fn(vi: ViObject) -> ViStatus, ::libloading::Error>,
754    pub viSetAttribute: Result<
755        unsafe extern "system" fn(
756            vi: ViObject,
757            attrName: ViAttr,
758            attrValue: ViAttrState,
759        ) -> ViStatus,
760        ::libloading::Error,
761    >,
762    pub viGetAttribute: Result<
763        unsafe extern "system" fn(
764            vi: ViObject,
765            attrName: ViAttr,
766            attrValue: *mut ::std::os::raw::c_void,
767        ) -> ViStatus,
768        ::libloading::Error,
769    >,
770    pub viStatusDesc: Result<
771        unsafe extern "system" fn(vi: ViObject, status: ViStatus, desc: *mut ViChar) -> ViStatus,
772        ::libloading::Error,
773    >,
774    pub viTerminate: Result<
775        unsafe extern "system" fn(vi: ViObject, degree: ViUInt16, jobId: ViJobId) -> ViStatus,
776        ::libloading::Error,
777    >,
778    pub viLock: Result<
779        unsafe extern "system" fn(
780            vi: ViSession,
781            lockType: ViAccessMode,
782            timeout: ViUInt32,
783            requestedKey: ViConstKeyId,
784            accessKey: *mut ViChar,
785        ) -> ViStatus,
786        ::libloading::Error,
787    >,
788    pub viUnlock: Result<unsafe extern "system" fn(vi: ViSession) -> ViStatus, ::libloading::Error>,
789    pub viEnableEvent: Result<
790        unsafe extern "system" fn(
791            vi: ViSession,
792            eventType: ViEventType,
793            mechanism: ViUInt16,
794            context: ViEventFilter,
795        ) -> ViStatus,
796        ::libloading::Error,
797    >,
798    pub viDisableEvent: Result<
799        unsafe extern "system" fn(
800            vi: ViSession,
801            eventType: ViEventType,
802            mechanism: ViUInt16,
803        ) -> ViStatus,
804        ::libloading::Error,
805    >,
806    pub viDiscardEvents: Result<
807        unsafe extern "system" fn(
808            vi: ViSession,
809            eventType: ViEventType,
810            mechanism: ViUInt16,
811        ) -> ViStatus,
812        ::libloading::Error,
813    >,
814    pub viWaitOnEvent: Result<
815        unsafe extern "system" fn(
816            vi: ViSession,
817            inEventType: ViEventType,
818            timeout: ViUInt32,
819            outEventType: ViPEventType,
820            outContext: ViPEvent,
821        ) -> ViStatus,
822        ::libloading::Error,
823    >,
824    pub viInstallHandler: Result<
825        unsafe extern "system" fn(
826            vi: ViSession,
827            eventType: ViEventType,
828            handler: ViHndlr,
829            userHandle: ViAddr,
830        ) -> ViStatus,
831        ::libloading::Error,
832    >,
833    pub viUninstallHandler: Result<
834        unsafe extern "system" fn(
835            vi: ViSession,
836            eventType: ViEventType,
837            handler: ViHndlr,
838            userHandle: ViAddr,
839        ) -> ViStatus,
840        ::libloading::Error,
841    >,
842    pub viRead: Result<
843        unsafe extern "system" fn(
844            vi: ViSession,
845            buf: ViPBuf,
846            cnt: ViUInt32,
847            retCnt: ViPUInt32,
848        ) -> ViStatus,
849        ::libloading::Error,
850    >,
851    pub viReadAsync: Result<
852        unsafe extern "system" fn(
853            vi: ViSession,
854            buf: ViPBuf,
855            cnt: ViUInt32,
856            jobId: ViPJobId,
857        ) -> ViStatus,
858        ::libloading::Error,
859    >,
860    pub viReadToFile: Result<
861        unsafe extern "system" fn(
862            vi: ViSession,
863            filename: ViConstString,
864            cnt: ViUInt32,
865            retCnt: ViPUInt32,
866        ) -> ViStatus,
867        ::libloading::Error,
868    >,
869    pub viWrite: Result<
870        unsafe extern "system" fn(
871            vi: ViSession,
872            buf: ViConstBuf,
873            cnt: ViUInt32,
874            retCnt: ViPUInt32,
875        ) -> ViStatus,
876        ::libloading::Error,
877    >,
878    pub viWriteAsync: Result<
879        unsafe extern "system" fn(
880            vi: ViSession,
881            buf: ViConstBuf,
882            cnt: ViUInt32,
883            jobId: ViPJobId,
884        ) -> ViStatus,
885        ::libloading::Error,
886    >,
887    pub viWriteFromFile: Result<
888        unsafe extern "system" fn(
889            vi: ViSession,
890            filename: ViConstString,
891            cnt: ViUInt32,
892            retCnt: ViPUInt32,
893        ) -> ViStatus,
894        ::libloading::Error,
895    >,
896    pub viAssertTrigger: Result<
897        unsafe extern "system" fn(vi: ViSession, protocol: ViUInt16) -> ViStatus,
898        ::libloading::Error,
899    >,
900    pub viReadSTB: Result<
901        unsafe extern "system" fn(vi: ViSession, status: ViPUInt16) -> ViStatus,
902        ::libloading::Error,
903    >,
904    pub viClear: Result<unsafe extern "system" fn(vi: ViSession) -> ViStatus, ::libloading::Error>,
905    pub viSetBuf: Result<
906        unsafe extern "system" fn(vi: ViSession, mask: ViUInt16, size: ViUInt32) -> ViStatus,
907        ::libloading::Error,
908    >,
909    pub viFlush: Result<
910        unsafe extern "system" fn(vi: ViSession, mask: ViUInt16) -> ViStatus,
911        ::libloading::Error,
912    >,
913    pub viBufWrite: Result<
914        unsafe extern "system" fn(
915            vi: ViSession,
916            buf: ViConstBuf,
917            cnt: ViUInt32,
918            retCnt: ViPUInt32,
919        ) -> ViStatus,
920        ::libloading::Error,
921    >,
922    pub viBufRead: Result<
923        unsafe extern "system" fn(
924            vi: ViSession,
925            buf: ViPBuf,
926            cnt: ViUInt32,
927            retCnt: ViPUInt32,
928        ) -> ViStatus,
929        ::libloading::Error,
930    >,
931    pub viPrintf: Result<
932        unsafe extern "system" fn(vi: ViSession, writeFmt: ViConstString, ...) -> ViStatus,
933        ::libloading::Error,
934    >,
935    pub viVPrintf: Result<
936        unsafe extern "system" fn(
937            vi: ViSession,
938            writeFmt: ViConstString,
939            params: ViVAList,
940        ) -> ViStatus,
941        ::libloading::Error,
942    >,
943    pub viSPrintf: Result<
944        unsafe extern "system" fn(
945            vi: ViSession,
946            buf: ViPBuf,
947            writeFmt: ViConstString,
948            ...
949        ) -> ViStatus,
950        ::libloading::Error,
951    >,
952    pub viVSPrintf: Result<
953        unsafe extern "system" fn(
954            vi: ViSession,
955            buf: ViPBuf,
956            writeFmt: ViConstString,
957            parms: ViVAList,
958        ) -> ViStatus,
959        ::libloading::Error,
960    >,
961    pub viScanf: Result<
962        unsafe extern "system" fn(vi: ViSession, readFmt: ViConstString, ...) -> ViStatus,
963        ::libloading::Error,
964    >,
965    pub viVScanf: Result<
966        unsafe extern "system" fn(
967            vi: ViSession,
968            readFmt: ViConstString,
969            params: ViVAList,
970        ) -> ViStatus,
971        ::libloading::Error,
972    >,
973    pub viSScanf: Result<
974        unsafe extern "system" fn(
975            vi: ViSession,
976            buf: ViConstBuf,
977            readFmt: ViConstString,
978            ...
979        ) -> ViStatus,
980        ::libloading::Error,
981    >,
982    pub viVSScanf: Result<
983        unsafe extern "system" fn(
984            vi: ViSession,
985            buf: ViConstBuf,
986            readFmt: ViConstString,
987            parms: ViVAList,
988        ) -> ViStatus,
989        ::libloading::Error,
990    >,
991    pub viQueryf: Result<
992        unsafe extern "system" fn(
993            vi: ViSession,
994            writeFmt: ViConstString,
995            readFmt: ViConstString,
996            ...
997        ) -> ViStatus,
998        ::libloading::Error,
999    >,
1000    pub viVQueryf: Result<
1001        unsafe extern "system" fn(
1002            vi: ViSession,
1003            writeFmt: ViConstString,
1004            readFmt: ViConstString,
1005            params: ViVAList,
1006        ) -> ViStatus,
1007        ::libloading::Error,
1008    >,
1009    pub viIn8: Result<
1010        unsafe extern "system" fn(
1011            vi: ViSession,
1012            space: ViUInt16,
1013            offset: ViBusAddress,
1014            val8: ViPUInt8,
1015        ) -> ViStatus,
1016        ::libloading::Error,
1017    >,
1018    pub viOut8: Result<
1019        unsafe extern "system" fn(
1020            vi: ViSession,
1021            space: ViUInt16,
1022            offset: ViBusAddress,
1023            val8: ViUInt8,
1024        ) -> ViStatus,
1025        ::libloading::Error,
1026    >,
1027    pub viIn16: Result<
1028        unsafe extern "system" fn(
1029            vi: ViSession,
1030            space: ViUInt16,
1031            offset: ViBusAddress,
1032            val16: ViPUInt16,
1033        ) -> ViStatus,
1034        ::libloading::Error,
1035    >,
1036    pub viOut16: Result<
1037        unsafe extern "system" fn(
1038            vi: ViSession,
1039            space: ViUInt16,
1040            offset: ViBusAddress,
1041            val16: ViUInt16,
1042        ) -> ViStatus,
1043        ::libloading::Error,
1044    >,
1045    pub viIn32: Result<
1046        unsafe extern "system" fn(
1047            vi: ViSession,
1048            space: ViUInt16,
1049            offset: ViBusAddress,
1050            val32: ViPUInt32,
1051        ) -> ViStatus,
1052        ::libloading::Error,
1053    >,
1054    pub viOut32: Result<
1055        unsafe extern "system" fn(
1056            vi: ViSession,
1057            space: ViUInt16,
1058            offset: ViBusAddress,
1059            val32: ViUInt32,
1060        ) -> ViStatus,
1061        ::libloading::Error,
1062    >,
1063    pub viIn64: Result<
1064        unsafe extern "system" fn(
1065            vi: ViSession,
1066            space: ViUInt16,
1067            offset: ViBusAddress,
1068            val64: ViPUInt64,
1069        ) -> ViStatus,
1070        ::libloading::Error,
1071    >,
1072    pub viOut64: Result<
1073        unsafe extern "system" fn(
1074            vi: ViSession,
1075            space: ViUInt16,
1076            offset: ViBusAddress,
1077            val64: ViUInt64,
1078        ) -> ViStatus,
1079        ::libloading::Error,
1080    >,
1081    pub viIn8Ex: Result<
1082        unsafe extern "system" fn(
1083            vi: ViSession,
1084            space: ViUInt16,
1085            offset: ViBusAddress64,
1086            val8: ViPUInt8,
1087        ) -> ViStatus,
1088        ::libloading::Error,
1089    >,
1090    pub viOut8Ex: Result<
1091        unsafe extern "system" fn(
1092            vi: ViSession,
1093            space: ViUInt16,
1094            offset: ViBusAddress64,
1095            val8: ViUInt8,
1096        ) -> ViStatus,
1097        ::libloading::Error,
1098    >,
1099    pub viIn16Ex: Result<
1100        unsafe extern "system" fn(
1101            vi: ViSession,
1102            space: ViUInt16,
1103            offset: ViBusAddress64,
1104            val16: ViPUInt16,
1105        ) -> ViStatus,
1106        ::libloading::Error,
1107    >,
1108    pub viOut16Ex: Result<
1109        unsafe extern "system" fn(
1110            vi: ViSession,
1111            space: ViUInt16,
1112            offset: ViBusAddress64,
1113            val16: ViUInt16,
1114        ) -> ViStatus,
1115        ::libloading::Error,
1116    >,
1117    pub viIn32Ex: Result<
1118        unsafe extern "system" fn(
1119            vi: ViSession,
1120            space: ViUInt16,
1121            offset: ViBusAddress64,
1122            val32: ViPUInt32,
1123        ) -> ViStatus,
1124        ::libloading::Error,
1125    >,
1126    pub viOut32Ex: Result<
1127        unsafe extern "system" fn(
1128            vi: ViSession,
1129            space: ViUInt16,
1130            offset: ViBusAddress64,
1131            val32: ViUInt32,
1132        ) -> ViStatus,
1133        ::libloading::Error,
1134    >,
1135    pub viIn64Ex: Result<
1136        unsafe extern "system" fn(
1137            vi: ViSession,
1138            space: ViUInt16,
1139            offset: ViBusAddress64,
1140            val64: ViPUInt64,
1141        ) -> ViStatus,
1142        ::libloading::Error,
1143    >,
1144    pub viOut64Ex: Result<
1145        unsafe extern "system" fn(
1146            vi: ViSession,
1147            space: ViUInt16,
1148            offset: ViBusAddress64,
1149            val64: ViUInt64,
1150        ) -> ViStatus,
1151        ::libloading::Error,
1152    >,
1153    pub viMoveIn8: Result<
1154        unsafe extern "system" fn(
1155            vi: ViSession,
1156            space: ViUInt16,
1157            offset: ViBusAddress,
1158            length: ViBusSize,
1159            buf8: ViAUInt8,
1160        ) -> ViStatus,
1161        ::libloading::Error,
1162    >,
1163    pub viMoveOut8: Result<
1164        unsafe extern "system" fn(
1165            vi: ViSession,
1166            space: ViUInt16,
1167            offset: ViBusAddress,
1168            length: ViBusSize,
1169            buf8: ViAUInt8,
1170        ) -> ViStatus,
1171        ::libloading::Error,
1172    >,
1173    pub viMoveIn16: Result<
1174        unsafe extern "system" fn(
1175            vi: ViSession,
1176            space: ViUInt16,
1177            offset: ViBusAddress,
1178            length: ViBusSize,
1179            buf16: ViAUInt16,
1180        ) -> ViStatus,
1181        ::libloading::Error,
1182    >,
1183    pub viMoveOut16: Result<
1184        unsafe extern "system" fn(
1185            vi: ViSession,
1186            space: ViUInt16,
1187            offset: ViBusAddress,
1188            length: ViBusSize,
1189            buf16: ViAUInt16,
1190        ) -> ViStatus,
1191        ::libloading::Error,
1192    >,
1193    pub viMoveIn32: Result<
1194        unsafe extern "system" fn(
1195            vi: ViSession,
1196            space: ViUInt16,
1197            offset: ViBusAddress,
1198            length: ViBusSize,
1199            buf32: ViAUInt32,
1200        ) -> ViStatus,
1201        ::libloading::Error,
1202    >,
1203    pub viMoveOut32: Result<
1204        unsafe extern "system" fn(
1205            vi: ViSession,
1206            space: ViUInt16,
1207            offset: ViBusAddress,
1208            length: ViBusSize,
1209            buf32: ViAUInt32,
1210        ) -> ViStatus,
1211        ::libloading::Error,
1212    >,
1213    pub viMoveIn64: Result<
1214        unsafe extern "system" fn(
1215            vi: ViSession,
1216            space: ViUInt16,
1217            offset: ViBusAddress,
1218            length: ViBusSize,
1219            buf64: ViAUInt64,
1220        ) -> ViStatus,
1221        ::libloading::Error,
1222    >,
1223    pub viMoveOut64: Result<
1224        unsafe extern "system" fn(
1225            vi: ViSession,
1226            space: ViUInt16,
1227            offset: ViBusAddress,
1228            length: ViBusSize,
1229            buf64: ViAUInt64,
1230        ) -> ViStatus,
1231        ::libloading::Error,
1232    >,
1233    pub viMoveIn8Ex: Result<
1234        unsafe extern "system" fn(
1235            vi: ViSession,
1236            space: ViUInt16,
1237            offset: ViBusAddress64,
1238            length: ViBusSize,
1239            buf8: ViAUInt8,
1240        ) -> ViStatus,
1241        ::libloading::Error,
1242    >,
1243    pub viMoveOut8Ex: Result<
1244        unsafe extern "system" fn(
1245            vi: ViSession,
1246            space: ViUInt16,
1247            offset: ViBusAddress64,
1248            length: ViBusSize,
1249            buf8: ViAUInt8,
1250        ) -> ViStatus,
1251        ::libloading::Error,
1252    >,
1253    pub viMoveIn16Ex: Result<
1254        unsafe extern "system" fn(
1255            vi: ViSession,
1256            space: ViUInt16,
1257            offset: ViBusAddress64,
1258            length: ViBusSize,
1259            buf16: ViAUInt16,
1260        ) -> ViStatus,
1261        ::libloading::Error,
1262    >,
1263    pub viMoveOut16Ex: Result<
1264        unsafe extern "system" fn(
1265            vi: ViSession,
1266            space: ViUInt16,
1267            offset: ViBusAddress64,
1268            length: ViBusSize,
1269            buf16: ViAUInt16,
1270        ) -> ViStatus,
1271        ::libloading::Error,
1272    >,
1273    pub viMoveIn32Ex: Result<
1274        unsafe extern "system" fn(
1275            vi: ViSession,
1276            space: ViUInt16,
1277            offset: ViBusAddress64,
1278            length: ViBusSize,
1279            buf32: ViAUInt32,
1280        ) -> ViStatus,
1281        ::libloading::Error,
1282    >,
1283    pub viMoveOut32Ex: Result<
1284        unsafe extern "system" fn(
1285            vi: ViSession,
1286            space: ViUInt16,
1287            offset: ViBusAddress64,
1288            length: ViBusSize,
1289            buf32: ViAUInt32,
1290        ) -> ViStatus,
1291        ::libloading::Error,
1292    >,
1293    pub viMoveIn64Ex: Result<
1294        unsafe extern "system" fn(
1295            vi: ViSession,
1296            space: ViUInt16,
1297            offset: ViBusAddress64,
1298            length: ViBusSize,
1299            buf64: ViAUInt64,
1300        ) -> ViStatus,
1301        ::libloading::Error,
1302    >,
1303    pub viMoveOut64Ex: Result<
1304        unsafe extern "system" fn(
1305            vi: ViSession,
1306            space: ViUInt16,
1307            offset: ViBusAddress64,
1308            length: ViBusSize,
1309            buf64: ViAUInt64,
1310        ) -> ViStatus,
1311        ::libloading::Error,
1312    >,
1313    pub viMove: Result<
1314        unsafe extern "system" fn(
1315            vi: ViSession,
1316            srcSpace: ViUInt16,
1317            srcOffset: ViBusAddress,
1318            srcWidth: ViUInt16,
1319            destSpace: ViUInt16,
1320            destOffset: ViBusAddress,
1321            destWidth: ViUInt16,
1322            srcLength: ViBusSize,
1323        ) -> ViStatus,
1324        ::libloading::Error,
1325    >,
1326    pub viMoveAsync: Result<
1327        unsafe extern "system" fn(
1328            vi: ViSession,
1329            srcSpace: ViUInt16,
1330            srcOffset: ViBusAddress,
1331            srcWidth: ViUInt16,
1332            destSpace: ViUInt16,
1333            destOffset: ViBusAddress,
1334            destWidth: ViUInt16,
1335            srcLength: ViBusSize,
1336            jobId: ViPJobId,
1337        ) -> ViStatus,
1338        ::libloading::Error,
1339    >,
1340    pub viMoveEx: Result<
1341        unsafe extern "system" fn(
1342            vi: ViSession,
1343            srcSpace: ViUInt16,
1344            srcOffset: ViBusAddress64,
1345            srcWidth: ViUInt16,
1346            destSpace: ViUInt16,
1347            destOffset: ViBusAddress64,
1348            destWidth: ViUInt16,
1349            srcLength: ViBusSize,
1350        ) -> ViStatus,
1351        ::libloading::Error,
1352    >,
1353    pub viMoveAsyncEx: Result<
1354        unsafe extern "system" fn(
1355            vi: ViSession,
1356            srcSpace: ViUInt16,
1357            srcOffset: ViBusAddress64,
1358            srcWidth: ViUInt16,
1359            destSpace: ViUInt16,
1360            destOffset: ViBusAddress64,
1361            destWidth: ViUInt16,
1362            srcLength: ViBusSize,
1363            jobId: ViPJobId,
1364        ) -> ViStatus,
1365        ::libloading::Error,
1366    >,
1367    pub viMapAddress: Result<
1368        unsafe extern "system" fn(
1369            vi: ViSession,
1370            mapSpace: ViUInt16,
1371            mapOffset: ViBusAddress,
1372            mapSize: ViBusSize,
1373            access: ViBoolean,
1374            suggested: ViAddr,
1375            address: ViPAddr,
1376        ) -> ViStatus,
1377        ::libloading::Error,
1378    >,
1379    pub viUnmapAddress:
1380        Result<unsafe extern "system" fn(vi: ViSession) -> ViStatus, ::libloading::Error>,
1381    pub viMapAddressEx: Result<
1382        unsafe extern "system" fn(
1383            vi: ViSession,
1384            mapSpace: ViUInt16,
1385            mapOffset: ViBusAddress64,
1386            mapSize: ViBusSize,
1387            access: ViBoolean,
1388            suggested: ViAddr,
1389            address: ViPAddr,
1390        ) -> ViStatus,
1391        ::libloading::Error,
1392    >,
1393    pub viPeek8: Result<
1394        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val8: ViPUInt8),
1395        ::libloading::Error,
1396    >,
1397    pub viPoke8: Result<
1398        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val8: ViUInt8),
1399        ::libloading::Error,
1400    >,
1401    pub viPeek16: Result<
1402        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val16: ViPUInt16),
1403        ::libloading::Error,
1404    >,
1405    pub viPoke16: Result<
1406        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val16: ViUInt16),
1407        ::libloading::Error,
1408    >,
1409    pub viPeek32: Result<
1410        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val32: ViPUInt32),
1411        ::libloading::Error,
1412    >,
1413    pub viPoke32: Result<
1414        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val32: ViUInt32),
1415        ::libloading::Error,
1416    >,
1417    pub viPeek64: Result<
1418        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val64: ViPUInt64),
1419        ::libloading::Error,
1420    >,
1421    pub viPoke64: Result<
1422        unsafe extern "system" fn(vi: ViSession, address: ViAddr, val64: ViUInt64),
1423        ::libloading::Error,
1424    >,
1425    pub viMemAlloc: Result<
1426        unsafe extern "system" fn(
1427            vi: ViSession,
1428            size: ViBusSize,
1429            offset: ViPBusAddress,
1430        ) -> ViStatus,
1431        ::libloading::Error,
1432    >,
1433    pub viMemFree: Result<
1434        unsafe extern "system" fn(vi: ViSession, offset: ViBusAddress) -> ViStatus,
1435        ::libloading::Error,
1436    >,
1437    pub viMemAllocEx: Result<
1438        unsafe extern "system" fn(
1439            vi: ViSession,
1440            size: ViBusSize,
1441            offset: ViPBusAddress64,
1442        ) -> ViStatus,
1443        ::libloading::Error,
1444    >,
1445    pub viMemFreeEx: Result<
1446        unsafe extern "system" fn(vi: ViSession, offset: ViBusAddress64) -> ViStatus,
1447        ::libloading::Error,
1448    >,
1449    pub viGpibControlREN: Result<
1450        unsafe extern "system" fn(vi: ViSession, mode: ViUInt16) -> ViStatus,
1451        ::libloading::Error,
1452    >,
1453    pub viGpibControlATN: Result<
1454        unsafe extern "system" fn(vi: ViSession, mode: ViUInt16) -> ViStatus,
1455        ::libloading::Error,
1456    >,
1457    pub viGpibSendIFC:
1458        Result<unsafe extern "system" fn(vi: ViSession) -> ViStatus, ::libloading::Error>,
1459    pub viGpibCommand: Result<
1460        unsafe extern "system" fn(
1461            vi: ViSession,
1462            cmd: ViConstBuf,
1463            cnt: ViUInt32,
1464            retCnt: ViPUInt32,
1465        ) -> ViStatus,
1466        ::libloading::Error,
1467    >,
1468    pub viGpibPassControl: Result<
1469        unsafe extern "system" fn(vi: ViSession, primAddr: ViUInt16, secAddr: ViUInt16) -> ViStatus,
1470        ::libloading::Error,
1471    >,
1472    pub viVxiCommandQuery: Result<
1473        unsafe extern "system" fn(
1474            vi: ViSession,
1475            mode: ViUInt16,
1476            cmd: ViUInt32,
1477            response: ViPUInt32,
1478        ) -> ViStatus,
1479        ::libloading::Error,
1480    >,
1481    pub viAssertUtilSignal: Result<
1482        unsafe extern "system" fn(vi: ViSession, line: ViUInt16) -> ViStatus,
1483        ::libloading::Error,
1484    >,
1485    pub viAssertIntrSignal: Result<
1486        unsafe extern "system" fn(vi: ViSession, mode: ViInt16, statusID: ViUInt32) -> ViStatus,
1487        ::libloading::Error,
1488    >,
1489    pub viMapTrigger: Result<
1490        unsafe extern "system" fn(
1491            vi: ViSession,
1492            trigSrc: ViInt16,
1493            trigDest: ViInt16,
1494            mode: ViUInt16,
1495        ) -> ViStatus,
1496        ::libloading::Error,
1497    >,
1498    pub viUnmapTrigger: Result<
1499        unsafe extern "system" fn(vi: ViSession, trigSrc: ViInt16, trigDest: ViInt16) -> ViStatus,
1500        ::libloading::Error,
1501    >,
1502    pub viUsbControlOut: Result<
1503        unsafe extern "system" fn(
1504            vi: ViSession,
1505            bmRequestType: ViInt16,
1506            bRequest: ViInt16,
1507            wValue: ViUInt16,
1508            wIndex: ViUInt16,
1509            wLength: ViUInt16,
1510            buf: ViConstBuf,
1511        ) -> ViStatus,
1512        ::libloading::Error,
1513    >,
1514    pub viUsbControlIn: Result<
1515        unsafe extern "system" fn(
1516            vi: ViSession,
1517            bmRequestType: ViInt16,
1518            bRequest: ViInt16,
1519            wValue: ViUInt16,
1520            wIndex: ViUInt16,
1521            wLength: ViUInt16,
1522            buf: ViPBuf,
1523            retCnt: ViPUInt16,
1524        ) -> ViStatus,
1525        ::libloading::Error,
1526    >,
1527    pub viPxiReserveTriggers: Result<
1528        unsafe extern "system" fn(
1529            vi: ViSession,
1530            cnt: ViInt16,
1531            trigBuses: ViAInt16,
1532            trigLines: ViAInt16,
1533            failureIndex: ViPInt16,
1534        ) -> ViStatus,
1535        ::libloading::Error,
1536    >,
1537}
1538/// Borrow a lazily-resolved VISA function pointer, panicking with the function's
1539/// name (and the underlying load error) if the loaded library does not export it.
1540/// Centralizes what would otherwise be 100+ identical `.expect(...)` strings.
1541#[inline]
1542fn __sym<'lib, F>(sym: &'lib Result<F, ::libloading::Error>, name: &str) -> &'lib F {
1543    sym.as_ref().unwrap_or_else(|e| {
1544        panic!("VISA function `{name}` is not available in the loaded library: {e}")
1545    })
1546}
1547impl LibVisa {
1548    pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
1549    where
1550        P: AsRef<::std::ffi::OsStr>,
1551    {
1552        let library = ::libloading::Library::new(path)?;
1553        Self::from_library(library)
1554    }
1555    pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
1556    where
1557        L: Into<::libloading::Library>,
1558    {
1559        let __library = library.into();
1560        let viOpenDefaultRM = __library.get(b"viOpenDefaultRM\0").map(|sym| *sym);
1561        let viFindRsrc = __library.get(b"viFindRsrc\0").map(|sym| *sym);
1562        let viFindNext = __library.get(b"viFindNext\0").map(|sym| *sym);
1563        let viParseRsrc = __library.get(b"viParseRsrc\0").map(|sym| *sym);
1564        let viParseRsrcEx = __library.get(b"viParseRsrcEx\0").map(|sym| *sym);
1565        let viOpen = __library.get(b"viOpen\0").map(|sym| *sym);
1566        let viClose = __library.get(b"viClose\0").map(|sym| *sym);
1567        let viSetAttribute = __library.get(b"viSetAttribute\0").map(|sym| *sym);
1568        let viGetAttribute = __library.get(b"viGetAttribute\0").map(|sym| *sym);
1569        let viStatusDesc = __library.get(b"viStatusDesc\0").map(|sym| *sym);
1570        let viTerminate = __library.get(b"viTerminate\0").map(|sym| *sym);
1571        let viLock = __library.get(b"viLock\0").map(|sym| *sym);
1572        let viUnlock = __library.get(b"viUnlock\0").map(|sym| *sym);
1573        let viEnableEvent = __library.get(b"viEnableEvent\0").map(|sym| *sym);
1574        let viDisableEvent = __library.get(b"viDisableEvent\0").map(|sym| *sym);
1575        let viDiscardEvents = __library.get(b"viDiscardEvents\0").map(|sym| *sym);
1576        let viWaitOnEvent = __library.get(b"viWaitOnEvent\0").map(|sym| *sym);
1577        let viInstallHandler = __library.get(b"viInstallHandler\0").map(|sym| *sym);
1578        let viUninstallHandler = __library.get(b"viUninstallHandler\0").map(|sym| *sym);
1579        let viRead = __library.get(b"viRead\0").map(|sym| *sym);
1580        let viReadAsync = __library.get(b"viReadAsync\0").map(|sym| *sym);
1581        let viReadToFile = __library.get(b"viReadToFile\0").map(|sym| *sym);
1582        let viWrite = __library.get(b"viWrite\0").map(|sym| *sym);
1583        let viWriteAsync = __library.get(b"viWriteAsync\0").map(|sym| *sym);
1584        let viWriteFromFile = __library.get(b"viWriteFromFile\0").map(|sym| *sym);
1585        let viAssertTrigger = __library.get(b"viAssertTrigger\0").map(|sym| *sym);
1586        let viReadSTB = __library.get(b"viReadSTB\0").map(|sym| *sym);
1587        let viClear = __library.get(b"viClear\0").map(|sym| *sym);
1588        let viSetBuf = __library.get(b"viSetBuf\0").map(|sym| *sym);
1589        let viFlush = __library.get(b"viFlush\0").map(|sym| *sym);
1590        let viBufWrite = __library.get(b"viBufWrite\0").map(|sym| *sym);
1591        let viBufRead = __library.get(b"viBufRead\0").map(|sym| *sym);
1592        let viPrintf = __library.get(b"viPrintf\0").map(|sym| *sym);
1593        let viVPrintf = __library.get(b"viVPrintf\0").map(|sym| *sym);
1594        let viSPrintf = __library.get(b"viSPrintf\0").map(|sym| *sym);
1595        let viVSPrintf = __library.get(b"viVSPrintf\0").map(|sym| *sym);
1596        let viScanf = __library.get(b"viScanf\0").map(|sym| *sym);
1597        let viVScanf = __library.get(b"viVScanf\0").map(|sym| *sym);
1598        let viSScanf = __library.get(b"viSScanf\0").map(|sym| *sym);
1599        let viVSScanf = __library.get(b"viVSScanf\0").map(|sym| *sym);
1600        let viQueryf = __library.get(b"viQueryf\0").map(|sym| *sym);
1601        let viVQueryf = __library.get(b"viVQueryf\0").map(|sym| *sym);
1602        let viIn8 = __library.get(b"viIn8\0").map(|sym| *sym);
1603        let viOut8 = __library.get(b"viOut8\0").map(|sym| *sym);
1604        let viIn16 = __library.get(b"viIn16\0").map(|sym| *sym);
1605        let viOut16 = __library.get(b"viOut16\0").map(|sym| *sym);
1606        let viIn32 = __library.get(b"viIn32\0").map(|sym| *sym);
1607        let viOut32 = __library.get(b"viOut32\0").map(|sym| *sym);
1608        let viIn64 = __library.get(b"viIn64\0").map(|sym| *sym);
1609        let viOut64 = __library.get(b"viOut64\0").map(|sym| *sym);
1610        let viIn8Ex = __library.get(b"viIn8Ex\0").map(|sym| *sym);
1611        let viOut8Ex = __library.get(b"viOut8Ex\0").map(|sym| *sym);
1612        let viIn16Ex = __library.get(b"viIn16Ex\0").map(|sym| *sym);
1613        let viOut16Ex = __library.get(b"viOut16Ex\0").map(|sym| *sym);
1614        let viIn32Ex = __library.get(b"viIn32Ex\0").map(|sym| *sym);
1615        let viOut32Ex = __library.get(b"viOut32Ex\0").map(|sym| *sym);
1616        let viIn64Ex = __library.get(b"viIn64Ex\0").map(|sym| *sym);
1617        let viOut64Ex = __library.get(b"viOut64Ex\0").map(|sym| *sym);
1618        let viMoveIn8 = __library.get(b"viMoveIn8\0").map(|sym| *sym);
1619        let viMoveOut8 = __library.get(b"viMoveOut8\0").map(|sym| *sym);
1620        let viMoveIn16 = __library.get(b"viMoveIn16\0").map(|sym| *sym);
1621        let viMoveOut16 = __library.get(b"viMoveOut16\0").map(|sym| *sym);
1622        let viMoveIn32 = __library.get(b"viMoveIn32\0").map(|sym| *sym);
1623        let viMoveOut32 = __library.get(b"viMoveOut32\0").map(|sym| *sym);
1624        let viMoveIn64 = __library.get(b"viMoveIn64\0").map(|sym| *sym);
1625        let viMoveOut64 = __library.get(b"viMoveOut64\0").map(|sym| *sym);
1626        let viMoveIn8Ex = __library.get(b"viMoveIn8Ex\0").map(|sym| *sym);
1627        let viMoveOut8Ex = __library.get(b"viMoveOut8Ex\0").map(|sym| *sym);
1628        let viMoveIn16Ex = __library.get(b"viMoveIn16Ex\0").map(|sym| *sym);
1629        let viMoveOut16Ex = __library.get(b"viMoveOut16Ex\0").map(|sym| *sym);
1630        let viMoveIn32Ex = __library.get(b"viMoveIn32Ex\0").map(|sym| *sym);
1631        let viMoveOut32Ex = __library.get(b"viMoveOut32Ex\0").map(|sym| *sym);
1632        let viMoveIn64Ex = __library.get(b"viMoveIn64Ex\0").map(|sym| *sym);
1633        let viMoveOut64Ex = __library.get(b"viMoveOut64Ex\0").map(|sym| *sym);
1634        let viMove = __library.get(b"viMove\0").map(|sym| *sym);
1635        let viMoveAsync = __library.get(b"viMoveAsync\0").map(|sym| *sym);
1636        let viMoveEx = __library.get(b"viMoveEx\0").map(|sym| *sym);
1637        let viMoveAsyncEx = __library.get(b"viMoveAsyncEx\0").map(|sym| *sym);
1638        let viMapAddress = __library.get(b"viMapAddress\0").map(|sym| *sym);
1639        let viUnmapAddress = __library.get(b"viUnmapAddress\0").map(|sym| *sym);
1640        let viMapAddressEx = __library.get(b"viMapAddressEx\0").map(|sym| *sym);
1641        let viPeek8 = __library.get(b"viPeek8\0").map(|sym| *sym);
1642        let viPoke8 = __library.get(b"viPoke8\0").map(|sym| *sym);
1643        let viPeek16 = __library.get(b"viPeek16\0").map(|sym| *sym);
1644        let viPoke16 = __library.get(b"viPoke16\0").map(|sym| *sym);
1645        let viPeek32 = __library.get(b"viPeek32\0").map(|sym| *sym);
1646        let viPoke32 = __library.get(b"viPoke32\0").map(|sym| *sym);
1647        let viPeek64 = __library.get(b"viPeek64\0").map(|sym| *sym);
1648        let viPoke64 = __library.get(b"viPoke64\0").map(|sym| *sym);
1649        let viMemAlloc = __library.get(b"viMemAlloc\0").map(|sym| *sym);
1650        let viMemFree = __library.get(b"viMemFree\0").map(|sym| *sym);
1651        let viMemAllocEx = __library.get(b"viMemAllocEx\0").map(|sym| *sym);
1652        let viMemFreeEx = __library.get(b"viMemFreeEx\0").map(|sym| *sym);
1653        let viGpibControlREN = __library.get(b"viGpibControlREN\0").map(|sym| *sym);
1654        let viGpibControlATN = __library.get(b"viGpibControlATN\0").map(|sym| *sym);
1655        let viGpibSendIFC = __library.get(b"viGpibSendIFC\0").map(|sym| *sym);
1656        let viGpibCommand = __library.get(b"viGpibCommand\0").map(|sym| *sym);
1657        let viGpibPassControl = __library.get(b"viGpibPassControl\0").map(|sym| *sym);
1658        let viVxiCommandQuery = __library.get(b"viVxiCommandQuery\0").map(|sym| *sym);
1659        let viAssertUtilSignal = __library.get(b"viAssertUtilSignal\0").map(|sym| *sym);
1660        let viAssertIntrSignal = __library.get(b"viAssertIntrSignal\0").map(|sym| *sym);
1661        let viMapTrigger = __library.get(b"viMapTrigger\0").map(|sym| *sym);
1662        let viUnmapTrigger = __library.get(b"viUnmapTrigger\0").map(|sym| *sym);
1663        let viUsbControlOut = __library.get(b"viUsbControlOut\0").map(|sym| *sym);
1664        let viUsbControlIn = __library.get(b"viUsbControlIn\0").map(|sym| *sym);
1665        let viPxiReserveTriggers = __library.get(b"viPxiReserveTriggers\0").map(|sym| *sym);
1666        Ok(LibVisa {
1667            __library,
1668            viOpenDefaultRM,
1669            viFindRsrc,
1670            viFindNext,
1671            viParseRsrc,
1672            viParseRsrcEx,
1673            viOpen,
1674            viClose,
1675            viSetAttribute,
1676            viGetAttribute,
1677            viStatusDesc,
1678            viTerminate,
1679            viLock,
1680            viUnlock,
1681            viEnableEvent,
1682            viDisableEvent,
1683            viDiscardEvents,
1684            viWaitOnEvent,
1685            viInstallHandler,
1686            viUninstallHandler,
1687            viRead,
1688            viReadAsync,
1689            viReadToFile,
1690            viWrite,
1691            viWriteAsync,
1692            viWriteFromFile,
1693            viAssertTrigger,
1694            viReadSTB,
1695            viClear,
1696            viSetBuf,
1697            viFlush,
1698            viBufWrite,
1699            viBufRead,
1700            viPrintf,
1701            viVPrintf,
1702            viSPrintf,
1703            viVSPrintf,
1704            viScanf,
1705            viVScanf,
1706            viSScanf,
1707            viVSScanf,
1708            viQueryf,
1709            viVQueryf,
1710            viIn8,
1711            viOut8,
1712            viIn16,
1713            viOut16,
1714            viIn32,
1715            viOut32,
1716            viIn64,
1717            viOut64,
1718            viIn8Ex,
1719            viOut8Ex,
1720            viIn16Ex,
1721            viOut16Ex,
1722            viIn32Ex,
1723            viOut32Ex,
1724            viIn64Ex,
1725            viOut64Ex,
1726            viMoveIn8,
1727            viMoveOut8,
1728            viMoveIn16,
1729            viMoveOut16,
1730            viMoveIn32,
1731            viMoveOut32,
1732            viMoveIn64,
1733            viMoveOut64,
1734            viMoveIn8Ex,
1735            viMoveOut8Ex,
1736            viMoveIn16Ex,
1737            viMoveOut16Ex,
1738            viMoveIn32Ex,
1739            viMoveOut32Ex,
1740            viMoveIn64Ex,
1741            viMoveOut64Ex,
1742            viMove,
1743            viMoveAsync,
1744            viMoveEx,
1745            viMoveAsyncEx,
1746            viMapAddress,
1747            viUnmapAddress,
1748            viMapAddressEx,
1749            viPeek8,
1750            viPoke8,
1751            viPeek16,
1752            viPoke16,
1753            viPeek32,
1754            viPoke32,
1755            viPeek64,
1756            viPoke64,
1757            viMemAlloc,
1758            viMemFree,
1759            viMemAllocEx,
1760            viMemFreeEx,
1761            viGpibControlREN,
1762            viGpibControlATN,
1763            viGpibSendIFC,
1764            viGpibCommand,
1765            viGpibPassControl,
1766            viVxiCommandQuery,
1767            viAssertUtilSignal,
1768            viAssertIntrSignal,
1769            viMapTrigger,
1770            viUnmapTrigger,
1771            viUsbControlOut,
1772            viUsbControlIn,
1773            viPxiReserveTriggers,
1774        })
1775    }
1776    pub unsafe fn viOpenDefaultRM(&self, vi: ViPSession) -> ViStatus {
1777        (__sym(&self.viOpenDefaultRM, "viOpenDefaultRM"))(vi)
1778    }
1779    pub unsafe fn viFindRsrc(
1780        &self,
1781        sesn: ViSession,
1782        expr: ViConstString,
1783        vi: ViPFindList,
1784        retCnt: ViPUInt32,
1785        desc: *mut ViChar,
1786    ) -> ViStatus {
1787        (__sym(&self.viFindRsrc, "viFindRsrc"))(sesn, expr, vi, retCnt, desc)
1788    }
1789    pub unsafe fn viFindNext(&self, vi: ViFindList, desc: *mut ViChar) -> ViStatus {
1790        (__sym(&self.viFindNext, "viFindNext"))(vi, desc)
1791    }
1792    pub unsafe fn viParseRsrc(
1793        &self,
1794        rmSesn: ViSession,
1795        rsrcName: ViConstRsrc,
1796        intfType: ViPUInt16,
1797        intfNum: ViPUInt16,
1798    ) -> ViStatus {
1799        (__sym(&self.viParseRsrc, "viParseRsrc"))(rmSesn, rsrcName, intfType, intfNum)
1800    }
1801    pub unsafe fn viParseRsrcEx(
1802        &self,
1803        rmSesn: ViSession,
1804        rsrcName: ViConstRsrc,
1805        intfType: ViPUInt16,
1806        intfNum: ViPUInt16,
1807        rsrcClass: *mut ViChar,
1808        expandedUnaliasedName: *mut ViChar,
1809        aliasIfExists: *mut ViChar,
1810    ) -> ViStatus {
1811        (__sym(&self.viParseRsrcEx, "viParseRsrcEx"))(
1812            rmSesn,
1813            rsrcName,
1814            intfType,
1815            intfNum,
1816            rsrcClass,
1817            expandedUnaliasedName,
1818            aliasIfExists,
1819        )
1820    }
1821    pub unsafe fn viOpen(
1822        &self,
1823        sesn: ViSession,
1824        name: ViConstRsrc,
1825        mode: ViAccessMode,
1826        timeout: ViUInt32,
1827        vi: ViPSession,
1828    ) -> ViStatus {
1829        (__sym(&self.viOpen, "viOpen"))(sesn, name, mode, timeout, vi)
1830    }
1831    pub unsafe fn viClose(&self, vi: ViObject) -> ViStatus {
1832        (__sym(&self.viClose, "viClose"))(vi)
1833    }
1834    pub unsafe fn viSetAttribute(
1835        &self,
1836        vi: ViObject,
1837        attrName: ViAttr,
1838        attrValue: ViAttrState,
1839    ) -> ViStatus {
1840        (__sym(&self.viSetAttribute, "viSetAttribute"))(vi, attrName, attrValue)
1841    }
1842    pub unsafe fn viGetAttribute(
1843        &self,
1844        vi: ViObject,
1845        attrName: ViAttr,
1846        attrValue: *mut ::std::os::raw::c_void,
1847    ) -> ViStatus {
1848        (__sym(&self.viGetAttribute, "viGetAttribute"))(vi, attrName, attrValue)
1849    }
1850    pub unsafe fn viStatusDesc(
1851        &self,
1852        vi: ViObject,
1853        status: ViStatus,
1854        desc: *mut ViChar,
1855    ) -> ViStatus {
1856        (__sym(&self.viStatusDesc, "viStatusDesc"))(vi, status, desc)
1857    }
1858    pub unsafe fn viTerminate(&self, vi: ViObject, degree: ViUInt16, jobId: ViJobId) -> ViStatus {
1859        (__sym(&self.viTerminate, "viTerminate"))(vi, degree, jobId)
1860    }
1861    pub unsafe fn viLock(
1862        &self,
1863        vi: ViSession,
1864        lockType: ViAccessMode,
1865        timeout: ViUInt32,
1866        requestedKey: ViConstKeyId,
1867        accessKey: *mut ViChar,
1868    ) -> ViStatus {
1869        (__sym(&self.viLock, "viLock"))(vi, lockType, timeout, requestedKey, accessKey)
1870    }
1871    pub unsafe fn viUnlock(&self, vi: ViSession) -> ViStatus {
1872        (__sym(&self.viUnlock, "viUnlock"))(vi)
1873    }
1874    pub unsafe fn viEnableEvent(
1875        &self,
1876        vi: ViSession,
1877        eventType: ViEventType,
1878        mechanism: ViUInt16,
1879        context: ViEventFilter,
1880    ) -> ViStatus {
1881        (__sym(&self.viEnableEvent, "viEnableEvent"))(vi, eventType, mechanism, context)
1882    }
1883    pub unsafe fn viDisableEvent(
1884        &self,
1885        vi: ViSession,
1886        eventType: ViEventType,
1887        mechanism: ViUInt16,
1888    ) -> ViStatus {
1889        (__sym(&self.viDisableEvent, "viDisableEvent"))(vi, eventType, mechanism)
1890    }
1891    pub unsafe fn viDiscardEvents(
1892        &self,
1893        vi: ViSession,
1894        eventType: ViEventType,
1895        mechanism: ViUInt16,
1896    ) -> ViStatus {
1897        (__sym(&self.viDiscardEvents, "viDiscardEvents"))(vi, eventType, mechanism)
1898    }
1899    pub unsafe fn viWaitOnEvent(
1900        &self,
1901        vi: ViSession,
1902        inEventType: ViEventType,
1903        timeout: ViUInt32,
1904        outEventType: ViPEventType,
1905        outContext: ViPEvent,
1906    ) -> ViStatus {
1907        (__sym(&self.viWaitOnEvent, "viWaitOnEvent"))(
1908            vi,
1909            inEventType,
1910            timeout,
1911            outEventType,
1912            outContext,
1913        )
1914    }
1915    pub unsafe fn viInstallHandler(
1916        &self,
1917        vi: ViSession,
1918        eventType: ViEventType,
1919        handler: ViHndlr,
1920        userHandle: ViAddr,
1921    ) -> ViStatus {
1922        (__sym(&self.viInstallHandler, "viInstallHandler"))(vi, eventType, handler, userHandle)
1923    }
1924    pub unsafe fn viUninstallHandler(
1925        &self,
1926        vi: ViSession,
1927        eventType: ViEventType,
1928        handler: ViHndlr,
1929        userHandle: ViAddr,
1930    ) -> ViStatus {
1931        (__sym(&self.viUninstallHandler, "viUninstallHandler"))(vi, eventType, handler, userHandle)
1932    }
1933    pub unsafe fn viRead(
1934        &self,
1935        vi: ViSession,
1936        buf: ViPBuf,
1937        cnt: ViUInt32,
1938        retCnt: ViPUInt32,
1939    ) -> ViStatus {
1940        (__sym(&self.viRead, "viRead"))(vi, buf, cnt, retCnt)
1941    }
1942    pub unsafe fn viReadAsync(
1943        &self,
1944        vi: ViSession,
1945        buf: ViPBuf,
1946        cnt: ViUInt32,
1947        jobId: ViPJobId,
1948    ) -> ViStatus {
1949        (__sym(&self.viReadAsync, "viReadAsync"))(vi, buf, cnt, jobId)
1950    }
1951    pub unsafe fn viReadToFile(
1952        &self,
1953        vi: ViSession,
1954        filename: ViConstString,
1955        cnt: ViUInt32,
1956        retCnt: ViPUInt32,
1957    ) -> ViStatus {
1958        (__sym(&self.viReadToFile, "viReadToFile"))(vi, filename, cnt, retCnt)
1959    }
1960    pub unsafe fn viWrite(
1961        &self,
1962        vi: ViSession,
1963        buf: ViConstBuf,
1964        cnt: ViUInt32,
1965        retCnt: ViPUInt32,
1966    ) -> ViStatus {
1967        (__sym(&self.viWrite, "viWrite"))(vi, buf, cnt, retCnt)
1968    }
1969    pub unsafe fn viWriteAsync(
1970        &self,
1971        vi: ViSession,
1972        buf: ViConstBuf,
1973        cnt: ViUInt32,
1974        jobId: ViPJobId,
1975    ) -> ViStatus {
1976        (__sym(&self.viWriteAsync, "viWriteAsync"))(vi, buf, cnt, jobId)
1977    }
1978    pub unsafe fn viWriteFromFile(
1979        &self,
1980        vi: ViSession,
1981        filename: ViConstString,
1982        cnt: ViUInt32,
1983        retCnt: ViPUInt32,
1984    ) -> ViStatus {
1985        (__sym(&self.viWriteFromFile, "viWriteFromFile"))(vi, filename, cnt, retCnt)
1986    }
1987    pub unsafe fn viAssertTrigger(&self, vi: ViSession, protocol: ViUInt16) -> ViStatus {
1988        (__sym(&self.viAssertTrigger, "viAssertTrigger"))(vi, protocol)
1989    }
1990    pub unsafe fn viReadSTB(&self, vi: ViSession, status: ViPUInt16) -> ViStatus {
1991        (__sym(&self.viReadSTB, "viReadSTB"))(vi, status)
1992    }
1993    pub unsafe fn viClear(&self, vi: ViSession) -> ViStatus {
1994        (__sym(&self.viClear, "viClear"))(vi)
1995    }
1996    pub unsafe fn viSetBuf(&self, vi: ViSession, mask: ViUInt16, size: ViUInt32) -> ViStatus {
1997        (__sym(&self.viSetBuf, "viSetBuf"))(vi, mask, size)
1998    }
1999    pub unsafe fn viFlush(&self, vi: ViSession, mask: ViUInt16) -> ViStatus {
2000        (__sym(&self.viFlush, "viFlush"))(vi, mask)
2001    }
2002    pub unsafe fn viBufWrite(
2003        &self,
2004        vi: ViSession,
2005        buf: ViConstBuf,
2006        cnt: ViUInt32,
2007        retCnt: ViPUInt32,
2008    ) -> ViStatus {
2009        (__sym(&self.viBufWrite, "viBufWrite"))(vi, buf, cnt, retCnt)
2010    }
2011    pub unsafe fn viBufRead(
2012        &self,
2013        vi: ViSession,
2014        buf: ViPBuf,
2015        cnt: ViUInt32,
2016        retCnt: ViPUInt32,
2017    ) -> ViStatus {
2018        (__sym(&self.viBufRead, "viBufRead"))(vi, buf, cnt, retCnt)
2019    }
2020    pub unsafe fn viVPrintf(
2021        &self,
2022        vi: ViSession,
2023        writeFmt: ViConstString,
2024        params: ViVAList,
2025    ) -> ViStatus {
2026        (__sym(&self.viVPrintf, "viVPrintf"))(vi, writeFmt, params)
2027    }
2028    pub unsafe fn viVSPrintf(
2029        &self,
2030        vi: ViSession,
2031        buf: ViPBuf,
2032        writeFmt: ViConstString,
2033        parms: ViVAList,
2034    ) -> ViStatus {
2035        (__sym(&self.viVSPrintf, "viVSPrintf"))(vi, buf, writeFmt, parms)
2036    }
2037    pub unsafe fn viVScanf(
2038        &self,
2039        vi: ViSession,
2040        readFmt: ViConstString,
2041        params: ViVAList,
2042    ) -> ViStatus {
2043        (__sym(&self.viVScanf, "viVScanf"))(vi, readFmt, params)
2044    }
2045    pub unsafe fn viVSScanf(
2046        &self,
2047        vi: ViSession,
2048        buf: ViConstBuf,
2049        readFmt: ViConstString,
2050        parms: ViVAList,
2051    ) -> ViStatus {
2052        (__sym(&self.viVSScanf, "viVSScanf"))(vi, buf, readFmt, parms)
2053    }
2054    pub unsafe fn viVQueryf(
2055        &self,
2056        vi: ViSession,
2057        writeFmt: ViConstString,
2058        readFmt: ViConstString,
2059        params: ViVAList,
2060    ) -> ViStatus {
2061        (__sym(&self.viVQueryf, "viVQueryf"))(vi, writeFmt, readFmt, params)
2062    }
2063    pub unsafe fn viIn8(
2064        &self,
2065        vi: ViSession,
2066        space: ViUInt16,
2067        offset: ViBusAddress,
2068        val8: ViPUInt8,
2069    ) -> ViStatus {
2070        (__sym(&self.viIn8, "viIn8"))(vi, space, offset, val8)
2071    }
2072    pub unsafe fn viOut8(
2073        &self,
2074        vi: ViSession,
2075        space: ViUInt16,
2076        offset: ViBusAddress,
2077        val8: ViUInt8,
2078    ) -> ViStatus {
2079        (__sym(&self.viOut8, "viOut8"))(vi, space, offset, val8)
2080    }
2081    pub unsafe fn viIn16(
2082        &self,
2083        vi: ViSession,
2084        space: ViUInt16,
2085        offset: ViBusAddress,
2086        val16: ViPUInt16,
2087    ) -> ViStatus {
2088        (__sym(&self.viIn16, "viIn16"))(vi, space, offset, val16)
2089    }
2090    pub unsafe fn viOut16(
2091        &self,
2092        vi: ViSession,
2093        space: ViUInt16,
2094        offset: ViBusAddress,
2095        val16: ViUInt16,
2096    ) -> ViStatus {
2097        (__sym(&self.viOut16, "viOut16"))(vi, space, offset, val16)
2098    }
2099    pub unsafe fn viIn32(
2100        &self,
2101        vi: ViSession,
2102        space: ViUInt16,
2103        offset: ViBusAddress,
2104        val32: ViPUInt32,
2105    ) -> ViStatus {
2106        (__sym(&self.viIn32, "viIn32"))(vi, space, offset, val32)
2107    }
2108    pub unsafe fn viOut32(
2109        &self,
2110        vi: ViSession,
2111        space: ViUInt16,
2112        offset: ViBusAddress,
2113        val32: ViUInt32,
2114    ) -> ViStatus {
2115        (__sym(&self.viOut32, "viOut32"))(vi, space, offset, val32)
2116    }
2117    pub unsafe fn viIn64(
2118        &self,
2119        vi: ViSession,
2120        space: ViUInt16,
2121        offset: ViBusAddress,
2122        val64: ViPUInt64,
2123    ) -> ViStatus {
2124        (__sym(&self.viIn64, "viIn64"))(vi, space, offset, val64)
2125    }
2126    pub unsafe fn viOut64(
2127        &self,
2128        vi: ViSession,
2129        space: ViUInt16,
2130        offset: ViBusAddress,
2131        val64: ViUInt64,
2132    ) -> ViStatus {
2133        (__sym(&self.viOut64, "viOut64"))(vi, space, offset, val64)
2134    }
2135    pub unsafe fn viIn8Ex(
2136        &self,
2137        vi: ViSession,
2138        space: ViUInt16,
2139        offset: ViBusAddress64,
2140        val8: ViPUInt8,
2141    ) -> ViStatus {
2142        (__sym(&self.viIn8Ex, "viIn8Ex"))(vi, space, offset, val8)
2143    }
2144    pub unsafe fn viOut8Ex(
2145        &self,
2146        vi: ViSession,
2147        space: ViUInt16,
2148        offset: ViBusAddress64,
2149        val8: ViUInt8,
2150    ) -> ViStatus {
2151        (__sym(&self.viOut8Ex, "viOut8Ex"))(vi, space, offset, val8)
2152    }
2153    pub unsafe fn viIn16Ex(
2154        &self,
2155        vi: ViSession,
2156        space: ViUInt16,
2157        offset: ViBusAddress64,
2158        val16: ViPUInt16,
2159    ) -> ViStatus {
2160        (__sym(&self.viIn16Ex, "viIn16Ex"))(vi, space, offset, val16)
2161    }
2162    pub unsafe fn viOut16Ex(
2163        &self,
2164        vi: ViSession,
2165        space: ViUInt16,
2166        offset: ViBusAddress64,
2167        val16: ViUInt16,
2168    ) -> ViStatus {
2169        (__sym(&self.viOut16Ex, "viOut16Ex"))(vi, space, offset, val16)
2170    }
2171    pub unsafe fn viIn32Ex(
2172        &self,
2173        vi: ViSession,
2174        space: ViUInt16,
2175        offset: ViBusAddress64,
2176        val32: ViPUInt32,
2177    ) -> ViStatus {
2178        (__sym(&self.viIn32Ex, "viIn32Ex"))(vi, space, offset, val32)
2179    }
2180    pub unsafe fn viOut32Ex(
2181        &self,
2182        vi: ViSession,
2183        space: ViUInt16,
2184        offset: ViBusAddress64,
2185        val32: ViUInt32,
2186    ) -> ViStatus {
2187        (__sym(&self.viOut32Ex, "viOut32Ex"))(vi, space, offset, val32)
2188    }
2189    pub unsafe fn viIn64Ex(
2190        &self,
2191        vi: ViSession,
2192        space: ViUInt16,
2193        offset: ViBusAddress64,
2194        val64: ViPUInt64,
2195    ) -> ViStatus {
2196        (__sym(&self.viIn64Ex, "viIn64Ex"))(vi, space, offset, val64)
2197    }
2198    pub unsafe fn viOut64Ex(
2199        &self,
2200        vi: ViSession,
2201        space: ViUInt16,
2202        offset: ViBusAddress64,
2203        val64: ViUInt64,
2204    ) -> ViStatus {
2205        (__sym(&self.viOut64Ex, "viOut64Ex"))(vi, space, offset, val64)
2206    }
2207    pub unsafe fn viMoveIn8(
2208        &self,
2209        vi: ViSession,
2210        space: ViUInt16,
2211        offset: ViBusAddress,
2212        length: ViBusSize,
2213        buf8: ViAUInt8,
2214    ) -> ViStatus {
2215        (__sym(&self.viMoveIn8, "viMoveIn8"))(vi, space, offset, length, buf8)
2216    }
2217    pub unsafe fn viMoveOut8(
2218        &self,
2219        vi: ViSession,
2220        space: ViUInt16,
2221        offset: ViBusAddress,
2222        length: ViBusSize,
2223        buf8: ViAUInt8,
2224    ) -> ViStatus {
2225        (__sym(&self.viMoveOut8, "viMoveOut8"))(vi, space, offset, length, buf8)
2226    }
2227    pub unsafe fn viMoveIn16(
2228        &self,
2229        vi: ViSession,
2230        space: ViUInt16,
2231        offset: ViBusAddress,
2232        length: ViBusSize,
2233        buf16: ViAUInt16,
2234    ) -> ViStatus {
2235        (__sym(&self.viMoveIn16, "viMoveIn16"))(vi, space, offset, length, buf16)
2236    }
2237    pub unsafe fn viMoveOut16(
2238        &self,
2239        vi: ViSession,
2240        space: ViUInt16,
2241        offset: ViBusAddress,
2242        length: ViBusSize,
2243        buf16: ViAUInt16,
2244    ) -> ViStatus {
2245        (__sym(&self.viMoveOut16, "viMoveOut16"))(vi, space, offset, length, buf16)
2246    }
2247    pub unsafe fn viMoveIn32(
2248        &self,
2249        vi: ViSession,
2250        space: ViUInt16,
2251        offset: ViBusAddress,
2252        length: ViBusSize,
2253        buf32: ViAUInt32,
2254    ) -> ViStatus {
2255        (__sym(&self.viMoveIn32, "viMoveIn32"))(vi, space, offset, length, buf32)
2256    }
2257    pub unsafe fn viMoveOut32(
2258        &self,
2259        vi: ViSession,
2260        space: ViUInt16,
2261        offset: ViBusAddress,
2262        length: ViBusSize,
2263        buf32: ViAUInt32,
2264    ) -> ViStatus {
2265        (__sym(&self.viMoveOut32, "viMoveOut32"))(vi, space, offset, length, buf32)
2266    }
2267    pub unsafe fn viMoveIn64(
2268        &self,
2269        vi: ViSession,
2270        space: ViUInt16,
2271        offset: ViBusAddress,
2272        length: ViBusSize,
2273        buf64: ViAUInt64,
2274    ) -> ViStatus {
2275        (__sym(&self.viMoveIn64, "viMoveIn64"))(vi, space, offset, length, buf64)
2276    }
2277    pub unsafe fn viMoveOut64(
2278        &self,
2279        vi: ViSession,
2280        space: ViUInt16,
2281        offset: ViBusAddress,
2282        length: ViBusSize,
2283        buf64: ViAUInt64,
2284    ) -> ViStatus {
2285        (__sym(&self.viMoveOut64, "viMoveOut64"))(vi, space, offset, length, buf64)
2286    }
2287    pub unsafe fn viMoveIn8Ex(
2288        &self,
2289        vi: ViSession,
2290        space: ViUInt16,
2291        offset: ViBusAddress64,
2292        length: ViBusSize,
2293        buf8: ViAUInt8,
2294    ) -> ViStatus {
2295        (__sym(&self.viMoveIn8Ex, "viMoveIn8Ex"))(vi, space, offset, length, buf8)
2296    }
2297    pub unsafe fn viMoveOut8Ex(
2298        &self,
2299        vi: ViSession,
2300        space: ViUInt16,
2301        offset: ViBusAddress64,
2302        length: ViBusSize,
2303        buf8: ViAUInt8,
2304    ) -> ViStatus {
2305        (__sym(&self.viMoveOut8Ex, "viMoveOut8Ex"))(vi, space, offset, length, buf8)
2306    }
2307    pub unsafe fn viMoveIn16Ex(
2308        &self,
2309        vi: ViSession,
2310        space: ViUInt16,
2311        offset: ViBusAddress64,
2312        length: ViBusSize,
2313        buf16: ViAUInt16,
2314    ) -> ViStatus {
2315        (__sym(&self.viMoveIn16Ex, "viMoveIn16Ex"))(vi, space, offset, length, buf16)
2316    }
2317    pub unsafe fn viMoveOut16Ex(
2318        &self,
2319        vi: ViSession,
2320        space: ViUInt16,
2321        offset: ViBusAddress64,
2322        length: ViBusSize,
2323        buf16: ViAUInt16,
2324    ) -> ViStatus {
2325        (__sym(&self.viMoveOut16Ex, "viMoveOut16Ex"))(vi, space, offset, length, buf16)
2326    }
2327    pub unsafe fn viMoveIn32Ex(
2328        &self,
2329        vi: ViSession,
2330        space: ViUInt16,
2331        offset: ViBusAddress64,
2332        length: ViBusSize,
2333        buf32: ViAUInt32,
2334    ) -> ViStatus {
2335        (__sym(&self.viMoveIn32Ex, "viMoveIn32Ex"))(vi, space, offset, length, buf32)
2336    }
2337    pub unsafe fn viMoveOut32Ex(
2338        &self,
2339        vi: ViSession,
2340        space: ViUInt16,
2341        offset: ViBusAddress64,
2342        length: ViBusSize,
2343        buf32: ViAUInt32,
2344    ) -> ViStatus {
2345        (__sym(&self.viMoveOut32Ex, "viMoveOut32Ex"))(vi, space, offset, length, buf32)
2346    }
2347    pub unsafe fn viMoveIn64Ex(
2348        &self,
2349        vi: ViSession,
2350        space: ViUInt16,
2351        offset: ViBusAddress64,
2352        length: ViBusSize,
2353        buf64: ViAUInt64,
2354    ) -> ViStatus {
2355        (__sym(&self.viMoveIn64Ex, "viMoveIn64Ex"))(vi, space, offset, length, buf64)
2356    }
2357    pub unsafe fn viMoveOut64Ex(
2358        &self,
2359        vi: ViSession,
2360        space: ViUInt16,
2361        offset: ViBusAddress64,
2362        length: ViBusSize,
2363        buf64: ViAUInt64,
2364    ) -> ViStatus {
2365        (__sym(&self.viMoveOut64Ex, "viMoveOut64Ex"))(vi, space, offset, length, buf64)
2366    }
2367    pub unsafe fn viMove(
2368        &self,
2369        vi: ViSession,
2370        srcSpace: ViUInt16,
2371        srcOffset: ViBusAddress,
2372        srcWidth: ViUInt16,
2373        destSpace: ViUInt16,
2374        destOffset: ViBusAddress,
2375        destWidth: ViUInt16,
2376        srcLength: ViBusSize,
2377    ) -> ViStatus {
2378        (__sym(&self.viMove, "viMove"))(
2379            vi, srcSpace, srcOffset, srcWidth, destSpace, destOffset, destWidth, srcLength,
2380        )
2381    }
2382    pub unsafe fn viMoveAsync(
2383        &self,
2384        vi: ViSession,
2385        srcSpace: ViUInt16,
2386        srcOffset: ViBusAddress,
2387        srcWidth: ViUInt16,
2388        destSpace: ViUInt16,
2389        destOffset: ViBusAddress,
2390        destWidth: ViUInt16,
2391        srcLength: ViBusSize,
2392        jobId: ViPJobId,
2393    ) -> ViStatus {
2394        (__sym(&self.viMoveAsync, "viMoveAsync"))(
2395            vi, srcSpace, srcOffset, srcWidth, destSpace, destOffset, destWidth, srcLength, jobId,
2396        )
2397    }
2398    pub unsafe fn viMoveEx(
2399        &self,
2400        vi: ViSession,
2401        srcSpace: ViUInt16,
2402        srcOffset: ViBusAddress64,
2403        srcWidth: ViUInt16,
2404        destSpace: ViUInt16,
2405        destOffset: ViBusAddress64,
2406        destWidth: ViUInt16,
2407        srcLength: ViBusSize,
2408    ) -> ViStatus {
2409        (__sym(&self.viMoveEx, "viMoveEx"))(
2410            vi, srcSpace, srcOffset, srcWidth, destSpace, destOffset, destWidth, srcLength,
2411        )
2412    }
2413    pub unsafe fn viMoveAsyncEx(
2414        &self,
2415        vi: ViSession,
2416        srcSpace: ViUInt16,
2417        srcOffset: ViBusAddress64,
2418        srcWidth: ViUInt16,
2419        destSpace: ViUInt16,
2420        destOffset: ViBusAddress64,
2421        destWidth: ViUInt16,
2422        srcLength: ViBusSize,
2423        jobId: ViPJobId,
2424    ) -> ViStatus {
2425        (__sym(&self.viMoveAsyncEx, "viMoveAsyncEx"))(
2426            vi, srcSpace, srcOffset, srcWidth, destSpace, destOffset, destWidth, srcLength, jobId,
2427        )
2428    }
2429    pub unsafe fn viMapAddress(
2430        &self,
2431        vi: ViSession,
2432        mapSpace: ViUInt16,
2433        mapOffset: ViBusAddress,
2434        mapSize: ViBusSize,
2435        access: ViBoolean,
2436        suggested: ViAddr,
2437        address: ViPAddr,
2438    ) -> ViStatus {
2439        (__sym(&self.viMapAddress, "viMapAddress"))(
2440            vi, mapSpace, mapOffset, mapSize, access, suggested, address,
2441        )
2442    }
2443    pub unsafe fn viUnmapAddress(&self, vi: ViSession) -> ViStatus {
2444        (__sym(&self.viUnmapAddress, "viUnmapAddress"))(vi)
2445    }
2446    pub unsafe fn viMapAddressEx(
2447        &self,
2448        vi: ViSession,
2449        mapSpace: ViUInt16,
2450        mapOffset: ViBusAddress64,
2451        mapSize: ViBusSize,
2452        access: ViBoolean,
2453        suggested: ViAddr,
2454        address: ViPAddr,
2455    ) -> ViStatus {
2456        (__sym(&self.viMapAddressEx, "viMapAddressEx"))(
2457            vi, mapSpace, mapOffset, mapSize, access, suggested, address,
2458        )
2459    }
2460    pub unsafe fn viPeek8(&self, vi: ViSession, address: ViAddr, val8: ViPUInt8) {
2461        (__sym(&self.viPeek8, "viPeek8"))(vi, address, val8)
2462    }
2463    pub unsafe fn viPoke8(&self, vi: ViSession, address: ViAddr, val8: ViUInt8) {
2464        (__sym(&self.viPoke8, "viPoke8"))(vi, address, val8)
2465    }
2466    pub unsafe fn viPeek16(&self, vi: ViSession, address: ViAddr, val16: ViPUInt16) {
2467        (__sym(&self.viPeek16, "viPeek16"))(vi, address, val16)
2468    }
2469    pub unsafe fn viPoke16(&self, vi: ViSession, address: ViAddr, val16: ViUInt16) {
2470        (__sym(&self.viPoke16, "viPoke16"))(vi, address, val16)
2471    }
2472    pub unsafe fn viPeek32(&self, vi: ViSession, address: ViAddr, val32: ViPUInt32) {
2473        (__sym(&self.viPeek32, "viPeek32"))(vi, address, val32)
2474    }
2475    pub unsafe fn viPoke32(&self, vi: ViSession, address: ViAddr, val32: ViUInt32) {
2476        (__sym(&self.viPoke32, "viPoke32"))(vi, address, val32)
2477    }
2478    pub unsafe fn viPeek64(&self, vi: ViSession, address: ViAddr, val64: ViPUInt64) {
2479        (__sym(&self.viPeek64, "viPeek64"))(vi, address, val64)
2480    }
2481    pub unsafe fn viPoke64(&self, vi: ViSession, address: ViAddr, val64: ViUInt64) {
2482        (__sym(&self.viPoke64, "viPoke64"))(vi, address, val64)
2483    }
2484    pub unsafe fn viMemAlloc(
2485        &self,
2486        vi: ViSession,
2487        size: ViBusSize,
2488        offset: ViPBusAddress,
2489    ) -> ViStatus {
2490        (__sym(&self.viMemAlloc, "viMemAlloc"))(vi, size, offset)
2491    }
2492    pub unsafe fn viMemFree(&self, vi: ViSession, offset: ViBusAddress) -> ViStatus {
2493        (__sym(&self.viMemFree, "viMemFree"))(vi, offset)
2494    }
2495    pub unsafe fn viMemAllocEx(
2496        &self,
2497        vi: ViSession,
2498        size: ViBusSize,
2499        offset: ViPBusAddress64,
2500    ) -> ViStatus {
2501        (__sym(&self.viMemAllocEx, "viMemAllocEx"))(vi, size, offset)
2502    }
2503    pub unsafe fn viMemFreeEx(&self, vi: ViSession, offset: ViBusAddress64) -> ViStatus {
2504        (__sym(&self.viMemFreeEx, "viMemFreeEx"))(vi, offset)
2505    }
2506    pub unsafe fn viGpibControlREN(&self, vi: ViSession, mode: ViUInt16) -> ViStatus {
2507        (__sym(&self.viGpibControlREN, "viGpibControlREN"))(vi, mode)
2508    }
2509    pub unsafe fn viGpibControlATN(&self, vi: ViSession, mode: ViUInt16) -> ViStatus {
2510        (__sym(&self.viGpibControlATN, "viGpibControlATN"))(vi, mode)
2511    }
2512    pub unsafe fn viGpibSendIFC(&self, vi: ViSession) -> ViStatus {
2513        (__sym(&self.viGpibSendIFC, "viGpibSendIFC"))(vi)
2514    }
2515    pub unsafe fn viGpibCommand(
2516        &self,
2517        vi: ViSession,
2518        cmd: ViConstBuf,
2519        cnt: ViUInt32,
2520        retCnt: ViPUInt32,
2521    ) -> ViStatus {
2522        (__sym(&self.viGpibCommand, "viGpibCommand"))(vi, cmd, cnt, retCnt)
2523    }
2524    pub unsafe fn viGpibPassControl(
2525        &self,
2526        vi: ViSession,
2527        primAddr: ViUInt16,
2528        secAddr: ViUInt16,
2529    ) -> ViStatus {
2530        (__sym(&self.viGpibPassControl, "viGpibPassControl"))(vi, primAddr, secAddr)
2531    }
2532    pub unsafe fn viVxiCommandQuery(
2533        &self,
2534        vi: ViSession,
2535        mode: ViUInt16,
2536        cmd: ViUInt32,
2537        response: ViPUInt32,
2538    ) -> ViStatus {
2539        (__sym(&self.viVxiCommandQuery, "viVxiCommandQuery"))(vi, mode, cmd, response)
2540    }
2541    pub unsafe fn viAssertUtilSignal(&self, vi: ViSession, line: ViUInt16) -> ViStatus {
2542        (__sym(&self.viAssertUtilSignal, "viAssertUtilSignal"))(vi, line)
2543    }
2544    pub unsafe fn viAssertIntrSignal(
2545        &self,
2546        vi: ViSession,
2547        mode: ViInt16,
2548        statusID: ViUInt32,
2549    ) -> ViStatus {
2550        (__sym(&self.viAssertIntrSignal, "viAssertIntrSignal"))(vi, mode, statusID)
2551    }
2552    pub unsafe fn viMapTrigger(
2553        &self,
2554        vi: ViSession,
2555        trigSrc: ViInt16,
2556        trigDest: ViInt16,
2557        mode: ViUInt16,
2558    ) -> ViStatus {
2559        (__sym(&self.viMapTrigger, "viMapTrigger"))(vi, trigSrc, trigDest, mode)
2560    }
2561    pub unsafe fn viUnmapTrigger(
2562        &self,
2563        vi: ViSession,
2564        trigSrc: ViInt16,
2565        trigDest: ViInt16,
2566    ) -> ViStatus {
2567        (__sym(&self.viUnmapTrigger, "viUnmapTrigger"))(vi, trigSrc, trigDest)
2568    }
2569    pub unsafe fn viUsbControlOut(
2570        &self,
2571        vi: ViSession,
2572        bmRequestType: ViInt16,
2573        bRequest: ViInt16,
2574        wValue: ViUInt16,
2575        wIndex: ViUInt16,
2576        wLength: ViUInt16,
2577        buf: ViConstBuf,
2578    ) -> ViStatus {
2579        (__sym(&self.viUsbControlOut, "viUsbControlOut"))(
2580            vi,
2581            bmRequestType,
2582            bRequest,
2583            wValue,
2584            wIndex,
2585            wLength,
2586            buf,
2587        )
2588    }
2589    pub unsafe fn viUsbControlIn(
2590        &self,
2591        vi: ViSession,
2592        bmRequestType: ViInt16,
2593        bRequest: ViInt16,
2594        wValue: ViUInt16,
2595        wIndex: ViUInt16,
2596        wLength: ViUInt16,
2597        buf: ViPBuf,
2598        retCnt: ViPUInt16,
2599    ) -> ViStatus {
2600        (__sym(&self.viUsbControlIn, "viUsbControlIn"))(
2601            vi,
2602            bmRequestType,
2603            bRequest,
2604            wValue,
2605            wIndex,
2606            wLength,
2607            buf,
2608            retCnt,
2609        )
2610    }
2611    pub unsafe fn viPxiReserveTriggers(
2612        &self,
2613        vi: ViSession,
2614        cnt: ViInt16,
2615        trigBuses: ViAInt16,
2616        trigLines: ViAInt16,
2617        failureIndex: ViPInt16,
2618    ) -> ViStatus {
2619        (__sym(&self.viPxiReserveTriggers, "viPxiReserveTriggers"))(
2620            vi,
2621            cnt,
2622            trigBuses,
2623            trigLines,
2624            failureIndex,
2625        )
2626    }
2627}